Viewport issue with iPhone and a couple more questions

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Ologon
Halfling
Posts: 70
Joined: Sun Dec 02, 2007 11:10 am
Location: Italy
x 2

Viewport issue with iPhone and a couple more questions

Post by Ologon »

Hi!
I've recently started developing for iPhone and I'm planning on releasing my next app with Ogre (I'd like to thank masterfalcon for this excellent port).

I've a couple of questions regarding the iOS Ogre:

1) For better performance/stability should I stick with Ogre 1.7.4 or Ogre 1.8 is stable enough for production use? Do I get any improvements on OpenGL ES side if I switch to Ogre 1.8?

2) I'm currently testing the demo app (Ogre 1.7.4) on XCode 4 and iOS SDK 5.1 and everything works great in landscape mode. However my game will only support portrait, and I cannot get ogre to show in portrait mode. I've tried to set Orientation=Portrait, and viewport->setOrientationMode(Ogre::OR_PORTRAIT) with no luck. :( I've set Portrait as the only supported mode but the simulator and ogre keep showing a landscape view. I've tried searching around the forum but I couldn't find a solution working for me.
Is this issue solved with Ogre 1.8?

Thanks in advance and please keep up the excellent work!
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Viewport issue with iPhone and a couple more questions

Post by masterfalcon »

There are very few enhancements to the GLES 1.1 render system. But GL ES 2 is new. A number of new features introduced in iOS 5 have been implemented and more importantly for you, windowing has been changed. The orientation mode code has been disabled in favor of doing it "the right way" using a view controller. Now you'll be able to specify supported orientations in your Info.plist and that's all that you need to do.
Ologon
Halfling
Posts: 70
Joined: Sun Dec 02, 2007 11:10 am
Location: Italy
x 2

Re: Viewport issue with iPhone and a couple more questions

Post by Ologon »

Thanks for the tip masterfalcon.

Finally I managed to get the orientation in Portrait mode :D However I'm still considering switching to Ogre 1.8.

I will be using OpenGL ES 1.x for the moment, but is Ogre 1.8 compatible with iOS 3.2?
I still want to keep supporting it as I did with 1.7.4. :wink:
Ologon
Halfling
Posts: 70
Joined: Sun Dec 02, 2007 11:10 am
Location: Italy
x 2

Re: Viewport issue with iPhone and a couple more questions

Post by Ologon »

Ok just found the answer here: http://www.ogre3d.org/forums/viewtopic.php?f=21&t=68812

I think i will switch to Ogre 1.8 anyway, since iOS 3.2 is pretty outdated and almost unused by now. That way I can also enable the ARC functionality. :wink:

Thanks!