Combined and Shadow pass in one rendering?

Forums: Combined and Shadow pass in one rendering?
Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)

Combined and Shadow pass in one rendering?

Postby Andreas_Resch » Sun May 14, 2023 6:57 am

Andreas_Resch Sun May 14, 2023 6:57 am
Hello.

I'm on the next stage of exploring Octane and have arrived at render passes. Here's a question. Is it possible to have a "normal" pass (containing) all the objects and the shadow pass in one rendering like in the image below? I know it's possible to use render layers, but that would mean twice the render time. And as I usually render very high res images (8K+) this is a significant amount of time. Thanks for any advice.

RenderPasses_01.jpg
Andreas_Resch
 
Posts: 269
Joined: Sat Jul 28, 2018 6:29 am

Re: Combined and Shadow pass in one rendering?

Postby elsksa » Sun May 14, 2023 11:48 am

elsksa Sun May 14, 2023 11:48 am
Hi,
Andreas_Resch wrote:Is it possible to have a "normal" pass (containing) all the objects and the shadow pass in one rendering like in the image below?

That's what render-layers are for. There isn't any single AOV in any renderer that is a substitute to render-layers.

Andreas_Resch wrote:I know it's possible to use render layers, but that would mean twice the render time.

Wherever you read that, that's an erroneous information, or misinterpreted/misunderstood?

If you are new to Octane, I would strongly recommend to consult some of these pages, such as "Kernel Settings" and any other one that may be helpful to you.

While I personally don't recommend it, multi-layer EXR is possibly what you meant to imply, AOVs (or "passes") into a single file. Disadvantages are essentially that all-in-one-single-file impacts on "performance", and having them separately provides higher flexibility and control.
elsksa
Licensed Customer
Licensed Customer
 
Posts: 784
Joined: Sat Jul 24, 2021 1:06 am

Re: Combined and Shadow pass in one rendering?

Postby Andreas_Resch » Sun May 14, 2023 11:53 am

Andreas_Resch Sun May 14, 2023 11:53 am
Thanks for the reply.

In Cycles it is possible to get those two passed in one render run. That's why I asked.

About render layers. From what I understood, the render process starts from scratch for each render layer. If there's a way to get multiple render layer in one render run, that's great. I'll look for more information about that.

And no - I was not talking about single-file vs. multiple files. I'm fine with multiple files. Used them in Cycles as well.
Andreas_Resch
 
Posts: 269
Joined: Sat Jul 28, 2018 6:29 am

Re: Combined and Shadow pass in one rendering?

Postby elsksa » Sun May 14, 2023 12:26 pm

elsksa Sun May 14, 2023 12:26 pm
Andreas_Resch wrote:In Cycles it is possible to get those two passed in one render run.


Indeed, I don't recall that being possible in Octane. It could, but through workarounds, e.g. AOVs (which don't require a "re-rendering per AOV") with cryptomatte, which is what I was actually referring to, that I mistaken with render layers.
elsksa
Licensed Customer
Licensed Customer
 
Posts: 784
Joined: Sat Jul 24, 2021 1:06 am

Re: Combined and Shadow pass in one rendering?

Postby linograndiotoy » Wed May 17, 2023 10:16 am

linograndiotoy Wed May 17, 2023 10:16 am
In Cycles it is possible to get those two passed in one render run. That's why I asked.


How do you do this?

AFAIK, you need to render the scene twice in Cycles as well, using view layers.

Which can be done in Octane as well.

View_Layers.blend
(1.23 MiB) Downloaded 55 times
linograndiotoy
OctaneRender Team
OctaneRender Team
 
Posts: 1157
Joined: Thu Feb 01, 2018 7:10 pm

Re: Combined and Shadow pass in one rendering?

Postby Andreas_Resch » Wed May 17, 2023 10:32 am

Andreas_Resch Wed May 17, 2023 10:32 am
It's possible in one render run. If the "Shadow Catcher" is activated as a render pass, the objects and the shadow catcher are separated like this. Here a plane is below the sphere and it's marked as a shadow catcher in the object settings.

RenderPasses_02.jpg


But I guess I can come to a similar result if I extract the objects from the combined layer with an object mask.
Andreas_Resch
 
Posts: 269
Joined: Sat Jul 28, 2018 6:29 am

Re: Combined and Shadow pass in one rendering?

Postby elsksa » Wed May 17, 2023 10:52 am

elsksa Wed May 17, 2023 10:52 am
Andreas_Resch wrote:But I guess I can come to a similar result if I extract the objects from the combined layer with an object mask.

Indeed, that's what I was referring to from my previous reply (AOVs/Cryptomatte).
elsksa
Licensed Customer
Licensed Customer
 
Posts: 784
Joined: Sat Jul 24, 2021 1:06 am

Re: Combined and Shadow pass in one rendering?

Postby linograndiotoy » Wed May 17, 2023 4:52 pm

linograndiotoy Wed May 17, 2023 4:52 pm
Andreas_Resch wrote:It's possible in one render run. If the "Shadow Catcher" is activated as a render pass, the objects and the shadow catcher are separated like this. Here a plane is below the sphere and it's marked as a shadow catcher in the object settings.

RenderPasses_02.jpg


But I guess I can come to a similar result if I extract the objects from the combined layer with an object mask.


In your previous example the shadow were not masked by the obejct, that's what I was thinking you needed.
linograndiotoy
OctaneRender Team
OctaneRender Team
 
Posts: 1157
Joined: Thu Feb 01, 2018 7:10 pm

Re: Combined and Shadow pass in one rendering?

Postby Andreas_Resch » Wed May 17, 2023 5:01 pm

Andreas_Resch Wed May 17, 2023 5:01 pm
Yeah. That's not possible in Blender either. Not in one run. But I think I will go for extracting the objects from the combined pass. I hope I don't get any issues around the corners.
Andreas_Resch
 
Posts: 269
Joined: Sat Jul 28, 2018 6:29 am

Re: Combined and Shadow pass in one rendering?

Postby J.C » Thu May 18, 2023 10:33 pm

J.C Thu May 18, 2023 10:33 pm
This might be useful but not exactly what you wanted.
https://www.youtube.com/watch?v=bEgjnyNwOSg
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
J.C
Licensed Customer
Licensed Customer
 
Posts: 1723
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław
Next

Return to Blender


Who is online

Users browsing this forum: No registered users and 21 guests

Sun Apr 28, 2024 12:22 am [ UTC ]