[vtkusers] drawing png over vtk

Jean-Baptiste Estival jb.estival at shaktiware.fr
Wed Sep 6 10:14:42 EDT 2006


Hi all,

It seems that vtk rendering is very slow when :
- vtk window is overlapped by another one
- vtk window is not rectangular
I have searched into code source and try lots of things (window style, 
offsreen rendering, managing opengl) with no results.
Only offscreen rendering give me better frame rate (14Hz rotating a 
single object).
I have no idea and I really need help.
It seems that the problem comes from OpenGL and not VTK, does any body 
can confirm ?

thanks in advance

best regards

JB


Jean-Baptiste Estival a écrit :
> Hi all,
>
> I found a solution : playing with SetWindowRgn() for each window (png 
> window and vtk window) but when the VTK window region is not rectangular
> render process is very slow. Does somebody have an idea ?
>
>
> best regards,
>
>
> Tim Thornton a écrit :
>> Hi,
>> I'm not sure if that will work, but what we have done to do something
>> similar is add the PNG file into vtk, so vtk renders both pictures. Vtk
>> supports the standard vtk transparency, and if you want to you can also
>> change the transparency of the image so that the underlying vtk 
>> graphics can
>> be seen.
>> The only drawback we have found is that the PNG routines are quite 
>> slow, at
>> least relative to JPEG, in VTK, so if you want an aniomation of a 
>> sequence
>> of PNG images this doesn't work too well.
>> Tim
>>
>> -----Original Message-----
>> From: vtkusers-bounces+tt=smartcomsoftware.com at vtk.org
>> [mailto:vtkusers-bounces+tt=smartcomsoftware.com at vtk.org] On Behalf Of
>> Jean-Baptiste Estival
>> Sent: 04 September 2006 16:23
>> To: vtkusers at vtk.org
>> Subject: [vtkusers] drawing png over vtk
>>
>> Hello everybody,
>>
>> I have an app I developped under win32. This is a dialog drawing 
>> graphics pictures (CWnd A) (using windows GDI) on the top, and vtk 
>> below (CWnd B).
>> Now, A will have common region with B. Parts of this region will be 
>> transparent to show B.
>> Is it possible or not ?
>>
>> Thanks
>>
>> Best regards.
>> _______________________________________________
>> 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
>>
>>
>>
>>   
> _______________________________________________
> 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



More information about the vtkusers mailing list