|
|
"Tek" <tek### [at] evilsuperbraincom> wrote:
> Stunningly realistic materials & rendering techniques. I genuinely thought
> it was a photo.
Thank-you so much.
> I'd had a similar thought about user defined cameras and stochastic
> sampling, primarily because pov's apeture shape for focal blur is a cube,
> which is unlike any camera that could ever be built! But I gave up when the
> calculations for a nice random distribution on a 5-blade iris started to
> hurt my brain. If you crack it (the problem, not my brain) I'd love to see
> the code!
Yes - POVs aperture code is pretty substandard.
I just use a pigment or a PNG image of the bokeh, and sample it with an halton
sequence. I then dim the image by the gray value returned (i.e. this sample is
76% bright, that one is 40% bright). If the value is below a threshold (e.g. 5%)
I take another sample.
The code is all in my Camera35mm macros I posted a year or so ago.
Cheers,
Edouard.
Post a reply to this message
|
|