-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Non-Uniform Bokeh Support #409
Comments
I have a vague memory it was an image post processing feature and not a real camera option. Do you have an LXS file using this feature ? I should be able to track back what it was. |
It's not a post processing feature, check https://github.com/LuxRender/Lux/blob/3550ad33f0d5a3f2a6c5fe435e4a853088db82a5/cameras/perspective.cpp#L326 |
Right, the one I remember was lens flares. This one should be quite easy to add. |
Awesome, I have been waiting for this! While looking at the bokeh shape, please consider supporting lateral and longitudinal chromatic aberration, the possibility to use a custom bokeh image, and optical vignetting. |
Do you have some links to information that would help implement all of this, by chance? |
I don't have any white-paper, but someone recreated it physically in Cycles (spoiler: it's extremely slow to render): |
@michelchafouin, I added the support for lateral and longitudinal chromatic aberration, it only requires to use two parameters instead of one:
|
In LuxRender, the camera offered support for "Non-Uniform Bokeh Distribution," which allowed the user to set the distribution, number of aperture blades, and power of the distribution. According to the luxrender.net wiki:
"LuxRender also allows for some modifications to the distribution of light across the focus disk or circle of confusion. The distribution and quality of this light is generally called bokeh. This is achieved through the blade number and distribution parameters. Blade number is the number of blades that make up the iris of a lens. A blade number of zero simulates an infinite blade number of a perfect circle, and will result in bokeh disks that are circular... As no lens distributes light uniformly across the focus disk, some non-uniformity is desirable for photorealistic imaging."
(https://web.archive.org/web/20161014045454/http://www.luxrender.net/wiki/LuxRender_Cameras)
Here is an example of the feature present while using LuxRender 1.2.1 in the Blender 2.65a interface:
This feature was useful in practice, as it allowed users to create much more realistic and high quality bokeh, without resorting to complex setups requiring the use of translucent bokeh images or the compositor. Below I have created some examples using the different distributions, showing their usefulness to generate certain effects.
6 bladed exponential distribution with power 1:
22 bladed inverse exponential distribution with power 10:
0 bladed (perfectly round) aperture with uniform distribution and power 0 (perhaps the sort of DoF LuxCore is capable of?):
22 bladed aperture with exponential distribution and power 1:
Implementing this feature into LuxCore would be useful. Thanks!
The text was updated successfully, but these errors were encountered: