I’ve set up a simple gui with a background and some buttons using DirectGUI. What I’m trying to do is attach a 3D model to a DirectLabel . However, the model isn’t displaying properly when on the DirectLabel, but it’ll display fine as a regular model.
OK, I’ve found a workaround that seems to be working. I’m using an OnScreenImage with a cut-out transparency. Within this window I can draw the 3D model.
In general, since we don’t have the depth buffer enabled by default under render2d, if you want to display a 3-d model in the 2-d scene graph you have to turn on the depth buffer on your model, like this: