POV-Ray : Newsgroups : povray.binaries.images : Rust? 28kbu : Re: Rust? 28kbu Server Time
18 Aug 2024 10:25:55 EDT (-0400)
  Re: Rust? 28kbu  
From: Nekar Xenos
Date: 2 May 2001 02:49:15
Message: <3aefadeb@news.povray.org>
Maybe you could try this as well.
I'm not sure how to link to other messages so I copied this from Ben Pashkes
post


----- Original Message -----
From: "Ben Paschke" <ben### [at] rspcomau>
Newsgroups: povray.binaries.images
Sent: 09 March 2001 01:34 AM
Subject: Re: procedural patina (approx 19kbbu)
..pseudo_code
#declare obj =
object{
file://nice geometry ..
}

#declare dirty_texture{
file://texture for the recessed regions
}

#declare shiny_texture{
file://texture for raised regions
}

file://..and then..

object{
obj file://?-----include the object
   texture{
      proximity{//these are roughly the settings i used
               obj file://?---------reference the same object!!
               .8
               samples 35
               file://sample_weighting ?0,0,0>
               sample_bailout 10
               max_density 1
               type 0
               method 1
               sides 2    file://needs to be 2 sided testing
             }
      texture_map{
      [0 dirty_texture]     file://?------innermost _map location
      [1 shiny_texture]   file://?------outermost _map location
      }
   }
}

Should i not have posted this code here?
Does this make it a bit clearer? The key really is just using the same
object
to reference in the proximity_pattern.
Anyway, pretty simple and general. Give it a go!

Now ijust need to test it with other objects! It wouln't be very useful if
it
just worked on spheres!

benp


Post a reply to this message

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