POV-Ray : Newsgroups : povray.general : Scaling texture_map : Scaling texture_map Server Time
10 Aug 2024 15:19:53 EDT (-0400)
  Scaling texture_map  
From: ingo
Date: 4 Dec 1999 13:07:54
Message: <8E92C7AC2seed7@204.213.191.228>
In the scene below are two spheres with white dots. I expected both the 
textures to be the same, except for the red dot. But it seems that scaling 
the not only affects the pattern_type but also the texture map. I had a quick 
look in the docs but found nothing that explains.
Is this the to be expected behaviour, or...
How can I get the result I want? Layerd textures won't work because of the 
different finishes.

Ingo

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


#version 3.1;
global_settings {assumed_gamma 1.0}
light_source {<500,500,-500> rgb 1}
camera {location <0,1.6,-2> look_at <0,0,0>}

#declare TestT= texture {
   pigment {
      leopard
      scale 0.05
      colour_map {
         [0.3, rgb 0.3]
         [0.3, rgb 1]
      }
   }
}

#declare TestT2= texture {
   cylindrical
   scale <2,1,1>
   texture_map {
      [0.7, TestT]
      [0.8, pigment {red 1} finish {phong 1}]
   }
}

sphere {
   0,0.5 
   texture{TestT}
   translate <-0.5,0,0>
}
sphere {
   0,0.5 
   texture{TestT2}
   translate <0.5,0,0>
}


Post a reply to this message

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