Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: F13Design on 2021-12-22, 14:54:54

Title: Direct visibility override issue
Post by: F13Design on 2021-12-22, 14:54:54
Not sure if it is a bug. I have Corona version7 (Hotfix1)

When I use Direct visibility override, I use to create an almost black background so that when I select the inverted Alpha channel to cut the background out of the Corona rendered image it helps cut back the halo edge issues especially with trees and plants.

So I used the Direct visibility override, I get a partial black background and not a full one. See attached image. Is this a bug? Is there a work around on this issue? I'm also using Corona sun/sky.

Thanks for your help!
Title: Re: Direct visibility override issue
Post by: romullus on 2021-12-22, 16:40:44
Plug pure black Corona color texmap connected through Corona tonemap control to direct visibility override and untick affect by exposure, tone mapping and LUT.
Title: Re: Direct visibility override issue
Post by: Frood on 2021-12-22, 17:36:55
But it should work out of the box like this, shouldn't it? The empty scene (just scene+camera) would be interesting.


Good Luck
Title: Re: Direct visibility override issue
Post by: F13Design on 2021-12-22, 18:54:25
Romullus,

I think I did what you had suggested and it came out the same. See attached. Thanks!
Title: Re: Direct visibility override issue
Post by: F13Design on 2021-12-22, 18:57:23
Frood,

This is what happens when there is nothing.
Title: Re: Direct visibility override issue
Post by: Frood on 2021-12-22, 19:14:24
Ok, what I meant is, it would be interesting if you could attach exactly that empty scene so that we can have a look at it :)


Good Luck

Title: Re: Direct visibility override issue
Post by: F13Design on 2021-12-22, 19:22:06
Ah,

let me see what I can do.
Title: Re: Direct visibility override issue
Post by: F13Design on 2021-12-22, 19:31:16
Frood,

Let me know if this works. See attached Max2019 Corona Renderer 7(Hotfix1)
Title: Re: Direct visibility override issue
Post by: Frood on 2021-12-22, 20:19:17
Yes, it "works" :) I see you are using PRG clear sky with volume effect. Unfortunately this setting bleeds into the direct pass. One of two reasons why I consider this feature as not production ready :( The second reason is, that the volume effect goes to the "Rest" element when using light mix.

So the result is expected currently when using such a setup. Side note: your scene has 10051 animation layers. Use a cleaner script (or this tiny one (https://forum.corona-renderer.com/index.php?topic=19797.msg130003#msg130003)) to get rid of them. They may cause slowdowns, large scene files and other issues.


Good Luck


Title: Re: Direct visibility override issue
Post by: F13Design on 2021-12-22, 20:28:58
Frood,

Yes that clearly works! Thank you! Super bummer the volume effect doesn't work with it. But I might be able to do away with that option.

So what caused the 10051 animations layers? Thanks again for your help!
Title: Re: Direct visibility override issue
Post by: Frood on 2021-12-22, 20:36:21
So what caused the 10051 animations layers?

All those downloaded assets you have merged into your scene :) Many of them are "infested" with animation layers and they get merged silently as they are global tracks.


Good Luck


Title: Re: Direct visibility override issue
Post by: F13Design on 2021-12-22, 20:40:50
Didn't know that, very interesting. Thank you for that insight. I learned two things today. LOL

Enjoy your Holidays!