[vtkusers] VTK 7.1 error "Shader failed to compile" with GPU Volume rendering and clipping planes

Simon ESNEAULT simon.esneault at gmail.com
Fri Mar 10 08:52:18 EST 2017


Hello,

I've found the error, it is located in vtkVolumeShaderComposer.h, if
someone use GPU volume rendering, cropping and clipping at the same time,
the variable vec4 temp gets declared twice.
Renaming 'temp' to 'temp_clip' fix the crash.

HTH someone ;)

Simon

2017-03-08 10:35 GMT+01:00 Simon ESNEAULT <simon.esneault at gmail.com>:

> Hello,
>
> After the migration to VTK 7.1, we get a crash in the shader program (it
> can't be build) when trying to use clipping planes on GPU volume rendering
> mapper
>
> The error is :
> Error:      ERROR: In C:\Dev\ES-Externals\superbuild\VTK\src\Rendering\OpenGL2\vtkShaderProgram.cxx,
> line 395
> vtkShaderProgram (000001FEBFB646D0): 0(474) : error C1038: declaration of
> "temp" conflicts with previous declaration at 0(426)
>
> it appears the variable Vec4 temp is declared twice...
>
> Here is the full log
> https://paste.ee/p/FsdWx
>
> On Windows 10, VTK is built in 64 bits with Visual Studio 2013 along with
> Qt 5.3.2 and other libraries.
>
> Ring a bell to anyone ?
>
> Thanks
> Simon
>
> --
> ------------------------------------------------------------------
> Simon Esneault
> Rennes, France
> ------------------------------------------------------------------
>



-- 
------------------------------------------------------------------
Simon Esneault
Rennes, France
------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170310/3f801978/attachment.html>


More information about the vtkusers mailing list