POV-Ray : Newsgroups : povray.advanced-users : UV Coordinates? : Re: UV Coordinates? Server Time
30 Jul 2024 00:18:29 EDT (-0400)
  Re: UV Coordinates?  
From: Chris Huff
Date: 2 Sep 2000 13:42:15
Message: <chrishuff-04CA34.12435302092000@news.povray.org>
In article <39b1069b$1@news.povray.org>, "John Raptis" 
<Joh### [at] yahoocom> 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] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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