Managed DirectX9 Drawtext behind object

227 views Asked by At

I use the drawtext method to create labels on a grid. Works perfectly - but they are always in front of the mesh im showing in the grid.

Is there a possibility to render it behind the mesh that its not visible inside the object?

Seems like drawtext uses no depth buffer:-(

1

There are 1 answers

0
Xaggre On

Try disabling the z-buffer:

Device.SetRenderState(D3DRS_ZENABLE,FALSE)