How to coat a glass?

3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Post Reply
User avatar
gabrielefx
Licensed Customer
Posts: 1701
Joined: Wed Sep 28, 2011 2:00 pm

Hi guys,

stupid question.

If I apply the roughness to a piece of glass I lost the external surface reflection, the reflection is blurred.

How can I create a glass material with internal roughness but maintaining the surface reflection?

If I mix two specular mats one with roughness and the other one transparent I get a 50% of transparency.

I tried to mix one specular mat + one glossy but I think that the result is not physical.

I think that the mix mat doesn't work like a coating operator. It mixes the two materials like photoshop mixes two layers.

Any answer?

Thank you.
quad Titan Kepler 6GB + quad Titan X Pascal 12GB + quad GTX1080 8GB + dual GTX1080Ti 11GB
User avatar
PolderAnimation
Licensed Customer
Posts: 375
Joined: Mon Oct 10, 2011 10:23 am
Location: Netherlands
Contact:

I don't think 1 shader can do the trick.
In real life you have one glass shader but the structure in the glass is rough and on the outside is polished (smooth).
So you can do 2 things, model the roughness geometrie in the glass (good luck with that) or model (extured) a very thin layer of glass on top of your original and use 2 shaders (one with the rough glass shader and one with sharp reflections).
That is my best guess.
Win 10 64bit | RTX 3090 | i9 7960X | 64GB
User avatar
FooZe
OctaneRender Team
Posts: 1335
Joined: Tue May 15, 2012 9:00 pm

Would a specular material with heavy scattering and some absorption help here?

Cheers
Chris
simmsimaging
Licensed Customer
Posts: 107
Joined: Tue Feb 16, 2010 3:24 am

Can you map roughness? If so then separate the internal faces of the glass (the inside parts that touch the contents) from the outside ones and only apply roughness there.

If not then it can be done with a fine-grained bump map to create roughness, just map it the same way. This will be more computationally expensive but should work in any render engine.
http://www.simmsimaging.com
blog.simmsimaging.com
i7 980 24GB Ram GTX580 3GB Vista 64 Ultimate
User avatar
Refracty
Licensed Customer
Posts: 1599
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln
Contact:

you could layout the inner and outer shell on different parts of the UV space and map the roughness, leaving the outer shell 'black'
User avatar
Jaberwocky
Licensed Customer
Posts: 976
Joined: Tue Sep 07, 2010 3:03 pm

Gabrielefx

how about this..

please see attached

Any Good ??

Jaba
Attachments
frosted glass experiment copy.jpg
CPU:-AMD 1055T 6 core, Motherboard:-Gigabyte 990FXA-UD3 AM3+, Gigabyte GTX 460-1GB, RAM:-8GB Kingston hyper X Genesis DDR3 1600Mhz D/Ch, Hard Disk:-500GB samsung F3 , OS:-Win7 64bit
User avatar
gabrielefx
Licensed Customer
Posts: 1701
Joined: Wed Sep 28, 2011 2:00 pm

thank you for all suggestions.

The best and semi-exact method is to enable the scattering and tweak the scale factor. I noticed that the scattering operator doesn't blur specular highlights on objects that stay on the back of thin glass panels.

For example: create a thin (1cm) glass panel and enable the scattering. Put on the back of this panel two objects with strong reflection, you will see clearly the highlights on these objects seeing through the glass.

The second "fake" method is to mix two materials: 0,9 for a specular mat and 0,1 for a glossy mat with fresnel reflection and glossy=0. In this case we will get two reflections, one blurred and the second one sharped.
quad Titan Kepler 6GB + quad Titan X Pascal 12GB + quad GTX1080 8GB + dual GTX1080Ti 11GB
User avatar
Refracty
Licensed Customer
Posts: 1599
Joined: Wed Dec 01, 2010 6:42 pm
Location: 3D-Visualisierung Köln
Contact:

I have tested this but couldn't reproduce the problem.
This is just a box with two specular materials applied.
Attachments
TestFront.jpg
TestBack.jpg
Post Reply

Return to “Autodesk 3Ds Max”