Android - Manual Objects

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
BigDave2001
Kobold
Posts: 37
Joined: Tue Feb 21, 2012 3:57 pm

Android - Manual Objects

Post by BigDave2001 »

Thought I'd start a new thread on this as it may have been too well hidden in my other thread...

Android, when sleeping or pressing the home button, has to destroy all resources and recreate them once the app comes back into view.

This works expect for OgreManualObjects. These are simple meshes: 4 vertices, colour, UV, - it doesn't seem make a difference whether I then convert them to meshes 'ConvertToMesh' - as the resources are recreated, if I had any ManualObjects, the app crashes and restarts.

The solution I have found is to monitor the app, and when it is about to destroy resources, manually destroy my manual objects, and create them once other resources have been created.

I'm using a recent 1.9 build if that's any help.
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99

Re: Android - Manual Objects

Post by Wolfmanfx »

Can you make a mantis bug entry so this wont get lost i will soon tackle this one.
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99

Re: Android - Manual Objects

Post by Wolfmanfx »

I have fixed this one in 1.9