Page 1 of 2

LuxCore multipass composite

Posted: Mon Nov 04, 2019 10:13 pm
by Egert_Kanep
Here is just an overview of what to do with LuxCore aov's. I call aov beauty image that is sum of the passes and combined pass is render beauty.

Caustics can be extracted with subtracting aov beauty from combined (render beauty). This intorduces negative values, but if extracted caustics now added to aov beauty, which has those bright fireflies, it evens them out and you get indentical result as combined. Makes sense, but this isn't a good thing I think. There seems to be some caustics, but majority of caustic contribution is missing from aov's

Re: LuxCore multipass composite

Posted: Mon Nov 04, 2019 10:35 pm
by Dade
There is a trick you can use if you want an image with only caustics: use PATHCPU and set balance between light paths and eye paths all in favor of light paths (i.e. 0.0).
You can use the same trick to get an eye paths only rendering by using a value of 1.0.

Re: LuxCore multipass composite

Posted: Mon Nov 04, 2019 11:07 pm
by Egert_Kanep
Okay, that's also good to know. My concern is that when I'm doing multipass compositing, I wan't to avoid ''hacks'' like subtracting and making negative values, because then my image breaks when I start tweaking individual aov's. Everything should be comped in additive.

There is a workaround, where I could keep separated caustics as individual image and then build a second node tree and add it as an extra pass. This would keep the additive workflow.

Thise fireflies appear in direct glossy aov.

I disabled light tracing and aov beauty and render beauty look different. This is bad news for me, I would expect them to be identical

Re: LuxCore multipass composite

Posted: Tue Nov 05, 2019 9:42 am
by Dade
Egert_Kanep wrote: Mon Nov 04, 2019 11:07 pm I disabled light tracing and aov beauty and render beauty look different. This is bad news for me, I would expect them to be identical
You have lost me, I don't know how to map some of your term in my LuxCore nomenclature.

Anyway, this is what I mean. This is a rendering with "0.0" (aka only caustics):

caustic.jpg

and this is a rendering of the same scene with "1.0" (aka everything-but-caustics):

nocaustic.jpg

if you sum the 2 images (note: sum, not blend/mix), the result is the complete rendering:

total.jpg

Isn't what you are looking for ?

Re: LuxCore multipass composite

Posted: Tue Nov 05, 2019 10:26 am
by Egert_Kanep
I am trying to rebuild beauty using LuxCore aov's. but the result does not match with the result that is combined by render engine.

Re: LuxCore multipass composite

Posted: Tue Nov 05, 2019 11:06 am
by Dade
Egert_Kanep wrote: Tue Nov 05, 2019 10:26 am I am trying to rebuild beauty using LuxCore aov's. but the result does not match with the result that is combined by render engine.
Ok, now I get it however, by composing all of them, you should get only this:

Image

The light tracing part is not included in any AOV.

So you should get the correct complete result if you sum:

- direct diffuse
- direct glossy
- indirect diffuse
- indirect glossy
- indirect specular

_and_

- light tracing output:

Image

If you disable light tracing, your original procedure should work fine but caustics are likely to look bad because path tracing alone is really bad at rendering them.

Re: LuxCore multipass composite

Posted: Tue Nov 05, 2019 12:01 pm
by Egert_Kanep
Beauty combined from aov's has some much brighter pixels. I'mt trying to figure out why I cannot get identical result to beauty that is coming from render.

This is just opencl render without light tracing

Re: LuxCore multipass composite

Posted: Tue Nov 05, 2019 12:55 pm
by Egert_Kanep
Thanks B.Y.O.B for pointing out the clamping. This was the culprit behind my confusion. Clamping is not applied to aov's so I got those bright pixel, now everything makes sense

Re: LuxCore multipass composite

Posted: Tue Nov 05, 2019 1:56 pm
by Dade
Egert_Kanep wrote: Tue Nov 05, 2019 12:55 pm Thanks B.Y.O.B for pointing out the clamping. This was the culprit behind my confusion. Clamping is not applied to aov's so I got those bright pixel, now everything makes sense
This may be considered a bug, is it :?:

Re: LuxCore multipass composite

Posted: Tue Nov 05, 2019 2:09 pm
by Egert_Kanep
Well sort of. One would assume aov's to have same settings applied as beauty render