View Single Post
  #2  
Old 12-04-2012, 04:20 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Exporting lights through Max is currently not supported and causes the type of issue you're seeing.

It is possible to disable lights on certain nodes. In the following code only light1 is disabled on the basketball:
Code:
import viz
import vizact

viz.setMultiSample(4)
viz.fov(60)
viz.go()

soccerball = viz.addChild('soccerball.osgb')
basketball = viz.addChild('basketball.osgb')
volleyball = viz.addChild('volleyball.osgb')

soccerball.setPosition([-0.5,2,1.5])
basketball.setPosition([0,2,1.5])
volleyball.setPosition([0.5,2,1.5])

headLight = viz.MainView.getHeadLight().disable()
light1 = viz.addLight()
light2 = viz.addLight()
light2.setEuler(0,90,0)

basketball.disable(viz.LIGHT0 + light1.getNumber())
Reply With Quote