POV-Ray : Newsgroups : povray.binaries.images : Simple Patina Macro (7kb jpg) : Re: Simple Patina Macro (7kb jpg) Server Time
12 Aug 2024 01:29:10 EDT (-0400)
  Re: Simple Patina Macro (7kb jpg)  
From: Mike Andrews
Date: 28 Nov 2003 10:30:01
Message: <web.3fc76919d96c42012e746c9a0@news.povray.org>
Hi Rune,

I used a similar technique, based on a macro by ABX, in my 'Death of a
Cliche' image:

code : http://news.povray.org/povray.binaries.scene-files/23889/
image: http://news.povray.org/povray.binaries.images/23788/

Mike.

Rune wrote:
>In the thread "Subsurface Scattering: macro now available (21kb jpeg)"
>Gilles Tran wrote this:
>
>> Also: could a trick like this be used to create patina effects?
>
>I don't know that much about how patina should look, but I've got the
>impression that it's not dependent on light source location, like
>subsurface scattering is? If it's more a matter of curvature of the
>surface and nearby surfaces, then this macro might be sufficient:
>
>
>#macro patina_pattern(Obj,Blur,Samples,Stream)
>   // by Rune S. Johansen 2003
>   #local FN =
>   function {
>      pigment {
>         average
>         pigment_map {
>            #local C = 0;
>            #while (C<Samples)
>               [1
>                  object{Obj rgb 0, rgb 1}
>                  translate <
>                     rand(Stream)-rand(Stream),
>                     rand(Stream)-rand(Stream),
>                     rand(Stream)-rand(Stream)
>                  >*Blur
>               ]
>               #local C = C+1;
>            #end
>         }
>      }
>   }
>   function {FN(x,y,z).red}
>#end

[snip]

>Let me know if this is any useful...
>
>Rune
>--
>3D images and anims, include files, tutorials and more:
>rune|vision:  http://runevision.com **updated Sep 28**
>POV-Ray Ring: http://webring.povray.co.uk
>


Post a reply to this message

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