POV-Ray : Newsgroups : povray.binaries.images : Psychotron 2 [WIP] : Re: Psychotron 2 [WIP] Server Time
9 Aug 2024 15:21:22 EDT (-0400)
  Re: Psychotron 2 [WIP]  
From: Renderdog
Date: 23 Jan 2005 09:30:00
Message: <web.41f3b4c2d962eeb25a3d31170@news.povray.org>
Great work!

Here's part of a texture I used for a rusty pipe you might
try modifying. You could also add dirt, etc.


#local IronPigment =
  pigment {
    wrinkles
    color_map {
      [0.0 rgb <0.05, 0.09, 0.11>]
      [0.7 rgb <0.10, 0.14, 0.16>]
      [1.0 rgb <0.15, 0.19, 0.21>]
            }
 scale 5
        }

#local IronTexture =
texture {
    pigment { IronPigment }
    normal { granite 0.1  scale 2.0 }
    finish { ambient 25  roughness  0.015  specular .5  diffuse 0.8 }
   }

#local RustPigment =
         pigment
                 {
                 granite
                 color_map {
                         [ 0.0 rgb <0.81, 0.30, 0.11>*0.8 ]  //  0.8
                         [ 0.4 rgb <0.21, 0.10, 0.03>*1.2 ]  //  1.2
                         [ 0.6 rgb <0.21, 0.10, 0.03>*1.2 ]  //  1.2
                         [ 1.0 rgb <0.57, 0.05, 0.01>*0.9 ]  //  0.9
                            }
                 scale 0.5
                 turbulence 1
                 }

#local RustTexture =
 texture {
         pigment { RustPigment }
         normal { wrinkles  scale 2 }
  finish { ambient 10 }
           }

#local RustyIronTexture =
 texture {
  bozo
  texture_map {
                 [ 0.0 RustTexture ]
                 [ 0.1 RustTexture ]   //  More rust: > 0.2
                 [ 0.4 IronTexture ]   //  More rust: > 0.5
                 [ 1.0 IronTexture ]
      }
  warp { turbulence 1  omega .6  lambda 4 }
  scale <1,2,1>
          }


Post a reply to this message

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