Maxwell Render

Maxwell Render Information Repository
It is currently Sun May 19, 2013 2:31 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: 1.x: Glass Tutorial
PostPosted: Tue Jun 06, 2006 5:27 am 
User avatar

Joined: Wed Jan 26, 2005 8:30 pm
Posts: 7381
Location: Uzbjeckiazutjenikitzistan
This is by no means THE glass, just some general suggestions. You can always alter the parameters like transmission, reflectance to get different looks.

First version:

Image

Settings:

Image

Going through the settings:

Reflectance (0°)
I decided I want very reflective glass so I set this pretty high, 218. This is actually too high, if you compare with one of the glass ior files (bk7 for example) it's reflectance would be much less than 218, perhaps around 80.

Reflectance (90°)
I left this at default white since I don't want tinted reflections at grazing angles. Usually only metals tint the reflection to their own color.

Transmittance
This controls the color and also the intensity of light rays passing through the glass. If you leave it at black it's as if the material is opaque.

Transmittance is a pretty sensitive parameter so change values in small increments.

Note: If ND is set to 1 and transmittance is set to 255, than the clipmapping feature will kick in.


Attenuation distance
Controls how far a light ray can move through an object before losing half it's energy. If you set this parameter very low, no light will actually pass through to the other side which gives transparency. I set it to 2cm since I thought it would be a "normal" setting for the usual glass. Think that you are shining a light through a glass panel 2cm thick, the light will lose a lot of it's initial energy passing through all that glass.

It's important to understand the attenuation distance works together with the transmittance. For example you can set transmittance to a very saturated blue, but if you set the attenuation distance at 999M and the glass panel in your scene is only 3mm thick, then the light rays passing through it will not have time to become tainted with blue. You will get completely colorless glass.

ND
Controls amount of light refraction. Here I set a typical of 1.55. Denser glass would have a bit higher nd, like 1.63.

Roughness
I didn't want any frosted glass, so I set roughness at 0, completely smooth glass.


Now changing only the transmittance from 200 to 100, we get a more "smoky" glass look:

Image

Lowering the transmittance even more, to only 20, the glass looks much darker overall, that is the thickness of the glass bottle doesn't matter too much, all of it looks darker:

Image

What if instead of setting the transmittance 10x less (from value 200 to 20), we lower instead the attenuation distance 10x (from 2cm to 2mm)?

Attenuation 2mm:
Image

The glass looks brighter, except the parts which are thicker, they look slightly more solid. This is because this particular model has a very small thickness and even a 2mm attenuation distance will still make it transparent. So if you wanted this model to look like tainted glass, it would be difficult to do that only lowering the attenuation distance, you would also have to make the transmittance color pretty saturated and not too bright. The next glass shows this:

Image

This is a 2 bsdf glass, with a weightmap controlling the influence of each bsdf.

The settings and weightmap:

Image

The glass object was simply mapped with a flat projector.

The weightmap was inverted for the other bsdf layer.

You can see the transmittance color for both bsdf's is pretty dark, so this thin object can still look tainted. One bsdf has the attenuation distance at 2mm, the other at 1cm. As mentioned above, having the attenuation distance smaller will make the glass tint "faster".

You can ofcourse have different nd for the two glass materials.

_________________
Next Limit Team
Merchant of happiness


Last edited by Mihai on Tue Jun 06, 2006 6:09 am, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 5:32 am 

Joined: Tue Apr 19, 2005 9:28 pm
Posts: 397
Location: UK - Cornwall
Thanks for tutorial Mihai


- however some of your image links are broken

Jonathan


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 5:37 am 
User avatar

Joined: Wed Nov 24, 2004 6:20 pm
Posts: 1925
hmmm very nice the orange glass, the clear glass examples seem to be missing something. Good tutorial anyways....

_________________

chester, i’ve got news for you, fort minor was amazing, and you suck.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 5:41 am 
User avatar

Joined: Wed Jan 26, 2005 8:30 pm
Posts: 7381
Location: Uzbjeckiazutjenikitzistan
Try reloading the page, should all be there.

_________________
Next Limit Team
Merchant of happiness


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 5:54 am 

Joined: Sat Jan 28, 2006 10:43 pm
Posts: 642
Location: bilbao
Thanks you very much Mihai :wink: . Very clear tutorial.

_________________

Cinema4D R14 + Rhino V5 + Maxwell 2.7 + Adobe CS6


Top
 Profile  
 
 Post subject: Re: Glass tutorial
PostPosted: Tue Jun 06, 2006 6:02 am 
User avatar

Joined: Mon Jan 10, 2005 11:53 am
Posts: 7607
Mihai wrote:
Do not set it at 255 RGB since that kicks in the clip mapping feature.

Only if the Nd=1, otherwise 255 transmittance doesn't mean clipping. So, you don't need to worry about it for the glass. ;)
Thanks for this tutorial and clean renders, Mihai!

Note: Bumpmap blurs the bottom and with high reflectance this seems like a shiny topcoat color acryllic.

_________________
Next Limit Team


Last edited by tom on Tue Jun 06, 2006 6:04 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 6:04 am 
DELETED


Top
  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 6:05 am 
User avatar

Joined: Wed Jan 26, 2005 8:30 pm
Posts: 7381
Location: Uzbjeckiazutjenikitzistan
Oh, forgot, thanks tom! Updated it...

_________________
Next Limit Team
Merchant of happiness


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 7:59 am 

Joined: Tue Jul 19, 2005 11:47 am
Posts: 203
Great stuff Mihai - thanks for this. :D


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 8:49 am 
User avatar

Joined: Sat Jun 18, 2005 7:26 am
Posts: 3210
Location: Seoul, Korea
Great and very useful tutorial, Mihai. :D

Thank you very much. :D :D

_________________
many limits team
:: twitter :: Gallery :: My 3D products :: ...and ::


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 1:40 pm 

Joined: Wed Nov 30, 2005 8:37 pm
Posts: 157
Location: Germany
Thanx :D !

- vinys


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 1:47 pm 
User avatar

Joined: Sat Mar 12, 2005 4:43 pm
Posts: 4986
Location: Luxembourg
very nice tutorial Mihai... good explanation.. :wink:

_________________
sing with me.... la la la... la la la :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 1:57 pm 
User avatar

Joined: Fri Dec 03, 2004 9:56 am
Posts: 873
Location: Germany Hannover
very nice work Mihai :)
but where the scene for testing :wink:

ciao
torolf

_________________
::
Donations revenue 195 Euro in 7 years ;)
::
everything my models (mathe and 3d-scan) not for Commercial use!


Top
 Profile  
 
 Post subject: GREAT!
PostPosted: Tue Jun 06, 2006 3:51 pm 

Joined: Wed Jan 05, 2005 4:52 pm
Posts: 161
Location: Rome
GREAT Mihai,
give us this wonderful scene and obj to test!!! :D :D :D

ADL
www.imagonet.it


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 4:11 pm 
User avatar

Joined: Tue Jul 12, 2005 6:25 am
Posts: 314
Location: Let your compass guide you
thanks Mihai,, great tutorial..

_________________
-my gallery-


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group