POV-Ray : Newsgroups : povray.text.scene-files : A texture for "Stone with patina" or "Corroded iron" Server Time
22 Dec 2024 04:26:49 EST (-0500)
  A texture for "Stone with patina" or "Corroded iron" (Message 1 to 3 of 3)  
From: Meothuru
Subject: A texture for "Stone with patina" or "Corroded iron"
Date: 13 Nov 2007 01:30:01
Message: <web.4739435b5f90c0125a73e3b40@news.povray.org>
// texture: "Stone with patina" or something like "Corroded iron"
// render : [800x600, AA 0.1]

#include "textures.inc"

global_settings {
 assumed_gamma 1.5
}


background {rgb 0.75}

torus { 3, 1

 texture { Silver_Metal }

 pigment { cells
  turbulence 1 octaves 5 omega 1 lambda 5
 }

 normal { cells -5
  turbulence 1 octaves 5 omega 1 lambda 5
  accuracy 0.001
 }

 rotate <90,-90,0>
 translate <-2,0,2>
 no_reflection
}


light_source {<5,5,-5>, 1 area_light <6,0,0>, <0,6,0>,9, 9 adaptive 3 jitter }

light_source {<-5,5,-5>, 0.5 shadowless}

camera {
 location <5,0,-5>
 look_at 0
}
//---EOF----


Post a reply to this message

From: jgentry
Subject: Re: A texture for "Stone with patina" or "Corroded iron"
Date: 18 Nov 2007 09:10:22
Message: <474047ce$1@news.povray.org>
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


Post a reply to this message

From: Grassblade
Subject: Re: A texture for "Stone with patina" or "Corroded iron"
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.