Custom Shaped Bokeh!

Forums: Custom Shaped Bokeh!
DAZ Studio Integrated Plugin (Integrated Plugin maintained by OTOY)

Moderator: BK

Forum rules
Please keep character renders sensibly modest, please do not post sexually explicit scenes of characters.

Custom Shaped Bokeh!

Postby huakiami » Tue Jun 09, 2020 4:47 am

huakiami Tue Jun 09, 2020 4:47 am
Hi all - just wanted to share some details about a little experiment I was doing this evening to create 'shaped bokeh.'

Now when I say shaped bokeh, I don't mean the OctaneRender camera settings that let you specify the bokeh side count, edge and roundness. I'm referring to the idea of photographers IRL putting a small shaped opening in front of the camera lens to change the appearance of the out of focus objects and lights.

For example using something like this:
Image

To turn this:
Image

Into this:
Image

(Above images credit: https://www.diyphotography.net/diy_crea ... own_bokeh/)

So if OctaneRender simulates a physical camera then we should be able to achieve the same in 3D by putting a plane with a small shaped cutout in front of the camera right? Turns out yes - it does indeed work!

Here is an image I rendered this evening, using a plane with an opacity texture of a heart shaped cutout in front of the camera.
daz-heart-bokeh.jpg


And here is a screenshot of my scene in the Daz viewport - basically Just a character and the camera. The little red square is the plane with the heart shaped cutout opacity texture - just made it red for this screenshot so it's easily visible.
daz-scene.jpg


The background is just the Octane HDR environment, using the Neuer Zollhof HDRI from hdrihaven.com - free to download here: https://hdrihaven.com/hdri/?h=neuer_zollhof

One caveat I've found so far is that you can't use the AI Denoiser when doing this. I don't know why, but despite the raw render looking like what I posted above, the denoiser beauty pass would always output perfectly hexagonal bokeh. Maybe the AI algorithm thinks it knows what the bokeh should look like based on the camera settings and ignores the effect of the plane in front of it? Possibly a bug, but also fascinating that it completely changes the bokeh appearance.

Thanks for the read and curious to see anyone else's results if you try this!

-Matt
huakiami
Licensed Customer
Licensed Customer
 
Posts: 46
Joined: Thu Nov 21, 2013 6:09 am

Re: Custom Shaped Bokeh!

Postby Lewis » Tue Jun 09, 2020 7:52 am

Lewis Tue Jun 09, 2020 7:52 am
Nice trick/idea and looks great at end, as for Denoiser problem you should report that. Sounds more like a BUG than normal behavior.
--
Lewis
http://www.ram-studio.hr
Skype - lewis3d
ICQ - 7128177

WS AMD TRPro 3955WX, 256GB RAM, Win10, 2 * RTX 4090, 1 * RTX 3090
RS1 i7 9800X, 64GB RAM, Win10, 3 * RTX 3090
RS2 i7 6850K, 64GB RAM, Win10, 2 * RTX 4090
User avatar
Lewis
Licensed Customer
Licensed Customer
 
Posts: 1070
Joined: Tue Feb 05, 2013 6:30 pm
Location: Croatia

Return to DAZ Studio


Who is online

Users browsing this forum: No registered users and 15 guests

Sat Apr 27, 2024 1:04 am [ UTC ]