MickMalone1983
MickMalone1983

Reputation: 1054

Away3D depth buffering

I'm developing a simple scene editor in Away3D, where the user can import, arrange and transform objects. In order to simplify the user process, I've created a gizmo object which appears over the selection (basically three arrows for click-dragging), but this can be obscured by other objects if they're in front of the selection, relative to the camera - is there any way to turn off depth-buffering for a given object/group, so that it is always rendered in front of the other objects in scene?

Thanks in advance

Upvotes: 1

Views: 385

Answers (1)

nikitablack
nikitablack

Reputation: 4663

Don't know how to do it in away3d, but is stage3D API this can be achieved by using context3D.setDepthTest() with Context3DCompareMode.ALWAYS parameter.

Upvotes: 1

Related Questions