A brand new version of my Wax Dof Box software.
This software let you change the depth of field focus distance in an image. For this you need an RGB image and a Depth Map image (usually done in raytracer, but can be done by hand too).
It work like raytracing work, as it
It's now GPU accelerated with some GLSL shaders and is 20-30* times more faster than the older CPU version. (The slow parts now are when exchanging memory between GPU & CPU and writing to the hard disk images but still faster than using CPU alone).
I've simply applied the principle of DOF like these in raytracer.
For each pixel of destination image, It look the depth map a this position. That minus the DOF you've choosen, will give the "Deviance factor". More deviance you have, more blur you will have. The more deviance multiplicator you set, the more sample you'll have to use. Depending on the shader choosen (method_1 or method_2) you'll have uniform sampling or and random sampling (to add a bit of nice noise).
After that for each sample texture will be looked at new position of each sample and summed then averaged for destination pixel.
Here's the link to download it.
And some screenshots of the UI when changing the Distance :
![]() |
![]() |
![]() |
Comments
RSS feed for comments to this post