[mdx]how can i pan a scene ?

Started by
2 comments, last by Sr_Guapo 17 years, 10 months ago
i wanted to writed a c# application with mdx,there is a question about pan a scene? who can help me?
Advertisement
Quote:Original post by songsgroup
i wanted to writed a c# application with mdx,there is a question about pan a scene? who can help me?

By 'panning', I assume that you mean rotate the camera on the y-axis (ie side-to-side). To do this, you can use different types of view matrices:

(a) Matrix.LookAtLH() - just rotate the cameraTarget in a circle (easy to do using sin/cos)

(b) Matrix.Translation() * Matrix.RotationY() - nice and simple

(c) Matrix.AffineTransformation() - generally the easiest way to do a FPS style camera
Dustin Franklin ( circlesoft :: KBase :: Mystic GD :: ApolloNL )
sorry ,i'm beginner of mdx , i meaning like this web site:
http://www.codeguru.com/Cpp/G-M/opengl/article.php/c2683


I'm still a bit confused. What exactly do you mean by "pan"? Do you mean physically moving, or just rotating? Either way, you need to use the view matrix. I think you need to be alot more specific to get any specific questions answers. I would search for matrix transformations, as the act of transforms and such may become more clear.
Sean Henley [C++ Tutor]Rensselaer Polytechnic Institute

This topic is closed to new replies.

Advertisement