Z-rendering order wrong after camera moved

Software: Away3D 4.x

HugoW, Newbie
Posted: 25 June 2013 03:35 AM   Total Posts: 11

Hello guys,

i’m getting a strange rendering error if the camera is moved in the scene.
The mesh’s positions are not changed, only the camera’s position is change by mouse. Please check attached image.

Note: If my mesh’s X is 0 (grandpop) , everything works fine.

Any solution?

Away3D Version :
away3d 4.1.0 Alpha

 

   

nehvaleem, Newbie
Posted: 25 June 2013 07:59 AM   Total Posts: 4   [ # 1 ]

try using alphaThreshold instead of alphaBlending on your material. When u can use binary alpha it will behave without z-oder bug I think.

   

mattmogford, Newbie
Posted: 25 June 2013 09:21 AM   Total Posts: 23   [ # 2 ]
nehvaleem - 25 June 2013 07:59 AM

try using alphaThreshold instead of alphaBlending on your material. When u can use binary alpha it will behave without z-oder bug I think.

I had the same problem, and this has fixed it.
Thank you nehvaleem!

Instead of -
  objTextureMaterial.alphaBlending = true;
use
  objTextureMaterial.alphaThreshold = 1;
on TextureMaterial.

   

HugoW, Newbie
Posted: 25 June 2013 01:05 PM   Total Posts: 11   [ # 3 ]

By setting my mesh’s alphaBlending to false, it really do the trick, but it also affect my mesh’s position. I have to assign my mesh to new position in order to show it correctly. ^^

Thank you all!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X