[vtkusers] Texture Mapping--Helppppppppppp

Aashish Chaudhary aashish.chaudhary at kitware.com
Thu Jan 6 14:16:56 EST 2011


Do you have number of points equal = width * height of the image? Also
make sure that your texture coordinates are in the range or 0 -1
which I think you think are doing.

But looking quickly again .. you want to generate texture coordinates
from points and not from the image data.. something like

s = pt.x - minX / maxX - minX
t = pt.y - miny / maxY- minY

On Thu, Jan 6, 2011 at 12:51 PM, Rachel <aracha2010 at gmail.com> wrote:
>
> any one know another way to compute texture coordinates?
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Texture-Mapping-tp3327802p3330836.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com



More information about the vtkusers mailing list