[vtkusers] How to get silhouette/mask of rendered polydata?

Kevin H. Hobbs kevin.hobbs.1 at ohiou.edu
Tue May 9 08:44:12 EDT 2006


On Mon, 2006-05-08 at 23:12 -0500, Michael Rice wrote:
> Thanks for the explanation, I think I now have a basic understanding  
> of what it's doing. Unfortunately, I don't think it's going to work  
> for me.
> 
> In the end, I need to be able to render the silhouette of the  
> polydata in realtime as the user manipulates the camera location. For  
> example, the web page below shows two camera shots of a polydata. As  
> the user rotates the polydata in one window, I need to render the  
> stencil image in another window. Optimally, I'll be able to associate  
> each pixel in the rendered stencil image back to a cell in the polydata.
> 
> http://www.knology.net/~mars/stencil.html

How about you capture the rendered image, with vtkWindowToImageFilter,
contour it, and then re-render, or something like that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060509/633cf9a5/attachment.pgp>


More information about the vtkusers mailing list