POV-Ray : Newsgroups : povray.unofficial.patches : HELP! layered patterns Server Time
1 Nov 2024 07:27:14 EDT (-0400)
  HELP! layered patterns (Message 1 to 5 of 5)  
From: Ryan Constantine
Subject: HELP! layered patterns
Date: 16 Mar 2001 19:47:24
Message: <3AB2B49F.8FB1B19E@yahoo.com>
<plead>i'm trying to do a fairly complicated texture, and when i tried
to make a layered texture with a base color on the bottom, a proximity
pattern over that (which has semi transparent parts), and then a planar
texture on top (which is mostly transparent except for stripes) i got an
error stating i'm not allowed to layer patterned textures.  my question
is why not?  is there another way i can accomplish the same thing?  or
will i have to make a duplicate of my original object, cut it to the
same size as the stripe, expand the overall dimensions by a minute
amount and then texture that with the stripe color?  it seems quite
inelegant if i have to do this.  perhaps i should look into shaders for
the povman patch?  or is there a way to combine a proximity pattern on
the same layer as a planar (or gradient) pattern?</plead>

TIA


Post a reply to this message

From: Christoph Hormann
Subject: Re: HELP! layered patterns
Date: 17 Mar 2001 03:07:12
Message: <3AB31B30.4235EB9A@gmx.de>
Ryan Constantine wrote:
> 
> <plead>i'm trying to do a fairly complicated texture, and when i tried
> to make a layered texture with a base color on the bottom, a proximity
> pattern over that (which has semi transparent parts), and then a planar
> texture on top (which is mostly transparent except for stripes) i got an
> error stating i'm not allowed to layer patterned textures.  my question
> is why not?  is there another way i can accomplish the same thing?  or
> will i have to make a duplicate of my original object, cut it to the
> same size as the stripe, expand the overall dimensions by a minute
> amount and then texture that with the stripe color?  it seems quite
> inelegant if i have to do this.  perhaps i should look into shaders for
> the povman patch?  or is there a way to combine a proximity pattern on
> the same layer as a planar (or gradient) pattern?</plead>
> 
> TIA

Often similar effects as with a layered texture can be achieved with
pigment maps.  It's not that easy to construct, but it's quite flexible.

To replace a two layer texture you can either use the first or the second
layer as a base pigment and where you use transparency in the layered
texture just place the other pigment in the pigment_map.  Of yourse it's
not really identical, because the 'filter' effect can not be achieved.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Ryan Constantine
Subject: Re: HELP! layered patterns
Date: 17 Mar 2001 18:18:50
Message: <3AB3F160.5EC43AFD@yahoo.com>
thanks for the tip.  i'm a little short on time lately, so would you
mind posting an example of what you mean?  i have finals all next week
that i'm studying for, and when i take breaks i pov.  thanks again.  i'd
appreciate it.

Christoph Hormann wrote:
> 
> Ryan Constantine wrote:
> >
> > <plead>i'm trying to do a fairly complicated texture, and when i tried
> > to make a layered texture with a base color on the bottom, a proximity
> > pattern over that (which has semi transparent parts), and then a planar
> > texture on top (which is mostly transparent except for stripes) i got an
> > error stating i'm not allowed to layer patterned textures.  my question
> > is why not?  is there another way i can accomplish the same thing?  or
> > will i have to make a duplicate of my original object, cut it to the
> > same size as the stripe, expand the overall dimensions by a minute
> > amount and then texture that with the stripe color?  it seems quite
> > inelegant if i have to do this.  perhaps i should look into shaders for
> > the povman patch?  or is there a way to combine a proximity pattern on
> > the same layer as a planar (or gradient) pattern?</plead>
> >
> > TIA
> 
> Often similar effects as with a layered texture can be achieved with
> pigment maps.  It's not that easy to construct, but it's quite flexible.
> 
> To replace a two layer texture you can either use the first or the second
> layer as a base pigment and where you use transparency in the layered
> texture just place the other pigment in the pigment_map.  Of yourse it's
> not really identical, because the 'filter' effect can not be achieved.
> 
> Christoph
> 
> --
> Christoph Hormann <chr### [at] gmxde>
> IsoWood include, radiosity tutorial, TransSkin and other
> things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Christoph Hormann
Subject: Re: HELP! layered patterns
Date: 18 Mar 2001 04:42:04
Message: <3AB482EE.1F67A724@gmx.de>
Ryan Constantine wrote:
> 
> thanks for the tip.  i'm a little short on time lately, so would you
> mind posting an example of what you mean?  i have finals all next week
> that i'm studying for, and when i take breaks i pov.  thanks again.  i'd
> appreciate it.
> 

A simple example:

use 

    texture { 
      pigment {
        gradient y
        pigment_map {
          [ 0.5 color rgb <0.0, 0.5, 0.0> ]
          [ 0.6 gradient x color_map { [0.3 rgb x][0.7 rgb z] } ]
        }  
      }
    } 

instead of
      
    texture {
      pigment {
        gradient x
        color_map {
          [0.3 rgb x]
          [0.7 rgb z]
        }
      }
    }       
    texture {
      pigment {
        gradient y
        color_map {
          [0.5 color rgb <0.0, 0.5, 0.0> ]
          [0.6 color rgbt 1 ]
        }
      }
    } 


Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Ryan Constantine
Subject: Re: HELP! layered patterns
Date: 18 Mar 2001 12:20:00
Message: <3AB4EECD.DA25783A@yahoo.com>
thanks man, i'll give it a try.

Christoph Hormann wrote:
> 
> Ryan Constantine wrote:
> >
> > thanks for the tip.  i'm a little short on time lately, so would you
> > mind posting an example of what you mean?  i have finals all next week
> > that i'm studying for, and when i take breaks i pov.  thanks again.  i'd
> > appreciate it.
> >
> 
> A simple example:
> 
> use
> 
>     texture {
>       pigment {
>         gradient y
>         pigment_map {
>           [ 0.5 color rgb <0.0, 0.5, 0.0> ]
>           [ 0.6 gradient x color_map { [0.3 rgb x][0.7 rgb z] } ]
>         }
>       }
>     }
> 
> instead of
> 
>     texture {
>       pigment {
>         gradient x
>         color_map {
>           [0.3 rgb x]
>           [0.7 rgb z]
>         }
>       }
>     }
>     texture {
>       pigment {
>         gradient y
>         color_map {
>           [0.5 color rgb <0.0, 0.5, 0.0> ]
>           [0.6 color rgbt 1 ]
>         }
>       }
>     }
> 
> Christoph
> 
> --
> Christoph Hormann <chr### [at] gmxde>
> IsoWood include, radiosity tutorial, TransSkin and other
> things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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