Chaos Corona for 3ds Max > [Max] Bug Reporting

Cast shadow from invisible object BUG!

(1/2) > >>

Don't know if it's a bug or it's intentional, but having an object cast shadows in the scene by unticking "visible to camera" doesn't work if the same object has "visible to reflection/refraction" unticked as well. It doesn't make any sense, and it's been working fine until Corona 11!
I have a project I've been working on by the end of 2023, and now I need to rerender 20 images, and the whole setup is broken since it consist of multiple trees that were supposed to cast shadows in the room without being visible to reflections, as there's a backplate behind.

Can you check my recording and let me know if this is what you are trying to do?

I am using Corona 11 HF 1 and 3ds Max 2024.2

Yes, and I can replicate the exact thing you did in the video. Thing is, it works when there're are no materials applied, but with some corona materials (not all) the invisible object doesn't cast any shadows if the reflect/refract object properties is switched off. See attached images. The correct one where the trees are casting shadows has the trees reflect/refract turned on! Otherwise the engine doesn't see the trees at all. It happens in multiple scenes on different max versions as I tried in 2021 and 2023. For the sake of this test I've created a simple box without any material applied to it and the same thing happens. I'm using a HDR to light the scene.

the only condition when a material won't cast any shadow is if you have set its opacity to 0 in the corona physical material.

Please double-check your materials. I still cannot repro the issue with a simple scene containing Corona materials. It would be best if you could share that "certain" material that is causing the problem. If you're unable to share your scene here, please start a ticket with us using this link. Share the scene along with the repro steps so that we can replicate the issue on our end.

I am not 100% sure how your scene is setup, but you mentioned that you are using a HDR to light your scene then maybe your issue is related to "black highlights" which is mentioned here:

What you are seeing here is the "black highlights" issue described here , but in a reverse situation. What most of our users consider a bug you would like to use to actually see the shadow of the object.

The issue here is that in reality if an object does not reflect any light (visible to reflections disabled), then it cannot cast any shadows, because all of the light is passing through it, nothing can block it. Since Corona is modelled based on physical world, "fakes" such as invisibility but shadow casting can be a problem.

In Corona, whether you see the shadow/reflection as "dark" or "bright" actually depends on the ground material's roughness and camera position. You can check that by positioning your camera to see both the expected shadows and a strong reflection from the environment (such as HDRI sun) and then changing the ground material's roughness value in IR and observing how the shadow/reflection changes.

Unfortunately, there is no easy fix for this. As a workaround, I would suggest using full tree models visible directly and in reflections, or disabling trees' direct visibility only (while leaving visibility in reflections enabled).

--- Quote from: kingmax on 2024-02-09, 13:42:49 ---it's been working fine until Corona 11!

--- End quote ---

This statement is wrong. It renders exactly the same in Corona 10 or older and Corona 11. There were no changes in Corona 11 which would affect this behavior.


[0] Message Index

[#] Next page

Go to full version