View Single Post
  #2  
Old 07-17-2008, 10:56 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You will need to enable lighting on the object:
Code:
node.enable(viz.LIGHTING)
However, if you are creating the polygons using On-The-Fly objects you will need to specify per vertex normals for the lighting to look correct. This means before each viz.vertex call you will need to specify the normal vector of that vertex using the viz.normal command.
Reply With Quote