[vtkusers] How to capture images from ONLY the RenderWindow?

Jared Cohen Jared.Cohen at noaa.gov
Wed Oct 27 14:14:07 EDT 2004


  Ok, the first message didn't seem to get through to the mailing list, 
so I'll try this again :-)
------------------------------------------------------------------------------------------------------

Hi Charles, thanx for the quick reply! :-)

Yes, I tried offscreen rendering, but it didn't seem to make any 
difference at all. Do I need to enable this "MESA" thing before 
offscreen rendering will work?

Charles Boivin wrote:

>Hey Jared,
>
>Have you tried using offscreen rendering? Something like this:
>
>this->renWin->SetOffScreenRendering(1);
>
>... take a snapshot of the render window here
>
>this->renWin->SetOffScreenRendering(0);
>
>I use this to output a series of snapshots (to later create an
>animation) and it seems to work fine for me, although I do not have
>multiple windows that overlap each other. 
>
>Hope this helps,
>
>Charles
>
>  
>
>>>>"Jared Cohen" <Jared.Cohen at noaa.gov> 10/27/04 11:35am >>>
>>>>        
>>>>
>  Hi all. I'm part of a team that's building a large, multi-window GUI;
>
>one of the windows contains the VTK RenderWindow. We implemented a 
>function to save the scene as a PNG, but there's a problem: if any of 
>the other windows are in the way of the RenderWindow, they get 
>incorporated into the resulting PNG snapshot! What I want to do is take
>
>a snapshot of ONLY the contents of the RenderWindow, regardless of 
>whether or not there are other windows in front of the RenderWindow. Is
>
>there a way to do this?
>
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20041027/35b985f6/attachment.htm>


More information about the vtkusers mailing list