|
![](/i/fill.gif) |
Mael wrote:
>
> > Is this based on actual measures? I would assume the calculation of the
> > sampling directions is negligible on terms of computation time in
> > comparison to the actual shooting of rays. Isn't it possible to calculate
> > the sampling directions and their weights in advance anyway?
>
> Yes it would be possible (you need a set of samples for each different
> phong_size). And you're right, calls to trace() are certainly what make it
> slow
Yes, they could be stored as part of the finish when the new feature is
used in it.
> as i'm not planning to release more mlpov versions here is the code for
> people interested (it still needs some work)
> it uses a 2D halton sequence for random variables to compute the sampling
> directions
> the function have the finish metallic as i think it's possible to use it but
> this not done
>
> [...]
Thanks. I assume it is called in 'compute_lighted_texture()' like
'Compute_Ambient()'. You will probably also have to use some mechanism
like 'recursion_limit' to control recursion.
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
|
![](/i/fill.gif) |