POV-Ray : Newsgroups : povray.text.scene-files : A texture for "Stone with patina" or "Corroded iron" : Re: A texture for "Stone with patina" or "Corroded iron" Server Time
18 May 2024 19:13:17 EDT (-0400)
  Re: A texture for "Stone with patina" or "Corroded iron"  
From: Grassblade
Date: 9 Dec 2007 17:50:00
Message: <web.475c70e75613f43e22e9f4040@news.povray.org>
jgentry <jge### [at] gmailcom> wrote:
> On Tue, 13 Nov 2007 01:25:31 -0500, Meothuru wrote:
>
> > // texture: "Stone with patina" or something like "Corroded iron" //
> > render : [800x600, AA 0.1]
> >
> > #include "textures.inc"
> >
>
> --snip--
>
> I like the texture.  Is there a way to vary the colors in the patina/rust
> so that it might show some color variation?
>
> -->jeff

Yes there is, try this:
texture{
 pigment { cells
  turbulence 1 octaves 5 omega 1 lambda 5
  color_map{[0.0 color rgb <0.5,0.3,0.1>][0.5 color rgb 0.45][1.0 color rgb
<0.5,0.3,0.1>]}
 }
 normal { cells -5
  turbulence 1 octaves 5 omega 1 lambda 5
  accuracy 0.001
  }
}
You can then vary colours to your liking. If you want the rust not to have the
reflective finish, declare the above as My_rust and do the following:
#declare My_rust2=
texture{ cells
  turbulence 1 octaves 5 omega 1 lambda 5
 texture_map {
  [0.0 My_rust][0.5 T_Silver_3C][1.0 My_rust]}
};

It looks really convincing, IMO.


Post a reply to this message

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