Managed DirectX9 Drawtext behind object

266 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 best solutions below

0
On

Try disabling the z-buffer:

Device.SetRenderState(D3DRS_ZENABLE,FALSE)