Blurring scene, but not HDRI in background

Forums: Blurring scene, but not HDRI in background
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

Blurring scene, but not HDRI in background

Postby xientce » Thu Sep 07, 2023 5:54 pm

xientce Thu Sep 07, 2023 5:54 pm
Hi all,

Have a problem for you all!

I've got a scene, a gold metallic object that I want to have heavy DOF on. I also want the metal to reflect the HDRI background.
But, using DOF in C4D Octane camera means my HDRi is also being blurred.

Is there anyway in Octane to have my foreground be blurred, but my hdri background be clean and sharp?

Any help is always appreciated!
xientce
Licensed Customer
Licensed Customer
 
Posts: 3
Joined: Tue Jul 31, 2018 4:19 pm

Re: Blurring scene, but not HDRI in background

Postby frankmci » Fri Sep 08, 2023 3:10 pm

frankmci Fri Sep 08, 2023 3:10 pm
If I understand you correctly, you just need to set your focal depth pretty high, so that it's well past your near, blurred objects. The environment should stay crisp.
Attachments
DOF.png
Technical Director - C4D, Maya, AE, - Washington DC
frankmci
Licensed Customer
Licensed Customer
 
Posts: 828
Joined: Fri May 26, 2017 2:00 pm

Re: Blurring scene, but not HDRI in background

Postby SSmolak » Fri Sep 08, 2023 3:37 pm

SSmolak Fri Sep 08, 2023 3:37 pm
Maybe someone knows how to avoid blur in reflections ?
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Licensed Customer
 
Posts: 1095
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland

Re: Blurring scene, but not HDRI in background

Postby frankmci » Fri Sep 08, 2023 4:43 pm

frankmci Fri Sep 08, 2023 4:43 pm
SSmolak wrote:Maybe someone knows how to avoid blur in reflections ?

I was fooling with this a bit and it looks like Octane is treating perfectly flat reflective surfaces the way you would expect, optically, but not surfaces that have any phong smoothing applied to them at all, even an otherwise perfectly flat cube with a small corner radius. Right side, cube no radius, left side, cube with radius. The right side is optically correct. Remove radius on left cube, its reflection becomes as clear as the right cube. Kernel choice and sampling levels don't seem to make any difference.
Attachments
PhongRef vs NoPhongRef.png
Technical Director - C4D, Maya, AE, - Washington DC
frankmci
Licensed Customer
Licensed Customer
 
Posts: 828
Joined: Fri May 26, 2017 2:00 pm

Re: Blurring scene, but not HDRI in background

Postby SSmolak » Fri Sep 08, 2023 5:45 pm

SSmolak Fri Sep 08, 2023 5:45 pm
frankmci wrote:The right side is optically correct. Remove radius on left cube, its reflection becomes as clear as the right cube. Kernel choice and sampling levels don't seem to make any difference.


Thanks but I mean situation while focusing on cube. How to avoid background blurring on reflective surfaces that are on focus like this :

refl_DOF_blur.png
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Licensed Customer
 
Posts: 1095
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland

Re: Blurring scene, but not HDRI in background

Postby frankmci » Fri Sep 08, 2023 7:53 pm

frankmci Fri Sep 08, 2023 7:53 pm
SSmolak wrote:Thanks but I mean situation while focusing on cube. How to avoid background blurring on reflective surfaces that are on focus like this :


Ah, I was thinking you wanted it the other way around. In your situation, Octane is behaving as it should, optically. To get the reflection of distant, unfocused objects to be focused in a reflection, you're going to have to cheat. It would look funny, too, in my opinion, even if people don't consciously know what's wrong. But if you need it, you need it. I think you'll have to do two different DOF passes and comp them, one for your geometry, another for your reflections.
Technical Director - C4D, Maya, AE, - Washington DC
frankmci
Licensed Customer
Licensed Customer
 
Posts: 828
Joined: Fri May 26, 2017 2:00 pm

Re: Blurring scene, but not HDRI in background

Postby SSmolak » Fri Sep 08, 2023 8:58 pm

SSmolak Fri Sep 08, 2023 8:58 pm
frankmci wrote:Ah, I was thinking you wanted it the other way around. In your situation, Octane is behaving as it should, optically.


Yes I know but in architectural visualizations clients wants little DoF but clear reflections in windows :) Exclude from DoF in Octane Object tag would be great for that.
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Licensed Customer
 
Posts: 1095
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: No registered users and 11 guests

Thu May 02, 2024 4:30 pm [ UTC ]