Original Post
i am trying to write a game (a first-person point-of-view flying-a-spaceship-type-thing) just to learn D3D some... but i am having problems with the camera. i can more or less aim the camera where i want, but when the player faces up or down (or even close to up or down) the camera rotates in strange ways (i assume this was meant to be helpful, for programs where you walk around and look; but for what i am trying to do, there is no real "up" since you are in space). this camera thing is screwing up my loops and cuban-8s...
i think that changine the camera''s "up" vector each time the player changes direction will solve this problem, but then i would have to rotate the vector i am looking in over an arbitrary axis (90 degrees above forward is up, relatively speaking)... i tried to search for this on the internet, and found all of two pages full of theoretical stuff about "quaterains" or something of that sort.
i am using VB5, and DX7. if anyone has some advice for me about how to make this work, please help me. heh heh, if anyone even has a clue about how to rotate an arbitrary vector over another arbitrary vector in VB, tell me (that might be enough).
thanks in advance!
--- krez (a big sig does not imply a big...)