<div dir="ltr"><span style="font-size:17.5px">Hi all,</span><div style="font-size:17.5px"><br></div><div style="font-size:17.5px">I have set up a very simple scene, with only one actor and one light.</div><div style="font-size:17.5px">I'm using python, the official 7.1.0 python bundle.</div><div style="font-size:17.5px"><br></div><div style="font-size:17.5px">The renderer's ambient set to (0, 0, 0), using ren.SetAmbient(0, 0, 0), and disable automatic light creation by ren.SetAutomaticLightCreation(<wbr>False);</div><div style="font-size:17.5px">the actor's ambient set to 0.5, ambient color use the default (1, 1, 1);</div><div style="font-size:17.5px">the light's ambient color set to (1.0, 0, 0), I mean red, while diffuse color and specular color set to (0, 0, 0).</div><div style="font-size:17.5px"><br></div><div style="font-size:17.5px">I am expecting a red-ish flat color, since red (ambient) light shine on grey (ambient) thing produces red, but I get a grey flat color.</div><div style="font-size:17.5px"><br></div><div style="font-size:17.5px">It acts like there is always one and only one global pure white ambient light (not the one I created), or the "ambient" acts like an emissive component. The light I created has no effect on actor's ambient color.</div><div style="font-size:17.5px"><br></div><div style="font-size:17.5px">I am new to VTK, where am I missing :(</div><div style="font-size:17.5px"><br></div><div style="font-size:17.5px">The full source code is pretty short, both python2 and python3 will do:</div><div style="font-size:17.5px"><br></div><div style="font-size:17.5px"><div>import vtk</div><div>if __name__ == '__main__':</div><div>    # A source process object</div><div>    cube = vtk.vtkCubeSource()</div><div><br></div><div>    # A mapper process object</div><div>    cubeMapper = vtk.vtkPolyDataMapper()</div><div>    cubeMapper.SetInputConnection(<wbr>cube.GetOutputPort())</div><div><br></div><div>    # An actor</div><div>    cubeActor = vtk.vtkActor()</div><div>    cubeActor.SetMapper(<wbr>cubeMapper)</div><div>    prop = cubeActor.GetProperty()</div><div>    prop.SetAmbient(0.5)</div><div>    prop.SetDiffuse(0.0)</div><div>    prop.SetSpecular(0.0)</div><div>    </div><div>    # A renderer</div><div>    ren = vtk.vtkRenderer()</div><div>    ren.SetAmbient(0.0, 0.0, 0.0)</div><div>    ren.SetAutomaticLightCreation(<wbr>False)</div><div>    ren.AddActor(cubeActor)</div><div><br></div><div>    light = ren.MakeLight()</div><div>    light.SetAmbientColor(1.0, 0.0, 0.0)</div><div>    light.SetDiffuseColor(0.0, 0.0, 0.0)</div><div>    light.SetSpecularColor(0.0, 0.0, 0.0)</div><div>    ren.AddLight(light)</div><div>    </div><div>    # A render window</div><div>    renWin = vtk.vtkRenderWindow()</div><div>    renWin.AddRenderer(ren)</div><div><br></div><div>    # window interation</div><div>    iren = vtk.vtkRenderWindowInteractor(<wbr>)</div><div>    iren.SetRenderWindow(renWin)</div><div><br></div><div>    iren.Initialize()</div><div>    renWin.Render()</div><div>    iren.Start()</div><div>    </div></div><div style="font-size:17.5px">---------------</div><div style="font-size:17.5px">Wang Yueheng,</div><div style="font-size:17.5px">Tsinghua University,</div><div style="font-size:17.5px">Beijing, China</div><div style="font-size:17.5px"><br></div></div>