Archived

This topic is now archived and is closed to further replies.

AdmiralBinary

Vector Rotation or something...

Recommended Posts

I''m using Direct3D 8.1 and I want to get the camera''s viewpoint to rotate (like in an fps). Basically, I need to know how to rotate one vector around another keeping a constant distance. I''m a total newbie to 3d programming, so I''m awfully sorry if I just asked the dumbest question in the world - but hey...we all have to start sumwhere :D --------------- I finally got it all together... ...and then forgot where I put it.

Share this post


Link to post
Share on other sites
quote:
Original post by AdmiralBinary
I''m using Direct3D 8.1 and I want to get the camera''s viewpoint to rotate (like in an fps). Basically, I need to know how to rotate one vector around another keeping a constant distance. I''m a total newbie to 3d programming, so I''m awfully sorry if I just asked the dumbest question in the world - but hey...we all have to start sumwhere :D


I''m just wondering about the question. Do you want to know how to rotate a vector around another vector in general (math-wise) or using Direct3D?


I''''m learning, just like the best of us...

Share this post


Link to post
Share on other sites
Well, since I only know how to do 2d rotations thus far in my education I''m going to refer you to a good article I just skimmed.

Under the articles section of Gamedev, go to Programming -> Math & Physics -> Matrices.

Under there, 3rd from the bottom (Three Dimensional Rotations) of that section is a good article on 3d rotations.

If you need any help understanding or figuring out any of it, I''ll be happy to try and figure it out, since I''m also interested (of course).



I''''m learning, just like the best of us...

Share this post


Link to post
Share on other sites
the answer is... quaternions...
although i cannot tell you more than that, since i haven''t had the time to figure the damn things out yet...

--- krez (krezisback@aol.com)

Share this post


Link to post
Share on other sites