POV-Ray : Newsgroups : povray.general : Mesh with an image pigment : Re: Mesh with an image pigment Server Time
29 Jul 2024 22:29:20 EDT (-0400)
  Re: Mesh with an image pigment  
From: Sam Takoy
Date: 28 Jun 2010 22:30:01
Message: <web.4c2959b3ff9663a1858afefa0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 28.06.2010 21:46, schrieb Sam Takoy:
>
> > I have a complicated deformed mesh. Is there documentation on how to texture it
> > with an image? (It is a "topological" rectangle that looks like a hanging table
> > cloth.)
>
> "UV mapping" is what you'll want to have a look at. You'll have to
> assign 2D coordinates (termed U and V) to the vertices of each triangle
> in the mesh, thereby specifying the triangle's position in 2D "image space".

Thank you.

It seems that if I only have a single triangle in a mesh, it will sample three
points from the image and interpolate from those three values. Rather than keep
looking at the pixels in the image and place those pixels in the right place in
the triangle. Am I correct? (I hope not.)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.