View Single Post
  #1  
Old 06-29-2011, 02:30 PM
Wehrdo Wehrdo is offline
Member
 
Join Date: Jun 2011
Posts: 2
Normal Map Light

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!
Attached Files
File Type: zip normal_map.zip (6.2 KB, 351 views)
Reply With Quote