[vtkusers] pb with texture coordinates : it does not match mesh.

Sebastien_MARAUX maraux at ondim.fr
Wed Apr 24 08:07:18 EDT 2002


Hello again

I have a (surface/DEM) mesh of 390*280 points (x,y) triangulated and decimated. I want to map a 1024*1024 
BMP texture on it.

When I map it, the texture is correctly mapped in x, but 
some clamping appears in y (ie the last values are repeated) 
which leads to a ugly "color barcode" at the top and bottom.

Where do I do Something wrong ?

To generate texture coords I used vtktexturemaptoplane.
parameters:
SRange : (0.0,1.0)
TRange : (0.0,1.0)
Normal : (0.0,1.0,0.0)

Which I assumed would fill all my mesh.

any reply would be appreciated.

Sebastien MARAUX
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020424/9ca3fbb1/attachment.htm>


More information about the vtkusers mailing list