POV-Ray : Newsgroups : povray.unofficial.patches : Importance sampling of phong brdf : Re: Importance sampling of phong brdf Server Time
1 Jul 2024 03:39:41 EDT (-0400)
  Re: Importance sampling of phong brdf  
From: Christoph Hormann
Date: 15 Apr 2003 11:22:57
Message: <3E9C23D1.72C4B9C9@gmx.de>
Mael wrote:
> 
> > That looks very interesting, i have some troubles understanding how it
> > works though.  The phong model needs the light direction, how do you
> > determine it with radiosity lighting?
> 
> This sampling is independent of the radiosity inter-diffuse stuff. It occurs
> at each intersection point if there is a non zero phong in the finish. An
> adaptive number (calculated with phong_size and a global parameter rad_phong
> (a kind of density)) of rays are shooted near the direction = incident ray
> reflected (samples rays are choosed with an adequate probability density
> function -see the images- that's why it's called importance sampling) and
> light is gathered. Yes that sounds cpu consuming - and it is, but for high
> phong_size the number of samples can be low.

Very clever.

But i guess it is really quite awfully slow.  It could be worth
considering some caching function but that will probably be less helpful
than with diffuse radiosity since the result varies much stronger with
position and surface normal.

How does it look with very low sample counts? Does it look mostly noisy or
are there other artefacts?

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

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