[vtkusers] Shadows not being created?

Arnaud BARRE arnaud.barre at gmail.com
Mon Oct 29 04:34:40 EDT 2012


The source code of 'vtkFrameBufferObject::IsSupported' uses the method
'vtkOpenGLExtensionManager::ExtensionSupported' to know if the required
features are supported or not. Maybe you could put some checkpoints on
these lines to know which feature create this X bad request.
Moreover, if you look in the code of
'vtkOpenGLExtensionManager::ExtensionSupported', there is some workaround
for some graphic card. Maybe your card (or the graphic driver) need also
some workarounds.

Another possibility is that you do the check before any update of the
rendering window. Then the OpenGL extensions are not loaded.

On Sun, Oct 28, 2012 at 11:36 PM, David Doria <daviddoria at gmail.com> wrote:

> On Sun, Oct 28, 2012 at 4:56 PM, Arnaud BARRE <arnaud.barre at gmail.com>
> wrote:
> > This is a naive comment, but maybe this feature is not supported by the
> > driver of you graphic card under Linux?
> >
> > I'm curious to know how this example works under Windows (with a Nvidia
> card
> > for example).
>
> I switched video drivers and it indeed now works as expected.
>
> I tried to put a check in the example:
>
>   bool supported = vtkFrameBufferObject::IsSupported(renderWindow); //
> adapted from line 182 of vtkShadowMapPass.cxx
>
>   if(!supported)
>     {
>     std::cerr << "Shadow rendering is not supported by the current video"
>               << " driver!" << std::endl;
>     return EXIT_FAILURE;
>     }
>
> but when I run that I get this error:
>
> X Error of failed request:  BadMatch (invalid parameter attributes)
>   Major opcode of failed request:  1 (X_CreateWindow)
>   Serial number of failed request:  65
>   Current serial number in output stream:  72
>
> Is there a different way I can check for this condition?
>
> David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121029/07538602/attachment.htm>


More information about the vtkusers mailing list