[vtkusers] [VtkEdge] VTKEdge volume mapper cannot work with multiple render window?

Francois Bertel francois.bertel at kitware.com
Thu Nov 6 10:30:05 EST 2008


On all platforms, there is a way to create an OpenGL context that
shares some OpenGL resources (texture objects, display lists, shader
programs) with another OpenGL context. But it is not supported by VTK
(yet). The API of vtkRenderWindow does not provide a mechanism to do
so. And it is not a trivial change in VTK.

On Thu, Nov 6, 2008 at 10:21 AM, AGPX <agpxnet at yahoo.it> wrote:
>>> You are posting to the wrong mailing list. VTKEdge has its own one:
>
> Oh, sorry for this. I'll post VTK related questions to that mailing list
> from now.
>
>>> I think if it worked with vtkOpenGLVolumeTextureMapper3D it was by
>>> chance. You cannot reuse the same mapper in two different render
>>> window. At the OpenGL level a
>>> render window is attached to one OpenGL context and each mapper caches
>>> some OpenGL resources specific to this OpenGL context.
>
> This is a severe limitation, because if you want to render 2 (or more) views
> of the volumetric data, you need to allocate it two (or more) times and this
> is quite prohibitive in most scenario.
>
> Anyway, thanks for the reply,
>
> - AGPX
>
> ________________________________
> Da: Francois Bertel <francois.bertel at kitware.com>
> A: vtkusers at vtk.org
> Cc: vtkedge at vtkedge.org
> Inviato: Giovedì 6 novembre 2008, 16:16:56
> Oggetto: Re: [VtkEdge] [vtkusers] VTKEdge volume mapper cannot work with
> multiple render window?
>
> You are posting to the wrong mailing list. VTKEdge has its own one:
> http://www.vtkedge.org/vtkedge/help/mailing.html
>
> I think if it worked with vtkOpenGLVolumeTextureMapper3D it was by
> chance. You cannot reuse the same mapper in two different render
> window. At the OpenGL level a
> render window is attached to one OpenGL context and each mapper caches
> some OpenGL resources specific to this OpenGL context.
>
>
> On Thu, Nov 6, 2008 at 5:30 AM, AGPX <agpxnet at yahoo.it> wrote:
>> Hi,
>>
>> I have tried the vtkKWEVolumeMapper to perform volume rendering and it
>> works
>> right with only one view (a single render window). But If I try to use the
>> same instance of vtkKWEVolumeMapper with two separate Renderer (with two
>> new
>> RenderWindow), the application crash. I haven't this problem with
>> vtkOpenGLVolumeTextureMapper3D. Someone can confirm that
>> vtkKWEVolumeMapper
>> have this limitation? Any workaround?
>>
>> Thanks in advance,
>>
>> - AGPX
>>
>> ________________________________
>> Scopri la community di Io fotografo e video
>> Il nuovo corso di Gazzetta dello sport per diventare veri fotografi!
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
>
>
> --
> François Bertel, PhD  | Kitware Inc. Suite 204
> 1 (518) 371 3971 x113 | 28 Corporate Drive
>                       | Clifton Park NY 12065, USA
> _______________________________________________
> VtkEdge mailing list
> VtkEdge at vtkedge.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/vtkedge
>
> ________________________________
> Scopri la community di Io fotografo e video
> Il nuovo corso di Gazzetta dello sport per diventare veri fotografi!



-- 
François Bertel, PhD  | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
                      | Clifton Park NY 12065, USA



More information about the vtkusers mailing list