Some time ago I experimented alot with glass in enscape. I know this is one of the hardest things to get right in a real time rendering engine, due to optimizations for reflections, lack of subsurface scattering and a lack of shadows. but I still wanted to get as close to realism as possible, and the images below are the result of my testing. The glass is basically made up of a lot of different layers, with a tiny distance between them. the layers are (from the inside - out):
beer bubbles
beer
glass (two panes)
finger smudges
droplets
It takes a lot of tweaking, but you can actually get some real control over it!
Herbo, I hope it is ok for you that I add an older however similar study, back then done with Shaderlight - Yes you are right about the layers, independent of the used renderer: so the hull surface of the liquid should not be the same surface of the inner glass wall. As for the foam, I admire your achieved result :thumbup: :thumbup: ! in my case, the latte macchiato foam I had to surrender and used instead (as seen below) a cutout texture which I converted to a face-me component then. How did you achieve this so good foam detail?
Thank you! please do share your experiments! Its fun to see what others can achieve
Thank you I actually tried a lot of things to get rid of it, but didn’t find a solution. At some point it wasn’t there, but when it first showed up (probably due to something I tweaked) it was there to stay Maybe the developers have some insights into this phenomenon?
thanks! And i totally agree, the last two images are just depressing
wow, great studies!! the scattering looks just right, and i really love your workaround for the coffee its a neat trick, and the illusion works
my foam is actually a solid form, made with a foliage type material with some shine and bumb… it is still not “airy” enough, but without real SSS it is probably as close as I can get
Thank you! And I totally agree, this is not something you do everytime you need a glass in a scene Lighting and texturing needs to be on point for it to work as well But yeah, lets hope that we can have some approximation of this out of the box, although it is probably not straight forward
for starters, supporting layered materials would make it a lot easier
Thank you! I think it is fun to share some of the insights as well, and love when others do it too… this is a great way to learn new tricks
Thanks! Yep, my bubbles are just a simple texture on a cylinder shape… BUT! the texture actually has a little self illumination. without this, it has a hard time penetrating all the other layers
…in real life and even completely without polys my beer glass level is also too often too low
And just for fun on this cool and nice post of Herbo I´ll add this early beer-attempt from 2014 ;(