I've just tried under MacOS X 10.5 with VTK 5.10 and everything is black. I have no light.<br><br>The console returns me this errror several times:<br><span style="font-family:courier new,monospace"><br>ERROR: In /Users/Alzathar/Downloads/Code/vtk-5.10/Rendering/vtkOpenGLProperty.cxx, line 407<br>
vtkOpenGLProperty (0x1c25230): Using the current shader program is invalid with the current OpenGL state. Validation log=Validation Failed: Sampler error:<br> Samplers of different types use the same texture image unit.<br>
- or -<br> A sampler's texture unit is out of range (greater than max allowed or negative).</span><br><br>Do you have this kind of error message too? Maybe your problem is related to shader program?<br><br>Arnaud<br>
<br><div class="gmail_quote">On Sun, Oct 28, 2012 at 7:33 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In this wiki example:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Shadows" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Shadows</a><br>
<br>
it is supposed to create shadows on the plane, like this:<br>
<a href="https://gitorious.org/vtkwikiexamples/wikiexamples/blobs/master/Testing/Baseline/Visualization/TestShadows.png" target="_blank">https://gitorious.org/vtkwikiexamples/wikiexamples/blobs/master/Testing/Baseline/Visualization/TestShadows.png</a><br>
<br>
However, on my machine, it is producing:<br>
<a href="https://gitorious.org/vtkwikiexamples/wikiexamples/blobs/master/Testing/Baseline/Visualization/TestShadows_1.png" target="_blank">https://gitorious.org/vtkwikiexamples/wikiexamples/blobs/master/Testing/Baseline/Visualization/TestShadows_1.png</a><br>
<br>
Does anyone know what might cause the shadows not to be created?<br>
<br>
Thanks,<br>
<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>