Away3d 4 3D content always draw behind flex spark

Software: Away3D 4.x

jtopaz, Member
Posted: 31 July 2011 12:57 PM   Total Posts: 53

I can integrate Away3d 4 3D content with flex spark using SpriteVisualElement. But 3D content always draw behind flex spark component.
Any idea how to solve it? Thanks

   

Avatar
theMightyAtom, Sr. Member
Posted: 31 July 2011 08:18 PM   Total Posts: 669   [ # 1 ]

The Molehill layer in Flash Player 11 (which Away3D 4.0 utilizes) is placed beneath the normal display list. This means all 3D content resides below Flex components, no matter where you place your Away3D view in the stacking order.

This is a limitation of the Flash player itself, and cannot be altered at this time. The alternative is to use the 3.6 engine, in which the Away3d view functions as any other layer in the display list.

I have experimented with drawing the Molehill layer into an ordinary layer to facilitate this kind of functionality, but performance is adversely affected.

See this thread for example and more info.
http://away3d.com/forum/viewthread/363/

Cheers!

   

jtopaz, Member
Posted: 01 August 2011 08:20 AM   Total Posts: 53   [ # 2 ]

Thanks Peter.

I will try your suggest. But as performance is my first prority, I may not able to use away3d on flex spark.

Also, I am thinking whether Away3d 4 and MXML is a good match??

   

Avatar
theMightyAtom, Sr. Member
Posted: 01 August 2011 08:42 AM   Total Posts: 669   [ # 3 ]

The question is, do you absolutely need to display content behind the 3D scene? You can put graphics into the 3D scene, as a background, for augmented reality applications (see DerSchmales latest updates on GitHub).

Remember that ALL hardware accelerated 3D frameworks will have the same limitation. As for MXML, it shouldn’t make any difference. 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X