Glass not realistic enough

Project:YafaRay
Component:YafaRay Core
Category:bug report
Priority:normal
Assigned:David Bluecame
Status:closed
Description

While comparing the Glass material between YafaRay and LuxRender (which is a very accurate, although slow, physically spectral renderer) I've noticed that the Glass preset material in LuxRender seems more realistic than the same material with the same properties in YafaRay.

This is the LuxRender glass with a uniform white background and a filter=1.f, IOR=1.5f and reflection=0.7f (almost the default preset in LuxRender)

luxrender_glass_example.pngluxrender_glass_example.png

 

And this is the YafaRay glass with the same properties:

yafaray_glass_not like luxrender.pngyafaray_glass_not like luxrender.png

 

 

I found out that the YafaRay Glass material does not take into consideration the Reflection color for the Internal Total Reflection calculation. So, I've corrected it in the code, which will be available in the next YafaRay version:

https://github.com/YafaRay/Core/commit/3867bb56e0725a1f9f83b7db3551f71e7...

 

With the change, this is how the same material looks like in YafaRay:

yafaray_glass_as luxrender.pngyafaray_glass_as luxrender.png

 

I hope this will allow us to get a more realistic glass in YafaRay from now on.

 

The example scene is in the next comment.

Comments

#1

Example scene attached.

AttachmentSize
glass_issue.blend.zip 64.99 KB

#2

Status:ready to commit» fixed

Hello,

This issue has been fixed in the new YafaRay v3.1.0-beta. See: http://www.yafaray.org/community/forum/viewtopic.php?f=15&t=5184

Take into account that glass rendering could change now a bit, depending on the glass parameters, but in theory it should be more realistic.

#3

Status:fixed» closed

Fixed for more than 2 weeks without further feedback, closing.

#4

Fixed for more than 2 weeks without further feedback, closing.