POV-Ray : Newsgroups : povray.binaries.images : Patina/grime (40k) : Re: Patina/grime (40k) Server Time
20 Nov 2024 12:38:22 EST (-0500)
  Re: Patina/grime (40k)  
From: ingo
Date: 31 Aug 2001 10:17:16
Message: <Xns910EA5B055A23seed7@povray.org>
in news:3B8F7FC3.D717E8FF@engineer.com Kari Kivisalo wrote:

> http://www.pp.htv.fi/kkivisal/prox.jpg
> 

Interesting.

Just an idea I came up with while making a short bicycle tour this 
afternoon. It may be complete nonsense.

 Shoot a ray at the object to be rendered. Put an imaginary sphere with 
a given radius with its centre on the ray, its surface should toutch 
the objects surface in the intersection point. Now check if the sphere 
intersects somewhere with the object. If so, reduce the sphere radius 
until it does not intersect anymore (the sphere should still be 
toutching the object at the intersection point).
 Now make the grey-value of the objects pigment depends on the sphere's 
radius.
 By setting limits to the sphere's sizes you could control the amount 
of patina.
 Would something like this work? As a patch? As a clever combination of 
macros and functions (3.5)?

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

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