POV-Ray : Newsgroups : povray.binaries.images : This is not a guitar : Re: This is not a guitar Server Time
31 Jul 2024 14:25:09 EDT (-0400)
  Re: This is not a guitar  
From: M a r c
Date: 17 Jan 2010 17:10:48
Message: <4b538ae8$1@news.povray.org>

4b53595e$1@news.povray.org...
>>
>>
>
> Well, please enlighten us all--what exactly do you mean?  Have some 
> examples?

Well actually nothing new. just a pigment_pattern texture with layered 
texture in the texture_map
I figured it was impossible but yes we can !
just texture_patterns   are forbidden in layer textures

see example below

Marc


#declare T_spruce =
   texture // wood veins
   {
      pigment
      {
         marble
         color_map
         {
            [ 0.0     rgb <1, 0.5, 0.1> ]
            [ 1.0     rgb <0.3, 0.1, 0.02> ]
         }

        scale 0.01
      }
   }

   texture // layered bozo fouling the wood
   {
      pigment
      {
         bozo
         color_map
         {
            [ 0.0     rgbft <0.0, 0.0, 0.0, 0.0, 0.0> ]
            [ 1.0     rgbft <0.0, 0.0, 0.0, 0.0, 1.0> ]
         }

      scale <0.1,0.1,1>}

   }

#declare T_Etoiles =
      texture
      {
         pigment
         {
            color rgb <0.3229, 0.3229, 0.3229>
         }
         finish
         {
            ambient 0.0
            specular 0.007167
            irid
            {
               0.95
               thickness 1.0
               turbulence <1.0, 1.0, 1.0>
            }
         }
      }

//The pigment_pattern texture
 #declare T_pattern_rosace =

      texture{
               pigment_pattern
               {
                     cylindrical
                     scale  0.48
               }
               texture_map
               {

                  [2.0/60   T_spruce]
                  [2.0/60   T_Etoiles]
                  [3.5/60   T_Etoiles]
                  [3.5/60   T_spruce]
               }

         }

plane {
  y, 0
  texture {T_pattern_rosace }
}



camera {
  location  <0.0, 2, 0>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <0.0, 0.0,  0.0>
}



light_source {
  0
  color rgb 1
  translate <-30, 30, -30>
}

// ----------------------------------------


Post a reply to this message

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