Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: Torsten on 2015-06-26, 09:53:56

Title: Translucent Concrete Material
Post by: Torsten on 2015-06-26, 09:53:56
Hello Corona members,

I was wondering if anyone has an idea how i should setup a material to resemble translucent concrete? Check the attachement. The trick is that you can't see through the material, but the material lets light through in one direction ( perpendicular). I tried using different settings, refraction, absorption. But the key thing is that you still need to see a strong diffuse color.
Title: Re: Translucent Concrete Material
Post by: maru on 2015-06-26, 10:08:18
Challenge accepted! :)
Title: Re: Translucent Concrete Material
Post by: Torsten on 2015-06-26, 10:09:35
Challenge accepted! :)

Great news! :-)
Title: Re: Translucent Concrete Material
Post by: maru on 2015-06-26, 11:29:44
Ok, here are my experiments. First one is with glossy refraction, the other one with volumetric media. First one should perform well on thinner walls, the 2nd should work well on thicker ones too. It would probably require more "tuning" to look better, but I think this is the right direction. The material is applied to front and back faces of the box only.

I read that this kind of concrete is made by drowning optical fibers in it, so I tried to achieve a simplified version of what might be happening inside.
Title: Re: Translucent Concrete Material
Post by: Torsten on 2015-06-26, 11:56:20
Holy sh*t :-) That looks absolutely amazing Maru. Yes this effect is achieved in real life by laying nets of optical fibers and than poor concrete in between. That's why it only has light transmitting in one direction, and the material is not transparent. Your examples look a lot like what i was looking for.

Could you please save the max files to version 2014? Than i will try to advance the materials to the concrete material.

Thanks a lot!
Title: Re: Translucent Concrete Material
Post by: maru on 2015-06-26, 12:46:53
No problem, here they are:
Title: Re: Translucent Concrete Material
Post by: Torsten on 2015-06-26, 14:00:27
Hi Maru, i tested your first setup, without sss, seems the simplest to start with for me. I attached a render with the result. I like the result very much, only there are some unrealistic things happening.

The problem with this setup is that the material becomes transparent because of the Refraction value. The bright dots on the walls are there because you see a bright sky behind the wall.
But actually the whole wall should have bright dots because of the light that falls onto the walls.
So in the render you should not be able to see the building in the distance. Only if you would put an object onto the wall  or close to the wall, thus blocking the light, you would see a dark spot (check the reference i attached). Also the floor behind it should not become a dark spot on the wall, because it doesnt block the light.

Any thoughts?



Thanks for the help Maru!
Title: Re: Translucent Concrete Material
Post by: Torsten on 2015-06-26, 14:12:58
I attached a concept diagram on how this material works in essence. The fibers let light travel from on side to the other. Only objects that block the light, and cast shadows, become visible as darker spots on the wall.
Title: Re: Translucent Concrete Material
Post by: maru on 2015-06-26, 14:31:00
Yes, I understand all of this. In fact, fibers will work in Corona, but you would have to model each of them. :)

I think it might be possible to create this behavior by changing refraction IOR, refraction glossiness, or using the 2nd setup with SSS. I will try recreating similar situation. Generally interactive rendering is extremely helpful in such cases, when you tweak some of the parameters to see how they affect the object/material.
Title: Re: Translucent Concrete Material
Post by: Torsten on 2015-06-26, 14:33:38
Great. Yes modelling the fibers I have stopped trying some time ago, way too much fibers (1 per cm2), and way too small diameters (1mm) ;-)
Title: Re: Translucent Concrete Material
Post by: maru on 2015-06-26, 17:54:06
Ok, last idea, it still doesn't work like real fibers, but I can't think of anything better. :) Basically I added additional "layers" inside of the wall with the same shape of holes to block some of the light coming from different directions. The front and back surface of the wall have the same shape of holes too so when you look at it directly, you see what's behind it. This would require a lot of work to look correct, I think the easiest way would be to use bitmaps instead of procedural maps and apply box uvw mapping. The wall is refractive inside with a little bit of glossiness. Changing any parameter slightly, like glossiness or noise map settings changes A LOT. Render times are pretty horrible (no wonder - lots of small holes).
Title: Re: Translucent Concrete Material
Post by: agentdark45 on 2015-06-26, 22:12:23
Had a quick go at this, I found adding a Coronafrontback map in the refraction slot (jpeg in front face side, white in back face side) gave a fairly close result, at least when compared to just sticking a map in the refraction slot.
Title: Re: Translucent Concrete Material
Post by: Torsten on 2015-06-30, 13:33:34
Thanks for your help guys. The technique i use at the moment is usig a cellulor map to control the opacity of the wall. This noisemap comes very close to how and where the actual light dots would be seen. I still need to make sure the material is not see through. When i have some renders i will update the post.
Title: Re: Translucent Concrete Material
Post by: Nekrobul on 2015-07-02, 17:20:36
Omg it works.

Maru you are practising some black woodoo arent you?
Title: Re: Translucent Concrete Material
Post by: maru on 2015-07-02, 17:23:43
Maru you are practising some black woodoo arent you?
You have unmasked the true meaning of "rendering is magic" line.
Title: Re: Translucent Concrete Material
Post by: Torsten on 2016-02-08, 16:23:15
So it has been a while since this topic was last replied on. I have made some new steps in creating a material. And it seems to do a fairly good job now. The geometry consits of blocks with the facing faces the semi translucent material, the sides of the blocks are not translucent. The material look really close to what it actually looks like. The only problem left is that there are still shadows visible on the ground. This does not happen in real life.

