Away3D 4.0 and Starling in ANDROID - resize

Software: Away3D 4.x

Rayen123, Member
Posted: 08 September 2012 02:30 PM   Total Posts: 70

Hi,
I have a problem with this demo on my HTC 3D EVO (Android 4) (Away3D 4.0 and Starling Interoperation) http://www.away3d.com/examples/away3d_4_0/Intermediate_One_Away3D_Two_Starling_Layers/Intermediate_One_Away3D_Two_Starling_Layers.html

In my .xml I have set
<renderMode>direct</renderMode>
<depthAndStencil>true</depthAndStencil>

everything works great but I have 36px white border in bottom (like in image).

Thanks for help
Rayen

 

   

Rayen123, Member
Posted: 25 September 2012 08:55 PM   Total Posts: 70   [ # 1 ]

Nobody ? :/

   

Avatar
Fabrice Closier, Administrator
Posted: 25 September 2012 09:00 PM   Total Posts: 1265   [ # 2 ]

and views are having the stage dimension?

   

Rayen123, Member
Posted: 26 September 2012 11:09 PM   Total Posts: 70   [ # 3 ]

Hi.
stage.stageHeight is automaticly changed. I have this code (code is from example):

stage3DManager = Stage3DManager.getInstance(stage);
stage3DProxy = stage3DManager.getFreeStage3DProxy();  stage3DProxy.addEventListener(Stage3DEvent.CONTEXT3D_CREATED, onContextCreated);
stage3DProxy.antiAlias = 8;
stage3DProxy.color = 0x0;
stage3DProxy.width = stage.stageWidth; //nothing happend
stage3DProxy.height = stage.stageHeight; //nothing happend
trace(“TEST1 “+stage.stageWidth+”, “+stage.stageHeight);

I got “TEST1 1280, 800”.

but when functuin onContextCreated is calledd

I traced it again, but i got “TEST1 1280, 732

I dont know what I doing wrong.
Thanks for reply.

   

Mafiy, Newbie
Posted: 08 January 2013 07:44 AM   Total Posts: 15   [ # 4 ]

The same issue on HTC Desire X
Away3d v4.1 alpha

   

Logrey, Newbie
Posted: 03 June 2013 07:28 PM   Total Posts: 12   [ # 5 ]

This thread is a bit old, but I just ran into the same issue (50 pixel gap at the bottom of a Samsung Note II). For whatever reason, the proxy comes in at 1230 tall, while stage.fullScreenHeight sees its full 1280.

To fix, I called “configureBackBuffer” on the proxy:

stage3DProxy.configureBackBuffer(stage.fullScreenWidth,stage.fullScreenHeight,8,true);

worked for me!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X