WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Normal Map Light (https://forum.worldviz.com/showthread.php?t=3823)

Wehrdo 06-29-2011 01:30 PM

Normal Map Light
 
1 Attachment(s)
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!

Wehrdo 07-06-2011 06:45 AM

Do I need to explain the problem better, or is everybody just as stumped as I am?


All times are GMT -7. The time now is 09:19 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC