How cameras work

Started by
9 comments, last by VladR 10 years, 11 months ago

So, which API do you use ? OpenGL or DirectX ? Or perhaps, XNA ?

any thoughts about how camera is working in this game? is camera fixed or is moving with the vehicle how to determine

That's an advanced camera behaviour that the racing games use.

There are multiple StartPos, EndPos points, in-between which, the engine smoothly interpolates (with ease-in, ease-out speed adjustment) to construct the "feel" of the camera.

If I were you, I would definitely spend the time and start learning about the World/View/Projection Matrices. Specifically - try to create (not just copy/paste) a code that can create the View Matrix from the points LookFrom, LookAt and vectors Up/Right.

Otherwise, you won't really be able to create some advanced camera behavior - you really need to understand the rows and columns of the view matrix.

VladR My 3rd person action RPG on GreenLight: http://steamcommunity.com/sharedfiles/filedetails/?id=92951596

This topic is closed to new replies.

Advertisement