[vtkusers] Texture Mapping 2D onto 3D

Tim Hutton T.Hutton at eastman.ucl.ac.uk
Fri Mar 14 12:05:17 EST 2003


Hi Heike,

There are two ways to do what you want:

1. Set the texture coordinates of every vertex yourself. (Setting tcoords 
for just a few points won't work.)

2. Use one of the filters that does this for you, eg: vtkTextureMapToPlane. 
There is a tcl example of how to use these filters in 
Examples\VisualizationAlgorithms\Tcl\TransformTextureCoordinates.tcl


Hope this helps!

Tim.

At 16:26 14/03/2003 +0100, you wrote:
>Hello there!
>
>I need to map an image (2D) onto a 3D-surface, say, a
>picture of a face onto a model of a head. Is there a
>way to do it, and if yes, how is it done? Can I use
>the Texture Coordinates to fix special pixels of the
>image (e.g. the eyes or the nose tip) to the
>corresponding place of my surface?
>I hope someone can help me out here, thanks in
>advance,
>Heike
>
>__________________________________________________________________
>
>Gesendet von Yahoo! Mail - http://mail.yahoo.de
>Bis zu 100 MB Speicher bei http://premiummail.yahoo.de
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers





More information about the vtkusers mailing list