Page 1 of 1

How do I rotate the whole scene?

Posted: Thu Oct 08, 2009 3:49 pm
by pir
Hi!

I'm developing on iPhone and need to rotate the scene 90degrees to use the phone in landscape mode. Is there any easy ways to rotate the whole scene, including the camera?

BR
pir

Posted: Thu Oct 08, 2009 4:01 pm
by vitek
You might be able to rotate the root scene node and the camera's up vector, but I haven't tried it.

Posted: Thu Oct 08, 2009 4:59 pm
by CuteAlien
Sorry, I'm confused. If you rotate the scene and the camera wouldn't you just have exact same image afterwards?
I don't know anything about iphone or landscape mode, but are you sure you don't just want to rotate the camera (or scene)?

Posted: Thu Oct 08, 2009 7:04 pm
by Psan
Please try this :

camera->setUpVector(core::vector3df(1.0f, 0.0f, 0.0f));

or

camera->setUpVector(core::vector3df(0.0f, 0.0f, 1.0f));

Posted: Thu Oct 08, 2009 9:59 pm
by vitek
Yeah, I meant or there. :)