POV-Ray : Newsgroups : povray.binaries.images : Counter texture... : Re: Counter texture... Server Time
8 Aug 2024 04:11:41 EDT (-0400)
  Re: Counter texture...  
From: jute
Date: 4 Oct 2005 05:00:01
Message: <web.434243c07e4e34f0fc1dc6790@news.povray.org>
"Hasan3" <PRO### [at] Yahoocom> wrote:
> How can I make counter texture like this.  ( T_Chrome_* texture is making
> different effect. This picture is made by 3ds max)

As it happens, I'm currently working on a brushed metal texture;
far from perfect, it's giving me at least a hint of the effect
I'm after.  Notice that without modifications this work (almost) only
on the XZ-plane of a surface.  Fiddle with the parameters!

#declare brushes_y = pigment {
   bozo
   color_map {
      [0 rgb 1]
      [.2 rgb 1]
      [.25 rgb 0]
      [.4 rgb 1]
      [.7 rgb 1]
      [.75 rgb 0]
      [1 rgb 1]
   }
   scale <.0025, .1, .01>*.01
}

#declare fn_brushes_y = function { pigment { brushes_y } }

#declare tex_brmetal_y = texture {
   pigment { rgb .5 }
   finish { ambient 0 diffuse 1 brilliance 2 metallic specular .6 roughness
..01 reflection { .04, .25 fresnel on} }
   normal {
      function { fn_brushes_y(x,y,z).gray } .0075
/* // this is the 'blurred reflections' technique Slime was talking about
      average
      normal_map {
        [function { fn_brushes_y(x,y,z).gray } .01 ]
        [function { fn_brushes_y(x+4354,y,z).gray } .01 ]
        [function { fn_brushes_y(x-2342,y,z).gray } .01 ]
        [function { fn_brushes_y(x+111,y,z).gray } .01 ]
      }
*/
   }
}


Post a reply to this message

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