TextNode colors in render?

Hi all, I’m a total n00b to Panda and 3D in general, and so far I’m loving it. One problem that I haven’t found a solution for though.

When I create a TextNode with a Card behind it, and place it in render, the colors don’t work:

info = TextNode(“Card”)
info.setCardAsMargin(0, 0, 0.5, 0)
info.setCardColor(1.0, 1.0, 1.0, 0.8)

It works fine parented to aspect2d, but not render. Although oddly, the alpha value does work, just not the RGB values. The Card is always black. Same thing if I do setTextColor.

I added the setCardDecal(True) per this post:
panda3d.org/forums/viewtopic … 789b9175c8

but still no luck.

Any help much appreciated! This is the first thing that’s stumped me, the documentation and forums have been a huge help so far.


Hmm, perhaps it’s lighting making your card look dark? Try disabling lighting:



That at least made it the color of its parent object, which I believe is the correct behavior. Thanks!