Skip to main content
gamedev.net
🔒 Locked

Camera tutorial

Started by GDMichael 1 reply 450+ views
Original Post
GDMichael
GDMichael
Does any good Camera tutorial about DX9? I don't know how to make a good camera? I saw some tutorial on gamedev.net is not good...pls help me and thx
Acid-Chris
Acid-Chris
Hi.

- There where some on gametutorials.com (very beginners)
- A nice article about quaternion-based cameras can be found at gamasutra.com (intermediate)
- once you understand the math behind the cameras and viewport manipulation you should be able to implement a camera system that fit's most to your needs.

regards,
christoph
Grizwald
Grizwald
Well basically for a camera, you have 3 different ways to rotate your view: Yaw (y axis), pitch (x axis) and roll (z axix) rotations. You can also move 3 ways, forward and back, up and down, and side to side. If you understand vector maths, you can get your rotation matrix or quaternion from your 3 rotations (there are better methods, but this is pretty easy) rotate your view, and then translate the camera along the forward, up, or side vector to get your new position.

I understand that that wasn't really the best phrased advice, but it should get you somewhere. Gamedev has some camera articles that could help you out. Just go to the menu at the top of this page under resources, then articles.
I love me and you love you.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.