Does anybody have an idea how to eliminate these direct light/shadows? I know Vray has an option per material to turn off "cast shadows".
Title: Re: Translucent Concrete Material
Post by: maru on 2016-02-08, 16:35:45
What is the desired effect about the shadows here? Do you have a real life reference?
If you disable shadows, the objects will not block light at all - are you sure you would like that? Here is a guide on disabling shadows: https://coronarenderer.freshdesk.com/support/solutions/articles/5000516723
You can also use the same technique (rayswitch) to make the material solid - simply put a different, solid material in the GI slot.
Title: Re: Translucent Concrete Material
Post by: Torsten on 2016-02-08, 16:45:28
Attached a real life example. As you can see, light flows trough the concrete, the lighting is diffuse. But the block itself blocks the direct sunlight, casting a shadow on the ground. In vray i have created a similair effect using the option "cast shadow" in material settings. If i use the rayswitcher as you suggested, there is no light coming through the blocks.

I need the direct light to be disbled. So the blocks shadows are completely intact.

Thanks!
Title: Re: Translucent Concrete Material
Post by: maru on 2016-02-08, 16:54:03
I think you need to put any solid material in the GI slot of the rayswitch mtl. :)
Title: Re: Translucent Concrete Material
Post by: PROH on 2016-02-08, 16:55:15
Hi. How about putting an extra plane on the inside (inside the room) that's invisible to the camera but still cast shadow? If this makes the shadow to dark, then it could also emit a soft subtle light?

Haven't tried it - just an idea...
Title: Re: Translucent Concrete Material
Post by: Torsten on 2016-02-08, 17:08:26
I tried to use de Rayswitch material, putting a solid material into the Global Illumination slot, and the translucent materials in the other slots. But this disables the translucency of the material, so the render becomes black.

Title: Re: Translucent Concrete Material
Post by: PROH on 2016-02-08, 23:29:13
Hi tmiddelkoop. I just did a quick test, and think I got a solution. Put a plane inside your wall and give a CoronaLightMtl with these settings:

Intensity: 0,0
"Emit light" on
"Emit light on both sides" on
"Occlude other lights" on
"Visible directly" off
"Visible in reflections" off
"Visible in refractions" off

No need for RaySwitcher or unchecking stuff in object properties.

I've attached two pics of this in action. The wall on the left is without this plane, and the wall on the right is with. I've also attached a pic og the LightMtl setup.

BTW - If you need to let a little light in, then you can use the oppasity slot in the LightMtl to make the shadow les dense. I tried this using a Corona Color map set to RGB 210.

Check it out :)
Title: Re: Translucent Concrete Material
Post by: Torsten on 2016-02-09, 09:38:28
Wow Proh, i really like your result, the concrete also looks very nice! The idea of your setup works pretty well. The only thing is that there is nog light coming through the wall if you putt your fake light into the setup, atleast in my try. And if you use the color opacity slot, the shadows become visible again. I also tried using you setup combined with fake arealights in front of the wall. But the richness of the material is lost in this setup.

If you put your setup in a closed box, is there light coming trhough the concrete into the room?

Not sure if there is a final solution in the options attached in the images.

Title: Re: Translucent Concrete Material
Post by: Torsten on 2016-02-09, 09:45:29
Proh, would you mind sharing your scene? Or maybe the concrete material?

Thanks!
Title: Re: Translucent Concrete Material
Post by: PROH on 2016-02-09, 13:15:50
I haven't got access to it right now, but it's very basic: Its a multi/sub-object material with ID#1 being Concrete (from "Corona Basic Set") for the box sides, and ID#2 being a Concrete/Fiber blend-material for the box front and back. As blend mask I used a Cellular map.

Regarding the "shadow-caster" I did try another way, that might let some subtle light inside (depending on your scene and the way your fiber material is build): Instead of one big vertical plane you can use a series of smaller horizontal planes placed above each other with a "building block size" between them. This will simulate the top and bottom of the building blocks in real life, and will block sun-rays from shining thru the wall, but allow horizontal light to pass.

I think the problem is, that unless you're building these walls exactly like in real life, you'll never get it 100% right. But maybe 98% could do?

Keep it up :)
Title: Re: Translucent Concrete Material
Post by: PROH on 2016-02-09, 23:01:48
OK. Did some more testing, and did find a way to get light without shadows. It's actually quite simple. I've uploaded 2 pictures:

Test2-2a uses same material setup as the pictures from my previous post - exept for the IOR in the Fiber material being a little higher.

Test2-2b has some changes in the CoronaLight Mtl. "Emit on both sides" is turned off, "Directionality" is set to 0,4 and the light is turned on with "Intensity" set to 80.

I don't know how much light comes thru these bricks in real life. From your photos it doesn't look like much, but by adjusting the directionality and intensity it's possible to create something that doesn't look to "fake". It will take longer to render tho.

I've also attached the scene (max2014, Corona 1.4 daily 2016-01-27).
Title: Re: Translucent Concrete Material
Post by: Torsten on 2016-02-10, 11:30:32
Thank you so much for your help!
Title: Re: Translucent Concrete Material
Post by: Jellehe on 2017-07-31, 16:35:08
Can anyone convert this material to v-ray vrmat for me?
Title: Re: Translucent Concrete Material
Post by: maru on 2017-07-31, 21:46:07
Any volunteers? (http://i0.kym-cdn.com/entries/icons/mobile/000/000/091/TrollFace.jpg)
Title: Re: Translucent Concrete Material
Post by: romullus on 2017-07-31, 21:51:59
Seems pointless to me - Corona renders much better with its own materials :]