PDA

View Full Version : Glass & liquid question



sublimationman
10-23-2011, 09:35 PM
I wanted to ask about liquid inside of glass. Using Sub-d it's pretty near impossible to have the poly aligned perfectly so do people normally have the liquid slightly smaller or slightly larger than the glass.

I think it looks OK with it smaller but don't know if this is more accurate to real life?

Below the first image is with the liquid slightly smaller than the glass and the other image the liquid is slightly larger (so they intersect each other)

jasonwestmas
10-23-2011, 10:45 PM
The refraction in the second image doesn't look as good even if it were more physically accurate.

bazsa73
10-23-2011, 10:45 PM
crank up the AA please, the aliasing ruins the image

Lor
10-23-2011, 11:10 PM
I think the problem is that by modeling the glass as one set of polygons and then the liquid as another set of polygons, you have coplanar polys, or polys within polys with a small space between, either of which will never work quite right. Glass to liquid is a single transition, just like glass to air. So I imagine the best approach would be to only have one polygon separating glass from liquid and then using nodes to create a different material for each side of the polygon, glass on one side and liquid on the other side. Hope that makes sense.

lor

sublimationman
10-23-2011, 11:49 PM
The refraction in the second image doesn't look as good even if it were more physically accurate.

That's what I think to.

sublimationman
10-23-2011, 11:50 PM
crank up the AA please, the aliasing ruins the image

This was a quick render to get the idea of how the liquid looks. The final render will be something like 4000x3000 20+ AA

XswampyX
10-24-2011, 12:39 AM
It's not as difficult as you think with sub's.

http://i465.photobucket.com/albums/rr16/xXswampyXx/AshTrayWater.jpg

Just cut the top surface of the liquid and then paste it back in again. This will give you a great edge.

Lor
10-24-2011, 08:32 AM
Nice!:thumbsup:

jasonwestmas
10-24-2011, 08:32 AM
Pretty! I like it.

bazsa73
10-24-2011, 10:22 AM
This was a quick render to get the idea of how the liquid looks. The final render will be something like 4000x3000 20+ AA

Sorry, I didn't know that:)

sublimationman
10-24-2011, 04:04 PM
It's not as difficult as you think with sub's.


Just cut the top surface of the liquid and then paste it back in again. This will give you a great edge.

That is very interesting. Looks great

Thanks I don't think I would have figured that one out on my own... Now that's 2 I owe you ;-)

XswampyX
10-25-2011, 06:57 AM
Heh, who's counting? Just one thing to remember... if you forget and use merge points in a global scope, it will mess up you liquid. best paste them into another layer.