I have been trying to use normal maps in Vizard with the command
Code:
object.bumpmap(imagefile)
When I do this, the object becomes normal mapped, but light no longer affects it. For example, when running the following code, the cube is fully lit, but if I leave out the last line, the cube is dark like it should be.
Code:
import viz
import vizcam
viz.go()
viz.cam.setHandler(vizcam.PivotNavigate())
viz.MainView.getHeadLight().disable()
cube = viz.add("bump_test.dae")
norm_map = viz.add("bump.jpg")
cube.bumpmap(norm_map)
The same goes for adding lights. They do not light the normal mapped object. I have attached the files referenced in the above code.
Is this a bug, or is there something I'm doing wrong? Thanks for you help!