How do I rotate the whole scene?

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.
Post Reply
pir
Posts: 24
Joined: Wed Apr 29, 2009 8:15 pm

How do I rotate the whole scene?

Post 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
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

You might be able to rotate the root scene node and the camera's up vector, but I haven't tried it.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post 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)?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Psan
Posts: 16
Joined: Sun Oct 04, 2009 7:07 pm

Post 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));
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Yeah, I meant or there. :)
Post Reply