POV-Ray : Newsgroups : povray.binaries.images : Layered Textures : Re: Layered Textures Server Time
20 Nov 2024 06:33:12 EST (-0500)
  Re: Layered Textures  
From: Ib Rasmussen
Date: 28 Sep 2001 13:54:46
Message: <3BB4B9F5.8EF0F2DF@ibras.dk>
banty wrote:
> 
>     I've been trying to create an image with a cobblestone type street
> but, while i can get the bump map to work, I cant get pov to layer over
> it with a material map so that there's variation in the coloring of the
> rocks. I keep getting a message "Cannot layer a patterned texture over
> another."
>     Is there a way around this problem or do I have to ditch depth in
> favor of color?

I have made cobblestones with the following code. The attached image
shows how it looks. It is not great, but perhaps you can improve on the
technique. The bump_map image is a 256 colour grayscale image, that give
the depth info, and the material_map image is the same image reduced to
2 colours.

#declare T_Brosten1=texture {
   T_Grnt15 scale 0.003
   normal {
      bump_map {
         gif "brosten256.gif"
         bump_size 5.0
      }
   }
}

#declare T_Brosten2=texture {
   T_Stone6 scale 0.0003 
   normal {
      bump_map {
         gif "brosten256.gif"
         bump_size 5.0
      }
   }
}

#declare T_Brosten=texture {
   material_map {
      gif "brosten2.gif"
      texture { T_Brosten1 }
      texture { T_Brosten2 }
   }
   scale <435, 300, 1>
}

/Ib


Post a reply to this message


Attachments:
Download 'brosten.jpg' (52 KB)

Preview of image 'brosten.jpg'
brosten.jpg


 

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