orientation issues with ios6 and ogre 1.8

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
swathi
Gnoblar
Posts: 6
Joined: Fri Nov 30, 2012 6:10 am

orientation issues with ios6 and ogre 1.8

Post by swathi »

1) Do i need the ogre 1.8 to run my application in the ios6(iphone5 and iPad3).
Because previously in ipad3 with ogre1.7.4 and ios5 , it runs succesfully and in iphone i used the entity with the moving animation, it is not moving at all . so please tell me whether do i need to upgrade or not ? because it runs in ipad3 and not in iphone 5
2)I upgrade to the new version , ogre 1.8 getting crash and this is the call log

Code: Select all

Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
OverlayElementFactory for type Panel registered.
OverlayElementFactory for type BorderPanel registered.
OverlayElementFactory for type TextArea registered.
Registering ResourceManager for type Font
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
ArchiveFactory for archive type EmbeddedZip registered.
DDS codec registering
FreeImage version: 3.15.3
This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,3fr,arw,bay,bmq,cap,cine,cr2,crw,cs1,dc2,dcr,drf,dsc,dng,erf,fff,ia,iiq,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,ptx,pxn,qtk,raf,raw,rdc,rw2,rwl,rwz,sr2,srf,srw,sti
PVRTC codec registering
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
*-*-* OGRE Initialising
*-*-* Version 1.8.0unstable (Byatis)
Installing plugin: OpenGL ES 1.x RenderSystem
OpenGL ES 1.x Rendering Subsystem created.
Plugin successfully installed
Installing plugin: ParticleFX
Particle Emitter Type 'Point' registered
Particle Emitter Type 'Box' registered
Particle Emitter Type 'Ellipsoid' registered
Particle Emitter Type 'Cylinder' registered
Particle Emitter Type 'Ring' registered
Particle Emitter Type 'HollowEllipsoid' registered
Particle Affector Type 'LinearForce' registered
Particle Affector Type 'ColourFader' registered
Particle Affector Type 'ColourFader2' registered
Particle Affector Type 'ColourImage' registered
Particle Affector Type 'ColourInterpolator' registered
Particle Affector Type 'Scaler' registered
Particle Affector Type 'Rotator' registered
Particle Affector Type 'DirectionRandomiser' registered
Particle Affector Type 'DeflectorPlane' registered
Plugin successfully installed
An exception has occurred: OGRE EXCEPTION(2:InvalidParametersException): Option named Orientation does not exist. in GLESSupport::setConfigOption at /Users/davidrogers/Documents/Ogre/ogre-v1-8/RenderSystems/GLES/src/OgreGLESSupport.cpp (line 44)
2012-12-04 14:38:02.114 Sample[14669:907] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(0x368f82a3 0x30bdf97f 0x36843b75 0x32bd 0x3d23 0x38018b15 0x3801869b 0x38010843 0x37fb8c39 0x37fb86cd 0x37fb811b 0x34df05a3 0x34df01d3 0x368cd173 0x368cd117 0x368cbf99 0x3683eebd 0x3683ed49 0x3800f47d 0x3800c2f9 0x114bf 0x2e00)
libc++abi.dylib: terminate called throwing an exception
(lldb) 

in simulator it works fine in device getting the above error

3) As ios6 orientation is changed i applied the new methods the orientation , when i fixed the orientaion issue , i cant see any ogre objects it is showing the black screen
4) if i didnt fixed the orientation , then i can see the all ogre entities

5) my doubt so i need to follow any steps to upgrade from ogre 1.7.4 to ogre 1.8 and , do i need to add the auto orientation methods in the ogre . Please help me, not getting any information . It is urgent for us
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: orientation issues with ios6 and ogre 1.8

Post by masterfalcon »

The method for changing orientation changed between Ogre 1.7 and 1.8. On 1.8 all you need to do is set the valid orientations in your Info.plist. The crash is due to the orientation setting being in the ogre.cfg file and 1.8 doesn't recognize it. Just remove the setting and you should be fine.
swathi
Gnoblar
Posts: 6
Joined: Fri Nov 30, 2012 6:10 am

Re: orientation issues with ios6 and ogre 1.8

Post by swathi »

Hi ,
Thanks for reply , but in the ogre.cfg am not finding anything regarding to the orientation , this has only this information what do i need to remove in this
Render System=OpenGL Rendering Subsystem

[OpenGL Rendering Subsystem]
Colour Depth=32
Display Frequency=N/A
FSAA=0
Full Screen=No
RTT Preferred Mode=FBO
VSync=No
VSync Interval=1
#Video Mode=480 x 320
Video Mode=1024 x 768
sRGB Gamma Conversion=No
macAPI=carbon, where do i need to change exactly

Thanks&regards
swathi
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: orientation issues with ios6 and ogre 1.8

Post by masterfalcon »

It will be on the device. That's an Ogre config for a desktop system ("OpenGL Rendering SubSystem")