glass and wood problems

Started by duka1985, January 31, 2018, 07:54:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

duka1985

Hello,
I have problem with two materials; imagine a piece of wood (plank) embedded in glass. The model is modeled using cut-out process in modeling software. Problem I have in KS is that two materials seems to conflict with each other and result is "empty box" in place where inner solid part (wood) should be. Any idea how to fix that? Thanks!

mattjgerard

Looks like the inner surfaces are fighting for dominance, if the wood interior piece is modeled separately and has separate faces than the glass, then shrink the wood piece by a teensy little bit so they aren't fighting to occupy the same 3d space.

IF they are modeled as one object and share a single surface as the interface between the two, then you might have to take a different solution, one that I'm not familiar with. Search on the forum for liquid/glass or container interactions. Same issues there.

Will Gibbons

Try selecting the wood piece and scaling it down to .99 (you can adjust this under the position sub-tab) under the scene tree.

duka1985

Actually it worked, thanks. Shrinking solved the problem of "empty box" but added another one - thin layer of "air" ( or vacuum) between wood and glass that has different optical characteristics and it was visible on render - no matter how thin that gap was. However scaling wood piece positively (say 1,0001) works perfect! It seem that slightly overlapping two materials is not an issue. Thank again!

jhiker


Will Gibbons

Quote from: duka1985 on January 31, 2018, 01:17:37 PM
Actually it worked, thanks. Shrinking solved the problem of "empty box" but added another one - thin layer of "air" ( or vacuum) between wood and glass that has different optical characteristics and it was visible on render - no matter how thin that gap was. However scaling wood piece positively (say 1,0001) works perfect! It seem that slightly overlapping two materials is not an issue. Thank again!

This is to be expected as KeyShot is physically accurate. The only way to get this to behave the way you wanted it to is to treat it like we do liquids in glass/plastic. If you look up our blog post on how to render liquids in glass, you'll see how to use surfaces to define the IoR on each side of the surface which will give you what you're looking for.

duka1985

Quote from: jhiker on February 01, 2018, 12:51:13 AM
Can you post a new pic?

Yep, ofc! The model above was just to illustrate the problem so I didn't play with it afterward. So, here are some later pics with actual model.

Will Gibbons