Jump to content
  • Advertisement
Sign in to follow this  
songsgroup

[mdx]how can i pan a scene ?

This topic is 4521 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

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
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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!