Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: CarloBox on 2016-10-12, 15:12:10

Title: Floor plan
Post by: CarloBox on 2016-10-12, 15:12:10
Hi, everyone,
I am using corona for more than a year and I am very happy with this render flexibility, especially with 1.5 version , but I can't still create a floor plan the way I want. I want to make the view where the ambient light pass only through the ceiling and sunlight pass only through the windows. It means that the ceiling is transparent, but the sunlight does not pass through the ceiling, only through the window. Like that:
(https://static1.squarespace.com/static/533425f7e4b05b79d04bd139/55b1f16fe4b020bb9742afa3/55b1f1f5e4b0ae96c55347bd/1437725175802/planas-7A_alpha0000_details.png?format=1500w)

(https://s21.postimg.org/uhgyauq07/floor_plan.jpg)

With VRay I can easily solve this problem by putting ceiling mesh to exclude list of ambient light (Illumination and shadow casting). And Corona does not have this. Maybe there is a solution in corona too? Thank you!
Title: Re: Floor plan
Post by: steyin on 2016-10-12, 17:26:34
Can't you just set the ceiling to be non-renderable? That would maintain your light set-up.
Title: Re: Floor plan
Post by: CarloBox on 2016-10-12, 17:29:38
Hi, steyin, Yes I can set the ceiling to be non-renderable, but sun source will iliuminate through the ceiling too.

After long experimenting time I manage to make half baked solution - make the ceiling to illuminate white source of light.

Result:
(https://s10.postimg.org/sr1lkauqh/sun_lightceiling.jpg)

But I still want to make studio ambient illumination + sun through windows. I like this depth illusion effect caused by the studio HDRI:
(https://s16.postimg.org/ks7izjjx1/studio_ambient.jpg)

Sure, I can increase the wall height to avoid sun illumination through ceiling. But I still willing to solve this issue by trick the rendering like Vray

Title: Re: Floor plan
Post by: PROH on 2016-10-12, 17:51:57
Hi. If I understand your writings correct the sun is passing through your ceiling because it's transparent. Make it solid, uncheck visible to camera (object properties) and things should work as expected. If needed find a way to add more ambient light (as you already did).

AFAIK you can't use the mentioned Vray-trick in Corona. So you have to find another way.

Good luck
Title: Re: Floor plan
Post by: romullus on 2016-10-12, 19:04:12
After long experimenting time I manage to make half baked solution - make the ceiling to illuminate white source of light.

Interesting hack. Did you tried to plug HDR map or sky from enviroment to ceiling materials illumination slot? Might be interesting to see what happens. Just make sure to match mapping correctly.
Title: Re: Floor plan
Post by: CarloBox on 2016-10-13, 10:48:59
Hi, PROH, thank you for your suggestion, but it's more complicated. I want to passing through ceiling only ambient HDRI light and block sunlight. In your suggested case interior will illuminate by both light sources. Basically, I can't exclude specifically one object from selected light source to not create a shadow. I can exclude illumination in light source's exclude/include list, but not shadow casting.

Hi, romullus, hack was not succeed :) I tried standard omni lights, coronarayswitchmtl, coronalightmlt, even tried your suggestion to use corona light as environment HDRI portal. But not succeed, I got in best case only random light spots.

Funny enough I have manage my goal by simply workaround - remove ceiling, put blind wall near apartment to block only sunlight.

(https://s18.postimg.org/9gug297c9/solution.jpg)

(https://s17.postimg.org/kf36m3q9b/image.jpg)

But still It would be great to have an option to disable specific object's shadow casting in particular light source.
Title: Re: Floor plan
Post by: romullus on 2016-10-13, 11:16:05
Yeah, but that way you add some directionality in your ambient light. Better than nothing, but still...

I don't have much time to do tests now, but, i might give a try to this problem when i'll have some free time.
Title: Re: Floor plan
Post by: CarloBox on 2016-10-13, 16:43:58
Romullus, yes, right now I have too much strong shadow from left side, but it's OK. Do not bother with that issue, I see it's rock solid render, you can't trick this render to do unexpected nonphysical rules. At least in this case.
Title: Re: Floor plan
Post by: Jpjapers on 2016-10-17, 11:44:44
Just wondering if im getting this. So if i wanted to do an overview render of a building, i cant just set the ceiling to non-renderable and have it still cast shadows as if it was still there?
Title: Re: Floor plan
Post by: romullus on 2016-10-17, 12:23:04
No, if you make it non renderable via object properties, it won't render at all. If you want ceiling to be invisible to camera, but still cast shadows, you have to assign rayswitch material to it and plug ceiling material to all its slots but direct.
Title: Re: Floor plan
Post by: Jpjapers on 2016-10-17, 12:54:23
Thats very useful to know thank you!
Title: Re: Floor plan
Post by: Frood on 2016-10-17, 13:11:47
you have to assign rayswitch material to it and plug ceiling material to all its slots but direct.

This is oldschool :) When using Corona 1.5 you don´t have to do this any more, it´s done internally when using object properties / rendering control.

Good Luck

Title: Re: Floor plan
Post by: romullus on 2016-10-17, 14:16:13
Well., what do you know, i'm an oldschool man :] So it's enough to uncheck visible to camera to achieve what jpjapers want? Haven't follow Corona development as close as i'd like lately.
Title: Re: Floor plan
Post by: Frood on 2016-10-17, 15:22:15
So it's enough to uncheck visible to camera to achieve what jpjapers want?

Yes. At least for what he wants in reply #8. I don´t know of the rest ;)

Well., what do you know, i'm an oldschool man :]

Good boy :)

Title: Re: Floor plan
Post by: Edvinas on 2016-10-19, 17:20:08
Well., what do you know, i'm an oldschool man :] So it's enough to uncheck visible to camera to achieve what jpjapers want? Haven't follow Corona development as close as i'd like lately.
Unchecking "visbile to camera" will not achieve what jpjapers want. It will render like with ceilings, but it won't be visible. And this has worked since corona alpha version.

Jpjapers, if I am correct, wants not only this, but also ambient light passing throw invisible ceiling. Well, I haven't tried, but there must be a trick with rayswich.

Anyway, invisible ceiling and few corona lamps always work for me.