by Olivier3001@[EMAIL PROTECTED]
Aug 29, 2007 at 07:27 AM
On Aug 29, 4:48 am, roby.brune...@[EMAIL PROTECTED]
wrote:
> Anyone having a rib example showing how I can simulate the image I
> would obtain on film by tracing through a real lens system (may be
> starting frm
http://www.fundza.com/rman_shaders/ray/basic_ray_tracing/basic2.html
?
>
> What kind of shader should I be looking for (or write)?
Do you mean tracing the entire frame through a simulated lens? Or only
adding a lens inside a scene like that page does?
For the later there's pretty much everything you need on the page so I
imagine it's the former. In that case, just how "real" do you want
your lens to be? Renderers already approximate the most significant
features of lenses (ie. focal length, aperture size and in some cases
aperture "shape"). Do you want to add distortions? Flare? Chromatic
aberrations? Lack of sharpness? Star shaped highlights? Something
else? Each of these can be simulated pretty easily but ray tracing is
not the best way to do it. Post processing the 2D image is far easier
and faster.
Olivier