Build a AIR 3 Desktop App with Away3D 4, really possible??

Software: Away3D 4.x

OrtOfOn, Newbie
Posted: 01 September 2011 06:30 PM   Total Posts: 9

Hi guys,

I give up… please help! I’m trying to do this for days and ... nothing.

First, to be clear and short, I would like to tell you I know it is not working for mobile for now. (https://github.com/away3d/away3d-core-fp11/issues/39)
But here, I’m trying to run it on Desktop.

So,

I built a very simple example with a view3D and a rotating cube with Flash Builder (Flex 4.5.1.21328 SDK merged with AIR 3 beta2 SDK, as it should be).

You can check the source here:
http://www.cornflex.org/files/Away3D4Test.zip

As you will see, I have targeted the good version of SWF in the compiler options (-swf-version=13).
I have put the renderMode on “direct” or “gpu” in the config xml file.
I don’t have any errors.
I have the latest Github version of Away3D 4.
The Away3D stats panel seems to respond correctly.
But nothing on the scene!
When I do a trace() the rotation of the cube or the cube itself, it is there… and all seems to work correctly!

What is missing?! :(


Many thanks

Q.

   

OrtOfOn, Newbie
Posted: 01 September 2011 06:56 PM   Total Posts: 9   [ # 1 ]

WTF! I just found it !!!

The background of this WindowedApplication is on top of the Stage3D of course !!!!!

Put the backgroundAlpha of the WindowedApplication to 0 !!!!!

Cheers.

Q.

   

Somokon, Member
Posted: 01 September 2011 07:13 PM   Total Posts: 75   [ # 2 ]

Yeah, stage3D sits behind the normal flash stage so for flex apps you need to set the background to be transparant.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X