[vtkusers] Shadows not being created?

David Doria daviddoria at gmail.com
Sun Oct 28 16:15:53 EDT 2012


On Sun, Oct 28, 2012 at 4:06 PM, Arnaud BARRE <arnaud.barre at gmail.com> wrote:
> I've just tried under MacOS X 10.5 with VTK 5.10 and everything is black. I
> have no light.
>
> The console returns me this errror several times:
>
> ERROR: In
> /Users/Alzathar/Downloads/Code/vtk-5.10/Rendering/vtkOpenGLProperty.cxx,
> line 407
> vtkOpenGLProperty (0x1c25230): Using the current shader program is invalid
> with the current OpenGL state. Validation log=Validation Failed: Sampler
> error:
>   Samplers of different types use the same texture image unit.
>    - or -
>   A sampler's texture unit is out of range (greater than max allowed or
> negative).
>
> Do you have this kind of error message too? Maybe your problem is related to
> shader program?
>
> Arnaud

Hm, interesting. I do not get those errors, but when I did just see:

ERROR: In /home/doriad/src/VTK/Rendering/OpenGL/vtkShadowMapBakerPass.cxx,
line 277
vtkShadowMapBakerPass (0x96aa808): FBOs are not supported by the
context. Cannot use shadow mapping.

ERROR: In /home/doriad/src/VTK/Rendering/OpenGL/vtkShadowMapPass.cxx, line 186
vtkShadowMapPass (0x96aa858): FBOs are not supported by the context.
Cannot use shadow mapping.

Does anyone know how to get FBOs supported by the context :) ?

David



More information about the vtkusers mailing list