iphone landscape mode

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
radads
Posts: 1
Joined: Sun Sep 12, 2010 7:11 pm

iphone landscape mode

Post by radads »

Hi,
I managed to compile and run irrlicht ogl-es on an iphone 3gs and have hello world (sydney) working.
My question is regarding the best way to rotate the display to be in landscape mode.
What I thought could be the best way to do this is to catch the orientation of the iPhone from the notifications and apply this to the viewport and framebuffer in irrlicht (though I dont know how to go about doing this).
Has anybody been able to run ogl-es irrlicht in landscape mode on an iphone (or simulator) ?
Thanx in advance.
Metalero
Posts: 14
Joined: Tue Sep 07, 2010 4:02 pm

Post by Metalero »

I´ve had the same problem... yo can try with this thread

http://irrlicht.sourceforge.net/phpBB2 ... pe+iphone

Where Arcoroc give some code I coudn´t try yet coz of personal bussiness XD, but if it work for you, I´d be glad if you tell me, so when I was able to,
i´ll try with this too.
Adversus
Posts: 128
Joined: Sun Oct 05, 2008 10:58 pm
Contact:

Post by Adversus »

If you rotate the project matrix don't forget to convert the fov when creating the projection matrix.

convert it by simply doing:

fov = 1.0f / fov;

Otherwise it won't match up properly, simple fix but it caught me out for ages.
digijohnny
Posts: 63
Joined: Sat Sep 12, 2009 6:08 pm
Contact:

landscape option

Post by digijohnny »

i used a quick and dirty method
for my latest app 'FA-18 Marine Aviator'
http://www.digijohnny.com/MAF18CQ

this is a flight sim so i need 6dof for cam movement, but i hope this helps

i use portrait mode and turn the world sideways
Post Reply