Render shadow but not object

Forums: Render shadow but not object
Unreal® Engine Integrated Plugin

Moderator: ChrisHekman

Render shadow but not object

Postby joshuamkerr » Mon Jan 10, 2022 12:03 pm

joshuamkerr Mon Jan 10, 2022 12:03 pm
Hi Octane Peeps,

In unreal usually you can set an object to 'not visible' but check the hidden shadow box, this way we can have shadows casting from an object that doesn't show in our final render.

I don't see a way to make this work with octane yet. Is there an option in the rendertarget or a way to implemewnt it in GUI?

It would be very useful when using media planes and casting accurate 3d shadows.

All the best
Josh
joshuamkerr
 
Posts: 60
Joined: Thu Apr 15, 2021 7:25 am

Re: Render shadow but not object

Postby ChrisHekman » Mon Jan 10, 2022 2:22 pm

ChrisHekman Mon Jan 10, 2022 2:22 pm
The plugin is capable of doing this for most object.
In unreal, select your static mesh component, and add a new component called OctaneObjectLayerComponent.
Select this new component, and turn off "Camera Visibility".

Example:
ObjectLayer.png
ChrisHekman
OctaneRender Team
OctaneRender Team
 
Posts: 969
Joined: Wed Jan 18, 2017 3:09 pm

Re: Render shadow but not object

Postby joshuamkerr » Mon Jan 10, 2022 3:32 pm

joshuamkerr Mon Jan 10, 2022 3:32 pm
Hi Chris,

Great, this is getting there. Is there a way for this to work when the hidden object is intersecting another mesh?

It renders with a big black hole instead of being able to see the intersected mesh. Moving the mesh so it doesnt intersect isn't an option if I want the shadow in the correct place.

Any ideas?

Kind Regards,
Josh
joshuamkerr
 
Posts: 60
Joined: Thu Apr 15, 2021 7:25 am

Re: Render shadow but not object

Postby ChrisHekman » Mon Jan 10, 2022 3:34 pm

ChrisHekman Mon Jan 10, 2022 3:34 pm
joshuamkerr wrote:Hi Chris,

Great, this is getting there. Is there a way for this to work when the hidden object is intersecting another mesh?

It renders with a big black hole instead of being able to see the intersected mesh. Moving the mesh so it doesnt intersect isn't an option if I want the shadow in the correct place.

Any ideas?

Kind Regards,
Josh



Can you show me the scene setup?
ChrisHekman
OctaneRender Team
OctaneRender Team
 
Posts: 969
Joined: Wed Jan 18, 2017 3:09 pm

Re: Render shadow but not object

Postby joshuamkerr » Mon Jan 10, 2022 3:46 pm

joshuamkerr Mon Jan 10, 2022 3:46 pm
Hi Chris,

Of course. Here's a folder with some images inside.

https://drive.google.com/drive/folders/1rdJ0jN3qK5vsbiwpYq9trL1eYdzgr1CC?usp=sharing

Its quite simple, theres an image playing back on a plane and I'm using a primitive as it's shadow. the octane object is allowing it to be invisible but objects go black when it's intersecting with other geometry.

Let me know if you need to see anything else.
joshuamkerr
 
Posts: 60
Joined: Thu Apr 15, 2021 7:25 am

Re: Render shadow but not object

Postby joshuamkerr » Thu Feb 10, 2022 10:03 am

joshuamkerr Thu Feb 10, 2022 10:03 am
As there a solution to this?

I don't have two sided shadows turned on and it isn't a double side dmaterial so I'm not ssure why this is happening.

One possibility was to try using pixel depth offset in the primite's material so that the meshes don't intersect but the shadow stays in the same place but that doesn't seem to work with octane.

I'd be suprised if there wasn't a way to create a shadow object.
joshuamkerr
 
Posts: 60
Joined: Thu Apr 15, 2021 7:25 am

Return to Unreal® Engine


Who is online

Users browsing this forum: No registered users and 8 guests

Sat Apr 20, 2024 2:04 am [ UTC ]