I appreciate all your input, especially on something that should be so simple as coffee!
What’s key here for my scene is that the coffee shader works properly with the sun/sky nodes. I know it’s not great lighting in this test scene, but if it won’t work here, it certainly won’t in my main scene.
TaKIKO, yours is brilliant and a gorgeous render! I just need to do that inside a glass coffee cup, which is being a big pain. I’ve read the help docs extensively but am still having some issues. Here’s my latest render, which incorporates the surface tension rim as well:
I’m having a rough time with the glass refraction silliness, even with all ray depths set at 10 throughout (except for FG depth, obviously). But my coffee shader itself still sucks. I’m looking at a real cup of coffee, in a glass mug, right now on my desk. My Maya-coffee sucks, so I switched to a ceramic mug real quick to tuning the coffee shader specifically using Max distance and the mia_x:
Getting closer, but I still can’t get my coffee “black”. Using gamma correct nodes on all my color swatches too, except for the ceramic, which is pretty basic obviously. The wood texture is just to check reflections/refractions, I know it’s low-res.
I have real italian espresso coffee with a cream on the up!
If I hadn’t just slammed an entire pot of Cheap Black today, my mouth would be watering!
that shader looks great with the ceramic but isn’t he going to need something like a dielectric interface to account for the contact of the two meshes? I haven’t done something like this myself but I thought I read about that. The caustics might go wonky otherwise. I dread the day I have to deal with liquid next to glass.
I believe the mia_x handles all the dielectrics already, but could be wrong? Also, I’m using a full piece of geometry in my scene, not just the top surface. Which isn’t making things any easier.
I’ve done wine in bottles and glasses before, and that turned out great. But this coffee is slayin’ me! I can’t get it dark enough, and can’t get any caustic photons to go through the coffee at all. There’s not a speck of brown or even yellow in my first render here from caustics, and looking at this glass mug on my desk there should be a LOT of caustics going on, especially in black coffee.
I’m not usually emotional about Maya-work, but this whole incident recalls me to my days a long time ago reading Death Metal Poetry…
Most depressing book I’ve ever read, and this coffee project is following the poetry closely! (grins)
Edit: after re-reading the help docs, I find that you need to make a third “air transition” shape between the glass and the coffee geometry… But I’m out of steam for now, and I’ll get back to this tomorrow… I imagine this is what CGbeige was talking about?