POV-Ray : Newsgroups : povray.off-topic : WebGL : Re: WebGL Server Time
27 Jul 2024 22:31:57 EDT (-0400)
  Re: WebGL  
From: scott
Date: 6 Jun 2016 08:36:10
Message: <57556e3a@news.povray.org>
> My favourite feature is that you can adjust the lens aperture and focus
> distance. I was just wondering whether you could accurately simulate
> depth of field using path tracing! Now we just need to be able to change
> the focal length of the lens too... (There are also options for
> adjusting the exposure.)
>
> For a camera nerd, this is quite fun! (Well, it beats Nikon's "lens
> simulator", which just shows a static JPEG with variable magnification!)
>
> Sometimes I really wish I knew how to do this stuff for myself...

Follow a tutorial on WebGL - or if you want to skip all the html/js 
boilerplate stuff you'll need to know, go straight to something like 
shadertoy. There are plenty of examples, and shadertoy now supports 
reading back pixels from previous frames, so you can do 
multi-frame-averaging for path-tracing amongst other effects.

Building a lens simulator (with real-time path-traced results) sounds 
feasible and very interesting.


Post a reply to this message

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