POV-Ray : Newsgroups : povray.binaries.images : Layered Textures Server Time
17 Aug 2024 16:15:21 EDT (-0400)
  Layered Textures (Message 1 to 4 of 4)  
From: banty
Subject: Layered Textures
Date: 27 Sep 2001 21:10:35
Message: <3BB3D02A.EAD5E0C@rapidnet.com>
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?


A.D.B


Post a reply to this message

From: Duncan Adamson
Subject: Re: Layered Textures
Date: 28 Sep 2001 07:00:23
Message: <3bb45847$1@news.povray.org>
Any chance of seeing the code?

Duncan

"banty" <ban### [at] rapidnetcom> wrote in message
news:3BB### [at] rapidnetcom...
>     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?
>
>
> A.D.B
>
>


Post a reply to this message

From: Ib Rasmussen
Subject: Re: Layered Textures
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


 

From: banty
Subject: Re: Layered Textures
Date: 28 Sep 2001 18:43:05
Message: <3BB4FF18.CA089D81@rapidnet.com>
I had the same difficulty (With the hard edges on the stones) so I took the
mapping image back into photoshop and feathered it with a gaussian blur 0.5
radius.

                                        A.D.B

Ib Rasmussen wrote:

> 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
>
>   ------------------------------------------------------------------------
>  [Image]


Post a reply to this message

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