[vtkusers] Texture Mapping with 2D Texture Coordinates

youpie meriadegp at yahoo.fr
Fri Nov 18 03:50:28 EST 2011


You mean you work on the texture loaded ?

I make a little mistake in my last answer.

Not good :
creat a vtkFloatArray with size of vtkPoints size and associate the good
coordinate texture for each point.

good :
creat a vtkFloatArray with size of 2 * vtkPoints size and associate the good
coordinate texture for each point. So don4y forget :
 floatArray->SetNumberOfComponents(2);
        floatArray->SetNumberOfTuples( vtkPoints size);
        floatArray->SetTuple2(i, tx, ty);



--
View this message in context: http://vtk.1045678.n5.nabble.com/Texture-Mapping-with-2D-Texture-Coordinates-tp4997298p5003697.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list