#1
|
|||
|
|||
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) Any suggestions? Thank you in advance, Jassel41 |
#2
|
|||
|
|||
Try adding another light to scene 2.
|
#3
|
|||
|
|||
I tried that, any other thoughts on why I can't get it to light correctly in scene 2? This is what I tried:
Code:
viz.disable(viz.LIGHTING, 2) # 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, 2); obj2 = viz.add(object, viz.WORLD, 2); headLight = viz.MainView.getHeadLight() mylight = viz.addLight(viz.WORLD, 2) mylight.enable() mylight.position(0, 100, 0) mylight.intensity(0.85) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
basic lighting question | malte | Vizard | 6 | 12-01-2010 01:25 PM |
Warping Rendered Scene? | rwgray | Vizard | 3 | 03-25-2010 03:19 PM |
Copying Scene? | Brett Lindberg | Vizard | 0 | 08-29-2009 12:56 AM |
lighting issue | cantwelljm | Vizard | 3 | 02-18-2006 09:21 AM |
Vizard 2.0x lighting | FlyingWren | Vizard | 4 | 08-11-2003 01:20 PM |