POV-Ray : Newsgroups : povray.advanced-users : ambient occlusion applied to textures : Re: ambient occlusion applied to textures Server Time
4 Oct 2024 17:09:46 EDT (-0400)
  Re: ambient occlusion applied to textures  
From: Alain
Date: 21 Jun 2007 05:59:07
Message: <467a4beb$1@news.povray.org>
Samuel Benge nous apporta ses lumieres en ce 2007/06/20 22:08:
> Kirk Andrews wrote:
>> Some time ago a saw a post in the image binaries titled "ambient 
>> occlusion",
>> which is a way of lighting objects such that crevices and corners receive
>> less ambient light.  It would incredibly useful if this could be 
>> applied to
>> *textures*, allowing a "dirty" or "mossy" texture to be applied only to
>> crevices and corners.  I wonder if anyone knows of a way of doing this?
>>
>> -- Kirk
> 
> One way is to use MegaPOV's projection pattern: 2.6.3. Projection pattern
> 
> To get a full effect, you would need several patterns to specify blurry 
> light_sources all around the object. They would be averaged together.
Don't know.
> 
> The other option I know of (and it may have been my post you saw), is to 
>  make a pigment out of the target object and combine jittered versions 
> of it into an average pigment's pigment_map. If that makes any sense.
Done!
> 
> Both ways will be terribly slow.
> 
> ~Sam
The object pattern is used in the patina macro, and yes, it's teribly slow, in 
particular if there is some reflection involved.

-- 
Alain
-------------------------------------------------
A day without sunshine is like, night


Post a reply to this message

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