- Mon Jul 07, 2008 2:41 pm
#275027
I have read the whole thread by Thomas An. about refraction of light.
http://www.maxwellrender.com/forum/viewtopic.php?t=2906
The thread is pretty old now. (ALPHA - 1.1.33 - May 20, 2005) Are there any changes? Can anyone explain how MR calculates index of refraction of “nested” materials (eg. Air-Glass-Water-Glass-Air)?
From school I remember Snell's law very well but I am not sure how to implement it in MR…
I performed some test and basic calculation. I found that only way I can get the “physically” correct result is as follows:
To use solid closed objects, to have “double sided” polygons on medium intersections.
Drawing:

Render OK:

If I used setup suggested by Thomas (to remove polygons on intersection glass and water) I always got strange result. Even I change face normals (it has no impact at all).
Render NG:

Drawing:

Render Reverse normals NG:

Can anyone from NL help to solve this question (how to model “physically” correct glass of water)?
I did not take into account situation on water level, where the order of materials is Air-Water-Glass-Air. I want to test it later.
Suggestions and questions are welcome.
http://www.maxwellrender.com/forum/viewtopic.php?t=2906
The thread is pretty old now. (ALPHA - 1.1.33 - May 20, 2005) Are there any changes? Can anyone explain how MR calculates index of refraction of “nested” materials (eg. Air-Glass-Water-Glass-Air)?
From school I remember Snell's law very well but I am not sure how to implement it in MR…
I performed some test and basic calculation. I found that only way I can get the “physically” correct result is as follows:
To use solid closed objects, to have “double sided” polygons on medium intersections.
Drawing:

Render OK:

If I used setup suggested by Thomas (to remove polygons on intersection glass and water) I always got strange result. Even I change face normals (it has no impact at all).
Render NG:

Drawing:

Render Reverse normals NG:

Can anyone from NL help to solve this question (how to model “physically” correct glass of water)?
I did not take into account situation on water level, where the order of materials is Air-Water-Glass-Air. I want to test it later.
Suggestions and questions are welcome.





[/UR
- By Mark Bell
- By Edward Leibnitz