View Single Post
  #4  
Old 04-07-2014, 11:03 AM
shivanangel shivanangel is offline
Member
 
Join Date: Feb 2006
Location: New Jersey
Posts: 182
That worked for the ambient occlusion map, however I'm not getting any lighting (specular in particular).
I added the model.enable(viz.LIGHTING) however I noticed no change.
Neither the headlamp seems to be doing anything or a basic directional light.

I also tried adding a light in the inspector and saving the model, but with nothing showing up in Vizard.

Code:
import viz
import vizfx
viz.enable(viz.EFFECTGEN_OSGMAXEXP)

viz.setMultiSample(4)
viz.go(viz.FULLSCREEN)
coolingCylinder = vizfx.addChild('StaticModels_New//CoolingCylinder.OSGT')
coolingCylinder.enable( viz.LIGHTING) 
viz.sensitivity(10, 0.75)

viz.addLight()
~George
Reply With Quote