Hi, I am trying to add some shininess on to my geometry but failed to do so. Material and lighting works on loader.loadModel but some how could not get the shininess to work on my geomNode. Am I missing something? Any help appreciated.
np = render.attachNewNode(GeomNode('geom')) m = Material() # add some material properties here # np.node().setAttrib(MaterialAttrib.make(m)) np.setMaterial(m, 1)
above doesn’t work, but below works.
model = loader.loadModel('some model') m = Material() # add some material properties here # model.setMaterial(m, 1)