Auto Orientation Problem

Software: Away3D 4.x

niczy, Newbie
Posted: 10 September 2012 08:01 AM   Total Posts: 7

Hi,

I am developing on the Motorola XOOM tablet with Android OS 3.2.2
with Flash Builder 4.6, AIR 3.2 SDK with the gold release version of AWAY3D 4.0.9 swc

I ran the example Basic_LoadMD2 (16 ogres moving on a checkerboard) on the tablet with
<fullScreen>false</fullScreen>
<visible>true</visible>
<renderMode>direct</renderMode>
<aspectRatio>landscape</aspectRatio>
<autoOrients>true</autoOrients>
<depthAndStencil>true</depthAndStencil>

It can display correctly, both in landscape mode or portrait mode, on the tablet on startup . However, the problem is: after starting up the demo, when I rotate the tablet from landscape to portrait or vice versa, the screen goes black, nothing is shown and the following error pops up in the debugger

Error #2044: Unhandled ErrorEvent:. text=Error #3702: Context3D not available.

I did a search on the forum and found a similar issue
http://away3d.com/forum/viewthread/2083/

May I ask if this is a bug that has not been solved yet or is there something I could have done besides setting
<autoOrients>false</autoOrients>


A similar issue arises when
1. the tablet is set to auto rotate depending on its orientation
2. the demo is set to <autoOrients>false</autoOrients>
3. demo shows fine on startup, its orientation is fixed no matter the orientation of the tablet
4. the tablet goes to sleep
5. the tablet is then placed in another orientation, the screensaver will auto-rotate
6. the tablet is then unlocked
7. the demo will then rotate itself
8. I can no longer view the 3D objects and can only see the Away3D logo
9. the demo then continually auto rotates itself between landscape and portrait mode.

 

   

Raj, Newbie
Posted: 11 September 2012 04:36 AM   Total Posts: 9   [ # 1 ]

Hey, did u find any solution for this?

You can see this commit:
https://github.com/away3d/away3d-core-fp11/commit/e561777edf244ecf5b6e553612d4359839d260c1

I tried to compare these changes to the dev branch src, and it seems to have these fixes there too.
But the problem persistes for me.
I’m using Android Mobile 2.3.6 and 3.2 Tab and the scene disappears after rotation.

   

niczy, Newbie
Posted: 12 September 2012 02:33 AM   Total Posts: 7   [ # 2 ]

Hi Raj,  I tried the commit provided in that link too, but I still have the same problem as you: the scene still disappears after rotation.

I guess in the meantime, a workaround would be to restrict the tablet from being able to auto-rotate itself

   

Sandra, Newbie
Posted: 12 September 2012 11:37 AM   Total Posts: 3   [ # 3 ]

I’ve got the same problem. Scene is gone after rotating the device? Any ideas except for restricting rotation or re-initializing the view and scene after rotation?

   

maddec, Newbie
Posted: 12 September 2012 12:12 PM   Total Posts: 1   [ # 4 ]

I have the same problem.

I started a proto with a pure Starling with a “regular” context3D and using Foxhole cpns. Everything worked fine when reorientation is done.

Then I expanded it following this tutorial to use Stage3DManager + Stage3DProxy.
Following this tutorial:
http://www.away3d.com/example/away3d_4.0_and_starling_interoperation

And now when reorient is done everything seems to go off screen, Away3D and Starling (which is logical…).

By the way I experienced the exact same problem with some other pure Away3D 4 tests.

Would be great if you can fix this wink Thank you!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X