POV-Ray : Newsgroups : povray.beta-test : triangle texture interpolation : Re: triangle texture interpolation Server Time
4 Nov 2024 23:17:36 EST (-0500)
  Re: triangle texture interpolation  
From: Jérôme Grimbert
Date: 2 Dec 2001 14:49:24
Message: <3C0A8288.DDA0905B@free.fr>
Initial problem solved (no more comma in the doc, OK).

But it seems that one of the texture (the first texture) disappears, or at least
is not put on the first point. Instead, the second texture is on the first point
and the third texture is used on the second and third points.


Povray 3.5.beta.8.icl.win32, Win98, Pentium MMX, 256 Mo

Demo scene (T1 is red, T2 green and T3 blue) 
=======================================================


camera {
  location  <0.0, 0.5, -4.0>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <0.0, 0.0,  0.0>
}

light_source {
  <-30, 30, -30>          
  color rgb <1, 1, 1>  // light's color
}
                                      
#declare T1=texture { pigment {color rgb <1,0,0>} } 
#declare T2=texture { pigment {color rgb <0,1,0>} }
#declare T3=texture { pigment {color rgb <0,0,1>} }
mesh {                                                   
triangle { <-1,0,0>,<0,1,0>,<0,0,0> texture_list { T1 T2 T3 }  }   
triangle { <0,0,0>,<0,1,0>,<1,1,0> texture_list { T3  T1  T2 }  }   
triangle { <0,0,0>,<1,1,0>,<1,0,0> texture_list { T2  T3  T1 }  }   
}


Post a reply to this message

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