DirectLabel with 3D model

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.

Model = DirectLabel(geom="Model.egg", geom_hpr=(10, -90, 25), geom_scale = 0.1, geom_pos = (-0.5, 0.0, 0.0))

Here’s what is looks like, the model attached to the DirectLabel on the left and pview on the right:

geocities.com/forsyth_john/D … lIssue.jpg

Any suggestions?

Thanks :slight_smile:
What I’m trying to do is have a 2D background (a DirectLabel) then display a 3D model on top of that.

So far, placing a DirectLabel with the model has been my best solution.

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:

myModelNode.setDepthTest(1)

David