[vtkusers] How to draw the scene in the off-screen?

Michael Rice marice at knology.net
Thu Aug 9 12:00:21 EDT 2007


You can turn off the swap of the back buffer, grab the data, and then  
turn on the swap again. Something like this:

renWin->SwapBuffersOff();
renWin->Render();
zbuffer = renWin->GetZBufferData(...);
renWin->SwapBuffersOn();

On Aug 9, 2007, at 8:44 AM, liu jianfei wrote:

> Dear all
>
>     I'm using 'vtkrenderwindow' to hold and display all renders,  
> and grabbing z-buffer and frame buffer from it. But I want to put  
> all these processing in off-screen rather than display them  
> directly. How can I implement it? Thanks.
>
> -- 
> Sincerely
> Jianfei Liu
> _______________________________________________
> 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