POV-Ray : Newsgroups : povray.beta-test : UV Mapping Question : Re: UV Mapping Question Server Time
4 Nov 2024 23:21:11 EST (-0500)
  Re: UV Mapping Question  
From: ingo
Date: 16 Sep 2001 17:28:04
Message: <Xns911EEEB9B2D19seed7@povray.org>
in news:3ba4f6e6@news.povray.org Arturo Gonzalez wrote:

> Applying the same texture to a sphere, for instance, works okay.

for the mesh yoou have to add uv_vectors to the triangles, see 6.7.7.2.
Note to self: update syntax for mesh.

From your example, but with uv_vectors:
   mesh {
      triangle { 
         <0,0,0>,<3,1,1>,<6,0,0> 
         uv_vectors <0,0>,<1,0>,<1,1>
      }
      triangle { 
         <0,0,0>,<3,-2,0>,<6,0,0> 
         uv_vectors <0,0>,<0,1>,<1,1>
      }      
      scale 3
      translate 15*x
      uv_mapping
      pigment { Checkerboard }
   }


Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

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