camera rotation problem

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Uh, read through every post in this thread.
humbrol
Posts: 83
Joined: Sun Nov 18, 2007 8:22 pm

Post by humbrol »

thought he had a seperate thread somewhere, since the code he lists i still get the model flipping upside down and a jog on the camera
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

You complained that your code didn't compile. I'm telling you why it doesn't. You never complained about the 'model being flipped upside down' or a 'jog on the camera'.

If you want to make the camera lean to one side, you change the up vector for the camera. That is all there is to it. If you make the up vector point straight down, as in his example, then the entire scene will seem upside down... kinda like when you stand on your head.

As has been mentioned before, the FPS camera isn't perfect. It doesn't handle an up vector rotation very well. If you want to be able to lean the camera to one side and have it perform correctly, you'll need to modify the camera code, or make a copy and change that.

Travis
Post Reply