Force drawing order, draw object in front

Software: Away3D 4.x

NickStone1983, Newbie
Posted: 14 March 2013 11:27 AM   Total Posts: 8

Hi,

I’m building a trident which needs to be above all other objects in the scene. A similar question on here has an answer which suggests it isn’t possible, yet I’ve been told that one can use the Stage3D API directly to do this, something like:

context3D.setDepthTest();

...or…

Context3DCompareMode.ALWAYS parameter.

...but I’m not sure how to implement this. Can anyone help?

Thanks,

Nick

   

Avatar
alihm, Jr. Member
Posted: 16 March 2013 08:37 PM   Total Posts: 49   [ # 1 ]

You can have two stage3d scenes and render them manually. Simply put objects you want to be on front in one scene the rest in another.this article explains how to layer stage3d scenes.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X