Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: graham2787 on 2020-05-19, 16:08:18

Title: Camera Clipping / Slicing
Post by: graham2787 on 2020-05-19, 16:08:18
Hi there,

I have a tight deadline and need to create a section of a scheme. I have got the camera clipping to work, however the clipping doesn't allow sunlight getting to internal rooms which I hoped it would. So an internal bathroom towards the middle of the building is effectively plunged into darkness. Is there a way to allow the environment lighting to work as if the whole model was sliced? It is a complex model so the slice modifier keeps crashing it as there are a huge amount of objects I need to cut through.

Many thanks

Graham
Title: Re: Camera Clipping / Slicing
Post by: Byteman3D on 2020-05-20, 09:33:21
Have you considered using the Slice modifier? It is a simple plane that can cut the model into two regions any of which can be made invisible by selecting Top or Bottom options. The plane can be moved or rotated in sub-object mode.
The modifier can be applied to a set of object as instances so you can just select the necessary objects and apply the modifier, adjust the position and orientation, select Remove Top or Bottom, then as a last step, use the Cap Holes modifier to cap the ends.

Hope this helps.

Edit: You can also consider excluding the shadow casting roof and necessary models to illuminate interiors. I don't know if there is any way to exclude illumination of environment GI, but you can try placing a sphere with a light material assigned to it, then you can assign your HDR to the light material. You might have to invert the normals of the sphere to illuminate inside it. Although it seems possible, I see a very apparent firefly type of grains with HDRs. I'm not sure how to manage that.
Title: Re: Camera Clipping / Slicing
Post by: graham2787 on 2020-05-20, 16:54:27
Many thanks for your reply - the slice modifier worked well - it took about 20 mins to generate on all objects though as there were a few thousand!

Do you have any thoughts on multiple sections in a model or is the only way to move the slice plane each time to where i want the section cut? The Corona Camera clipping obviously works well for multiple orthographic cameras at each section plane, but of course I then have my original issue with lighting.

The other option you mentioned with the shadow casting is also something I hadn't thought of so will bear this in mind in future. The only thing is that I often work with Archicad / Revit models in MAX that are often very complex so bit of a pain to go around and find all the objects that need excluding, particularly on multi-storey buildings. And then if model gets updated I have to do it all again!

Thanks again - much appreciated

Title: Re: Camera Clipping / Slicing
Post by: sprayer on 2020-05-20, 22:24:20
You may try with distance map.
Also i saw long ago something similar in native max maps but don't remember how it was worked.
Corona clipping still in waiting list)
https://forum.corona-renderer.com/index.php?topic=19139.0
Title: Re: Camera Clipping / Slicing
Post by: graham2787 on 2020-05-21, 10:44:40
Ok thanks will try and get my head around distance map as haven't used it before!

If you have any helpful links / tutorial explaining how this works related to what I am trying to do that would be much appreciated :)

Thanks
Title: Re: Camera Clipping / Slicing
Post by: romullus on 2020-05-21, 10:53:56
Distance map has some significant drawbacks - it is not global and needs to be applied per material. If you have many materials, that can be equally as painfull as adding slice modifier to each object. Also, since this method works on opacity, it can be very slow to render. Keep those things in mind before replacing slice modifier.