Stage3DManager.getFreeStage3DProxy() iOS problem

Software: Away3D 4.x

EvgenyTihomirov, Newbie
Posted: 12 March 2013 12:13 PM   Total Posts: 2

stage3DManager = Stage3DManager.getInstance(stage);
stage3DProxy = stage3DManager.getFreeStage3DProxy();
stage3DProxy.addEventListener(Stage3DEvent.CONTEXT3D_CREATED, stage3DProxyCreated);

In browser the event is dispatched. (everything is fine!)

In iOS the event is never dispatched.
In iOS checking stage3DProxy.context3D in enterFrame - never created.

Please, help! Do i need to do something to make Stage3DManager create a Stage3DProxy with context3D in iOS or this is just a bug?

   

Avatar
Greg Caldwell (Greg209), Administrator
Posted: 12 March 2013 08:49 PM   Total Posts: 45   [ # 1 ]

Make sure you have the renderMode & depthAndStencil set correctly in your -app.xml file.

e.g.

  <renderMode>direct</renderMode>
  <depthAndStencil>true</depthAndStencil>

Greg

 Signature 

Home page : http://www.geepers.co.uk
Mobile apps : Sum It All Up

   

EvgenyTihomirov, Newbie
Posted: 13 March 2013 08:25 AM   Total Posts: 2   [ # 2 ]

Greg, thank you VERY MUCH for your help.
I’ve added <depthAndStencil>true</depthAndStencil> to <initialWindow> node in app xml and everything is working fine now!

   

Avatar
Greg Caldwell (Greg209), Administrator
Posted: 13 March 2013 09:04 AM   Total Posts: 45   [ # 3 ]

Great stuff. smile

 Signature 

Home page : http://www.geepers.co.uk
Mobile apps : Sum It All Up

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X