PDA

View Full Version : Normal Map Light


Wehrdo
06-29-2011, 01:30 PM
I have been trying to use normal maps in Vizard with the command

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.


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!

Wehrdo
07-06-2011, 06:45 AM
Do I need to explain the problem better, or is everybody just as stumped as I am?