Drawing Lines?

Does Panda3D support ways of drawing lines rather than geometry? Namely, can I draw lines OVER textured polygons?

You can draw lines with Panda. The easiest way is with the LineSegs class; see the API documentation, and/or search the forums.

Putting a line on top of existing polygons is a little bit trickier; the problem is that the line will tend to be embedded within the polygon, and you’ll see it flicker in and out. But there are a handful of ways to work around this. The most straightforward is to move the line a little bit out from the polygon, so that it’s not exactly coplanar.

Another possible solution is to use a DecalEffect, but this is a bit complicated to set up.


Thank you again. That’s the information that I needed.