Transparent planes render order

Software: Away3D 4.x

Chirieac, Newbie
Posted: 22 March 2013 11:13 PM   Total Posts: 4

Hi,

I have the following issue with transparent planes: example

The shadow under the piece is a plane that have a transparent image. If I move the piece away from the camera, the green plane is rendered on top of the shadow plane. If the piece is moving closer to the camera the green plane is rendered behind the shadow plane as it should.

How can this issue be fixed?

   

Chirieac, Newbie
Posted: 23 March 2013 07:44 AM   Total Posts: 4   [ # 1 ]

This solution worked for me.

Before I had something like this:

var overPlane:PlaneGeometry = new PlaneGeometry(squareSizesquareSize11);
squareOverPlane = new Mesh(overPlanematerials.squareOverMaterial); 

After applying the solution:

var overPlane:PlaneGeometry = new PlaneGeometry(squareSizesquareSize11);
var 
overPlaneMesh:Mesh = new Mesh(overPlanematerials.squareOverMaterial);
//
adjustMeshYDepth(overPlaneMesh100);
//
squareOverPlane = new ObjectContainer3D();
squareOverPlane.addChild(overPlaneMesh); 

(I’ve added the mesh as a child of a ObjectContainer3D to have clean position values)

Is there a better solution?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X