This is probably a very basic issue so I’m sorry if its been answered previously.
I am adding my first light source to my node graph and confused by the results. I have a node graph that looks like
render -> playing_surface -> balls
playing_surface is a procedurally drawn rectangle, and each ball is a child node of
playing_surface. The table is at a height
LPoint3f(0, 0, 0.75) and the method I use to initialize the lights looks like this:
def init_lights(self): height = 3 plight = PointLight('plight') plight.setColor((1, 1, 1, 1)) plnp = self.render.attachNewNode(plight) plnp.setPos(self.shot.table.w*0.5, self.shot.table.l*0.5, height) self.render.setLight(plnp) plight.setShadowCaster(True, 1024, 1024) self.render.setShaderAuto()
To my surprise, the balls look illuminated by the light, however the
playing_surface is not, even though the balls are children of that node.
Can someone please “illuminate” what I’m doing wrong?
Thanks so much.