[vtkusers] Texture Mapping Image Quality

Patrick Lowry plowry at scotia-group.com
Mon Aug 30 09:27:23 EDT 2004


To All:

The texture mapping capabilities of VTK are amazing but I noticed image 
quality loss from the original TIFF.  Texture mapping done by a commercial 
program I have does not suffer the same quality loss.  The essence of the 
image part of the TCL script are shown below.  Any ideas on preventing 
image quality loss?

Thanks in advance.

Patrick Lowry

.
.
.
vtkTIFFReader readTIFF
   readTIFF SetFileName "data/test1comp.TIF"
   readTIFF Update
vtkTexture atext
   atext SetInput [readTIFF GetOutput]
   atext InterpolateOn
.
.
.
vtkTextureMapToPlane test
   test SetInput [normals GetOutput]
   test SetOrigin $xmin $ymin 0.0
   test SetPoint1 $xmax $ymin 0.0
   test SetPoint2 $xmin $ymax 0.0




More information about the vtkusers mailing list