Jump to content
  • Advertisement

Archived

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

happyman

camera transformation

This topic is 5882 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 am making a simple engine ,it just renders wireframe objects. i cant get the camera working , i read some tutorials ,they seem to do the camera transformation by using vector which point at the direction the camera is looking ,anyway my question is can u do it with simple rotations ,ie rotate the world around u . if (x,y,z) is the point and (cx,cy,cz) the camera position then rotate the point (x-cx,y-cy,z-cz) around the y axis for looking left and right. it seems to work fine but when i move forward it gets screwed. is it possible to do it with simple rotations if then how do u move forward ,left ,right etc. if u have any ideas plz reply.thanks

Share this post


Link to post
Share on other sites
Advertisement

  • 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!