POV-Ray : Newsgroups : povray.binaries.scene-files : Rusty paint Server Time
2 Sep 2024 12:13:53 EDT (-0400)
  Rusty paint (Message 1 to 3 of 3)  
From: Kari Kivisalo
Subject: Rusty paint
Date: 29 May 2001 17:47:19
Message: <3B141966.1B97D3E1@x.x>
#declare rf=0.5;

#declare Paint=
  texture{
    pigment{rgb<0.1,0.8,1>}
    finish{diffuse 0.6 ambient 0.0 brilliance 1.2 specular 0.5 roughness
0.01}
    normal{
      bozo 
      normal_map{
        [rf-0.1 bumps 0.05 scale 0.025]
        [rf-0.05 crackle 1.5 scale 0.035]
        [rf-0.01 crackle 3 scale 0.06]
      }
     warp{turbulence 0.2 octaves 6 omega 0.8}
     warp{reset_children}
    }
  }
    
#declare Rust1=
  texture{
    pigment{rgb<1,0.3,0.1>}
    finish{diffuse 0.5 ambient 0.0 brilliance 1 crand 0.01}
    normal{crackle 1.4 scale 0.0225}
  }
  texture{
    pigment{bozo turbulence 0.6 color_map{[0 rgbf<1,1,0.2,1>][1
rgbf<0.2,1,0.2,0.4>]}}
    finish{ambient 0 diffuse 0}
    scale 0.04
  }
    

    
#declare Rust2=
  texture{
    pigment{rgb<1,0.2,0.1>}
    finish{diffuse 0.2 ambient 0.0 brilliance 1 crand 0.05} 
    normal{
      average
      normal_map{
        [1 bozo 10  scale 0.0225]
        [1 granite 1 scale 0.00225]
      }
    }
  }
  texture{
    pigment{bozo turbulence 0.6 color_map{[0 rgbt<1,1,0.2,1>][1
rgbt<0.2,1,0.2,0>]}}
    finish{ambient 0 diffuse 0}
    scale 0.02
  }
    
    
#declare RustyPaint=
  texture{
    bozo
    texture_map{
      [rf Paint]
      [rf Rust2]
      [rf+0.0075 Rust2]
      [rf+0.015 Rust1]
      [rf+0.1 Rust2]
    }
    warp{turbulence 0.2 octaves 6 omega 0.8}
    warp{reset_children}
    scale 1.3
  }


Post a reply to this message

From: Bonsai
Subject: Re: Rusty paint
Date: 30 May 2001 03:47:38
Message: <3b14a59a$1@news.povray.org>
"Kari Kivisalo" <x@x.x> schrieb im Newsbeitrag news:3B141966.1B97D3E1@x.x...

> warp{reset_children}

What does 'reset_children' mean? Is it a MegaPov feature that I don't know?


Post a reply to this message

From: Kari Kivisalo
Subject: Re: Rusty paint
Date: 30 May 2001 04:23:37
Message: <3B14AE87.ADC7398A@x.x>
Bonsai wrote:

> What does 'reset_children' mean? Is it a MegaPov feature that I don't know?

Oh yes, the texture wouldn't be possible without this MegaPOV feature :)
It prevents the turbulence for the paint/rust pattern affecting the
textures
themselves.

_____________
Kari Kivisalo


Post a reply to this message

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