Skip navigation
Currently Being Moderated

Can I Keep Stage3D From Writing Into the Z-Buffer?

Feb 22, 2013 3:08 AM

Tags: #stage3d #actionsript_3

I want to render concealed objects and achieve a similar effect as the one shown in the link in Stage3D.


Silhouette Effect in Torchlight 2


I already know how to do this theoretically. I have to draw the object twice:

  • Once with normal settings and
  • once with a different depth sorting mode where only pixels that are behind rendered geometry are shown. Also, to prevent weird effects later on, these pixels can't be rendered into the depth buffer.


I can set the correct depth sorting mode in Stage3D with Context3DCompareMode.GREATER. Is it also possible to have Stage3D render pixels into the back buffer, but not the z buffer?  If I can't keep Stage3D from rendering to the depth buffer, the effect will look like this:


Glitchy Silhoutte Effect


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points