|
![](/i/fill.gif) |
In article <39b1069b$1@news.povray.org>, "John Raptis"
<Joh### [at] yahoo com> wrote:
> Can I specify UV texture coordinates on a triangle?
>
> I come from an OpenGL background, where a triangle's corners are
> specified x,y,z, u,v... where u and v are the coordinates inside the
> texture to map to each corner.
>
> Is there an equivalent way to do this in povray? Speed is not an
> issue... I just need the functionality.
>
> So again: When I put a triangle down, is there any way to say what
> texture coordinate goes at each corner? I'd even be content to make a
> 'mesh' of one triangle, if it would work.
Standard POV-Ray does not have UV-mapping. However, there is a patch for
UV mapping triangles, patches, meshes, and some other objects, and it is
included in MegaPOV:
http://nathan.kopp.com/patched.htm
I think there is also a macro somewhere for "UV-mapping" individual
triangles in official POV-Ray, but I don't know any more about it except
that it was more memory consuming than the patch. POV-Ray 3.5, which
should be released sometime this year, will probably have UV-mapping.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |