Working with glass and liquid.

Discuss or ask critique about your current works
Forum rules
Important notice: All artwork submitted on our public gallery forums gallery forums may or may not be used by OTOY for publication on our website gallery.
If you do not want us to publish your art, please mention it in your post clearly. (put a very red small diagonal cross in the left right corner of the image)
Any images already published on the gallery will be removed if the original author asks us to do so.
We recommend placing your credits on the images so you benefit from the exposure too, and use a minimum image width of 1200 pixels, and use pathtracing or PMC. Thanks for your attention, The OctaneRender Team.


For new users: this forum is moderated. Your first post will appear only after it has been reviewed by a moderator, so it will not show up immediately.

This is necessary to avoid this forum being flooded by spam.
User avatar
Voidmonster
Licensed Customer
Posts: 54
Joined: Thu Apr 08, 2010 6:20 am
Location: Oceanside, CA
Contact:

radiance wrote:there's a tutorial by philbo somewhere (can't remember) on the forum.
maybe use the search function, it includes a diagram of how to make the liquids/meshes.
Handily, it's very easy to modify the technique I used and arrive at the one Philbo describes. Back shortly with results! :D
-Zak Jarvis
Rendering with Phenom X4 9550 @ 2.20Ghz, 8 gigs of ram, Win7 64bit, GeForce GTX 260 @ 576MHz, 216 core
User avatar
Voidmonster
Licensed Customer
Posts: 54
Joined: Thu Apr 08, 2010 6:20 am
Location: Oceanside, CA
Contact:

I'll be posting in more depth on this later, but here are the results of the initial re-render.

Couple'a changes here. First, I matched the camera settings in the earlier Maxwell Render image, so now the Octane render and the Maxwell renders can be compared more directly. I still can't quite match the materials, especially the ground texture, but that's not essential in evaluating the glass here.

I don't have the patience to do the logical step and do a photograph and 3d models to compare. Though I did take a picture of a vaguely similar glass with vaguely similar liquid.

To my eye, the Octane render isn't quite right. I don't see the interreflection between the glass and liquid layer where the glass is thickest. It makes the glass look like it has uniform thickness. Strangely, I can see the boundary at the bottom, but the outside looks 'filled' with liquid too. I'm still not sure why the base appears black. It isn't intersecting.
Attachments
Lapsang Souchong tea in a fancy brandy-glass. Photographed in my kitchen.
Lapsang Souchong tea in a fancy brandy-glass. Photographed in my kitchen.
Octane render using Philbo's glass & liquid modeling technique. Like an idiot, I just let it run while I went out and then saved it without checking render time. It rendered to 16,000 samples.
Octane render using Philbo's glass & liquid modeling technique. Like an idiot, I just let it run while I went out and then saved it without checking render time. It rendered to 16,000 samples.
-Zak Jarvis
Rendering with Phenom X4 9550 @ 2.20Ghz, 8 gigs of ram, Win7 64bit, GeForce GTX 260 @ 576MHz, 216 core
User avatar
radiance
Posts: 7633
Joined: Wed Oct 21, 2009 2:33 pm

hey,

one thing to understand is that you won't get the same image currently as octane uses simple transmission colours instead of absorption with distance using beer's law like maxwell does.
this is a feature i'd like to add once the volumetric foundation is done, which will be for v2.0 probably.

Radiance
Win 7 x64 & ubuntu | 2x GTX480 | Quad 2.66GHz | 8GB
User avatar
PhilBo
OctaneRender Team
Posts: 553
Joined: Wed Oct 21, 2009 2:36 pm
Location: Warren, Michigan USA

Win7 64| Two GTX 470s | Phenom II 920 | 8 GB
Win7 32| GTX 260 | Athlon X2 5000+ BE | 2 GB
User avatar
Proupin
Licensed Customer
Posts: 735
Joined: Wed Mar 03, 2010 12:01 am
Location: Barcelona
Contact:

try not to set the roughness of the ground too low, or you'll get a lot of fireflies... and the refraction flipped the background upside down? what do you think of it? ;)
Win 7 64bits / Intel i5 750 @ 2.67Ghz / Geforce GTX 470 / 8GB Ram / 3DS Max 2012 64bits
http://proupinworks.blogspot.com/
User avatar
Voidmonster
Licensed Customer
Posts: 54
Joined: Thu Apr 08, 2010 6:20 am
Location: Oceanside, CA
Contact:

radiance wrote: one thing to understand is that you won't get the same image currently as octane uses simple transmission colours instead of absorption with distance using beer's law like maxwell does.
this is a feature i'd like to add once the volumetric foundation is done, which will be for v2.0 probably.
Yeah, I realized that pretty quickly -- but my workflow is extremely messy. :D

I did go back and render out another Maxwell shot using much less absorption, but really, it's kind of beside the point. What I actually want to be matching is the internal reflection between liquid and glass and there are better ways to get that right. PhilBo's technique is still not looking quite right to my eye. I suspect it's a modeling error on my part, since the liquid and the meniscus surfaces are open and don't quite touch.
-Zak Jarvis
Rendering with Phenom X4 9550 @ 2.20Ghz, 8 gigs of ram, Win7 64bit, GeForce GTX 260 @ 576MHz, 216 core
User avatar
Voidmonster
Licensed Customer
Posts: 54
Joined: Thu Apr 08, 2010 6:20 am
Location: Oceanside, CA
Contact:

Proupin wrote:try not to set the roughness of the ground too low, or you'll get a lot of fireflies... and the refraction flipped the background upside down? what do you think of it? ;)
Yeah, that's not looking so very right to me... But I think it's because my model isn't water tight. So to speak!
-Zak Jarvis
Rendering with Phenom X4 9550 @ 2.20Ghz, 8 gigs of ram, Win7 64bit, GeForce GTX 260 @ 576MHz, 216 core
Stromberg90
Licensed Customer
Posts: 48
Joined: Sun Jan 17, 2010 12:59 am

What i have hear is that the should slightly intersect.
Just enough to get the right effect, it has worked for me so itæs worth a try.
Win 7 64-Bit, Q6600, Geforce 9800 GTX+, 4 GB RAM
User avatar
Voidmonster
Licensed Customer
Posts: 54
Joined: Thu Apr 08, 2010 6:20 am
Location: Oceanside, CA
Contact:

Further experiments...

My time lately has been split between writing (my ostensible career at the moment), sculpting in ZBrush and playing with Octane. Octane has gotten the short end of the stick for a few days while I was doing other things, but now I'm back and working on the liquid-in-glass thing.

I'm happy to report A Discovery.

If you take a look at the attached picture (about an hour of render time), you'll see that the glass on the left is Very Messed Up. It uses simple overlapping geometry. A glass volume, completely sealed and a similarly sealed liquid volume. That doesn't work. The other two are two very simple variations. The glass in the middle uses the exact technique PhilBo described. It works nicely. The glass on the far right had a 1mm gap between the open fluid model and the single-plane meniscus/surface model. Not really any appreciable difference between the gapped and ungapped model.

However, setting this up, I kept getting annoying artifacts in the glass. The only way to make it render correctly was to flip the polygons on the liquid model (so the normals face inward).

So, to be clear, when using PhilBo's glass + liquid technique, it is important that the surface normals of the liquid (but not the meniscus/top layer) face inward.

The full glass image hasn't sufficiently resolved to be certain yet, but it looks like this trick fixed the problem I was having at the beginning of this thread too. I'll post an update later, when it's done rendering.
Attachments
On the left: overlapping geometry. In the middle, PhilBo's method, on the right, PhilBo's method with a 1mm gap between the monoplanar meniscus geometry and the open liquid volume.
On the left: overlapping geometry. In the middle, PhilBo's method, on the right, PhilBo's method with a 1mm gap between the monoplanar meniscus geometry and the open liquid volume.
-Zak Jarvis
Rendering with Phenom X4 9550 @ 2.20Ghz, 8 gigs of ram, Win7 64bit, GeForce GTX 260 @ 576MHz, 216 core
Stromberg90
Licensed Customer
Posts: 48
Joined: Sun Jan 17, 2010 12:59 am

The new renders is interesting, i did one test myself with the meshes intersecting and didnt get any artifacts...
So i dont know what the problem is, and i have so many diffrent versions about this that i dont know wich one is true either :P

But please keep on testing :)
Win 7 64-Bit, Q6600, Geforce 9800 GTX+, 4 GB RAM
Post Reply

Return to “Works In Progress”