View Single Post
  #1  
Old 11-10-2010, 10:03 AM
jassel41 jassel41 is offline
Member
 
Join Date: Nov 2009
Posts: 24
Lighting for a new Scene

Hi,

Can anyone help me set up the lighting for a different scene number? Below is what I have originially.

Code:
viz.disable(viz.LIGHTING)		# Disables the lighting of the world
viz.collision(viz.ON) 			
viz.phys.enable() 				# Needed to catch collision events

# Adding object
obj = viz.add(object, viz.WORLD);
obj2 = viz.add(object, viz.WORLD);

headLight = viz.MainView.getHeadLight()

mylight = viz.addLight(viz.WORLD)
mylight.enable()
mylight.position(0, 100, 0)
mylight.intensity(0.85)
The above code runs fine and the lighting is right, but if I make it so obj and obj 2 get added to scene 2, then they show up dark. I tried putting mylight in scene 2, but no change.

Any suggestions?

Thank you in advance,
Jassel41
Reply With Quote