• Advertisement
Sign in to follow this  

[mdx]how can i pan a scene ?

This topic is 4252 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i wanted to writed a c# application with mdx,there is a question about pan a scene? who can help me?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
sorry ,i'm beginner of mdx , i meaning like this web site:
http://www.codeguru.com/Cpp/G-M/opengl/article.php/c2683


Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement