The answer turned out to be as simple as i thought it was.
var Cos11 = -Math.cos(Cam1[1]*Math.PI/180)
var Sin11 = -Math.sin(Cam1[1]*Math.PI/180)
should have been
var Cos11 = Math.cos(Cam1[1]*Math.PI/180*-1)
var Sin11 = Math.sin(Cam1[1]*Math.PI/180*-1)
Don't ask me why or what...
First, regarding matrices:
I have no real objection to using this system, but I also have no real idea HOW. That means that in order to do it, I would have to read up on it and learn it, basically from scratch. The hour or two of research I DID do on matrices tells me that it will take some...
My latest brainstorm was to try just defining my new "translation" point on the spherical coordinate system, rotating it, then re-converting the location to cartesian coordinates.
It seems to have worked even less spectacularly.
function galFEnd(){
TXtmp = Math.round(pointerX -...
Hi Chiro,
Thanks for the welcome.
Basically, I'm trying to do a simple transformation in X,Y,Z based on how the user moves the mouse.
The complication (the problem) is that everything is based on the original position of the X,Y,Z system, so when the user clicks+drags the screen in a given...
Oh, just to note, the program only works in Internet Explorer 9, Firefox 5-6+, Google Chrome, or newer versions of Safari. (Sorry I forgot to mention it)
I'm working with 3D geometry, and I've been at this for days. I'm beating my head against a wall, because I'm nearly done with the project. There's only one glitch in my system.
The Situation:
I have a 3D cartesian coordinate system with a Spherical system overlaid over it (the "poles"...