Allow HDRI to light boxed scene

Forums: Allow HDRI to light boxed scene
Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderator: aoktar

Allow HDRI to light boxed scene

Postby mikeadamwood » Fri Jan 21, 2022 1:34 am

mikeadamwood Fri Jan 21, 2022 1:34 am
I want to light a product with a HDRI but I want a background element and want the ability to move round the object. Is there a way of allowing the HDRI to pass through a closed mesh without hiding it fully?

The way I've been doing it is rendering out with a background, then doing a second render with the background disabled and then overlaying. But this means having to render x2 so more than doubles my render times just for a simple thing.

Would appreciate a reply.
Windows 10 | ASUS Pro WS X99 SAGE II | Intel Core i9-10900X | 64GB Corsair Vengence | 3x Evga GTX 1080ti
mikeadamwood
Licensed Customer
Licensed Customer
 
Posts: 164
Joined: Sat Sep 17, 2016 11:51 am

Re: Allow HDRI to light boxed scene

Postby jayroth2020 » Fri Jan 21, 2022 1:43 am

jayroth2020 Fri Jan 21, 2022 1:43 am
You could try adjusting the visibility of the Octane Object tag of the closed mesh by disabling Shadow Visibility. That might allow the HDRI environment light to illuminate. Maybe.
CaseLabs Mercury S8 / ASUS Z10PE-D8 WS / Crucial 64GB 2133 DDR4 / 2 XEON E5-2687W v3 3.1 GHz / EVGA 1600 P2 / 1 EVGA RTX 3090Ti FTW3 Hybrid / 2 EVGA RTX 2080Ti FTW3 Hybrid/ Cinema 4D
jayroth2020
OctaneRender Team
OctaneRender Team
 
Posts: 468
Joined: Mon May 04, 2020 7:30 pm

Re: Allow HDRI to light boxed scene

Postby bepeg4d » Fri Jan 21, 2022 8:24 am

bepeg4d Fri Jan 21, 2022 8:24 am
Hi,
another possibility could be to use a Panoramic Spherical Camera for rendering the closed space, with 2:1 aspect ratio.
Then load it in the Visible Environment node, while the original HDRI is the Primary Environment.
In this way, you can turn around the object with the correct background, and the render will be much faster to be calculated.

ciao,
Beppe
User avatar
bepeg4d
Octane Guru
Octane Guru
 
Posts: 9940
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy

Re: Allow HDRI to light boxed scene

Postby mikeadamwood » Fri Jan 21, 2022 1:27 pm

mikeadamwood Fri Jan 21, 2022 1:27 pm
I think I've kind of figured it out with the RAY SWITCH node. I'll add a file...I've not stress tested it in a proper scene yet. The ray switch node is a bit glitchy in that you have to move the sliders round for it to register once you add it to the opacity channel.

It's nice because you can catch reflections on the floor while still lighting with HDRI. It's essentially ONLY visible to the camera but still gets lit by the HDRI.

HDRI_PASS_THROUGH_CLOSED_MESH.jpg


I've added the file too in case anyone else wants to do this.

I know it's not realistic but I'm a motion designer so sometimes you just need to break the rules..I really want to try Redshift but haven't had the time to pick it up.

Thanks alot for the suggestions, I did try object tag first, but did;t think of the spherical camera idea, I did try that but the problem is you don't get any movement on camera panning..I guess you could add it to a sphere but it still looks a bit weird, definitely going to spend more time in that
Attachments
HDRI_PASS_THROUGH_CLOSED_MESH.zip
(27.77 MiB) Downloaded 48 times
Windows 10 | ASUS Pro WS X99 SAGE II | Intel Core i9-10900X | 64GB Corsair Vengence | 3x Evga GTX 1080ti
mikeadamwood
Licensed Customer
Licensed Customer
 
Posts: 164
Joined: Sat Sep 17, 2016 11:51 am

Return to Maxon Cinema 4D


Who is online

Users browsing this forum: No registered users and 20 guests

Thu Mar 28, 2024 10:36 pm [ UTC ]
cron