#1
|
|||
|
|||
lighting and on-the-fly objects
I'm not understanding how to get the correct lighting effects for my on-the-fly objects.
First of all, there are only three types of lights - directional, point, and spot - none of which seem to have an ambient light component. So is ambient light only specified by the material property <node3d>.ambient as set for each on-the-fly object? Secondly, I can't seem to shut off all lights. If I have the code: Code:
viz.startlayer(viz.QUADS) viz.vertexcolor(0.7,0.5,0.5) viz.vertex([x,y,0]) viz.vertex([-x,y,0]) viz.vertex([-x,-y,0]) viz.vertex([x,-y,0]) square = viz.endlayer() square.enable(viz.LIGHTING) headLight = viz.MainView.getHeadLight() headLight.disable() Finally, if I check the various lighting properties of the node: Code:
print 'square.getAmbient() =', square.getAmbient() print 'square.getColor() =', square.getColor() print 'square.getEmissive() =', square.getEmissive() print 'square.getShininess() =', square.getShininess() print 'square.getSpecular() =', square.getSpecular() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
lighting issue | cantwelljm | Vizard | 3 | 02-18-2006 08:21 AM |
The effect of lighting on performance | JRichizzle | Vizard | 1 | 06-18-2004 10:40 AM |
Problems with lighting in 2.0 | murm | Vizard | 6 | 04-21-2004 09:59 AM |
Lighting Problem | Plasma | Vizard | 1 | 02-03-2004 11:09 AM |
Vizard 2.0x lighting | FlyingWren | Vizard | 4 | 08-11-2003 12:20 PM |