Best practice in Z-sorting problems

Software: Away3D 3.x

Fabiofox, Newbie
Posted: 11 July 2011 09:25 AM   Total Posts: 1

Hi everybody,
first my appreciation for the great job.
Second I introduce the question (a bit long).....

I create a 3D model of a building map using Gimp->Inkscape->blender. After this modelling phase I exported everything in AS3 class using prefab for this job. So, two scenarios are possible.
1) Put each mesh into an ObjectContainer3D and those, into the bigger one represented by the class or
2) Put each mesh directly to ObjectContainer3D represented by the class
Until now everything works fine.
The problems begin when I want to alpha all the walls: the mesh overlap each other while panning the scene. This issue seems improving if bothSides property (of the mesh) is true but the frame rate goes dramatically down. Why this, that seems to be (for me) a z-sorting problem, begin when I set ownCanvas = true (needed for alpha)? Is there another way to obtain the alpha without encounter this kind of issue?

Best Regards.

   

Stephen Hopkins, Sr. Member
Posted: 12 July 2011 09:28 PM   Total Posts: 110   [ # 1 ]

Have you tried changing the renderer to correct_z_order? this will slow it down more, but will help you determine if it is a sorting problem. I am sorry, but I don’t understand your last few sentences.

“Why this, that seems to be (for me) a z-sorting problem, begin when I set ownCanvas = true (needed for alpha)? Is there another way to obtain the alpha without encounter this kind of issue?”

 Signature 

http://www-scf.usc.edu/~shopkins

   

Fabiofox, Newbie
Posted: 12 July 2011 10:07 PM   Total Posts: 1   [ # 2 ]

When the owncanvas property of a Mesh, is set to false my adjacent meshes are rendered perfectly. Instead switching this property to be true I se triangle (of the 2 adjacent meshes) merging each other. This is why I said “Z-sorting problem”. I’m quite sure this is an issue of z-sorting because when I set pushBack=true for a mesh and pushFront=true for another I see them not merging; but cannot use this solution for all my meshes because they are too much and also are not always in the same position (so not the same order).

Have you tried changing the renderer to correct_z_order?

Yest! Nothing better.

So, again why ownCanvas = true trigger all these problem?

   

Stephen Hopkins, Sr. Member
Posted: 13 July 2011 02:22 AM   Total Posts: 110   [ # 3 ]

Can you change the alpha of your material instead of the object3D?

 Signature 

http://www-scf.usc.edu/~shopkins

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X