View Full Version : Milk.
mustan9
11-27-2006, 10:25 AM
Milk is driving me crazy.
I've tried the Milk shader done by Jeff. Looks good in his test scene, but also looks like skimmed milk.
I need something that looks like 2% milk.
If I try to do it with the physical material then it tents to be to bright on the surface, and to dark in other parts.
If I try the fast SSS, then it tents to look like cream and not milk.
I can't find any clear documentation on the SSS Physical Material in MR.
Does anyone have a Jade material for Max that I can look at or some tutorials.
Thanks,
hot chip
11-27-2006, 10:58 AM
or you fake the sss for the milk-shader
version a) you use partivolumen-shader
version b) you make a white diffuse color and use selfillumination 20%-40%. The hard edge fake you this falloff (perspektive/parallel) in the opactiy slot.
mustan9
11-27-2006, 11:10 AM
version a) you use partivolumen-shader
Interesting. I'll give that a try. I've never used that shader before any tips on how to use it?
version b) you make a white diffuse color and use selfillumination 20%-40%. The hard edge fake you this falloff (perspektive/parallel) in the opactiy slot.
Thanks, that's what I ended up doing. It still looks to much like cream to me.
The milk also has to poor into the test tube, and the stream of milk will need some sort of subsurface effect to look real. The spot has to look photorealistic. (arg..)
http://img255.imageshack.us/img255/6498/milk01kp3.jpg (http://imageshack.us)
msouza
11-27-2006, 05:59 PM
Hey Mustan...This image is the final image for your milk...I mean...This is the way it will apear on the imagem ? Inside this tube... ?
Looks like a difficult shot. The angle and the recipe don't help at all.
It will be a Still image ? I would like to sugest you to put a little more reflection on the milk, and try to put some transparency mainly on the edge of the milk surface. And a little bit of reflection/specular on this part...
Maybe you need to do a little depression "middle" of the milk model, to fake this edge thing...
It's not an easy shot at all.
JeffPatton
11-27-2006, 08:20 PM
Ironically I was tinkering with that pesky physicalSSS shader last week. I just put some of the settings on my blog here:
http://jeffpatton.cgsociety.org/blog/
One example I posted there was infact milk (not the old one from my website). Just be sure to adjust the settings to whatever scale you're using.
BTW, the milk mesh I used was a 7cm wide cylider object (20 cm tall I believe).
If you're going for realism, then don't forget to add the bubbles. Milk ain't milk without a few bubbles around the meniscus (IMHO).
frun2
11-28-2006, 01:52 AM
Cool Jeffpatton, I had seen your Milk example on your web, in the section Max 7, with another SSS examples, great help.
Itīs increible the second example, the Skin shader, cool.
cheers, :)
Carlos Calvo, Artist.
www.tragnarion.com
mustan9
11-28-2006, 07:55 AM
Looks like a difficult shot. The angle and the recipe don't help at all.
This is just a R&D test to show that I can do realistic milk. The creative director will decide if the milk looks realistic enough to continue onto layout for the rest of the spots.
So I keep hearing things like "Looks like paint!".
It will be a Still image ?
It's a television spot. That's all I can say because of the whole client-thingy-document-thingy-I-signed.
When it's on air I'll post the finished spot. Unless if turns out like crap, then I'll just pretent I didn't work on it :) lol.
mustan9
11-28-2006, 07:56 AM
Ironically I was tinkering with that pesky physicalSSS shader last week. I just put some of the settings on my blog here:
http://jeffpatton.cgsociety.org/blog/
WOW!
Don't know what to say. :).
THANK YOU.
mustan9
11-28-2006, 09:33 AM
BTW, the milk mesh I used was a 7cm wide cylider object (20 cm tall I believe).
What was your system unit setup?
1 unit = 1.0 centimeters
I'm not getting the same results.
JeffPatton
11-28-2006, 09:47 AM
Crap-o-rama, my bad. I just checked the file and I forgot and left inches setup for the actual system units and just fudged up and set the display units to cm...AAArrrrghhhh.
So use 1 unit = 1 inch.
Sorry for the confusion, I've also changed the data on the blog to correct my error.
JeffPatton
11-28-2006, 09:53 AM
And with the conversion, the size of the milk object in my scene is 3.2" in diameter, and 9.4 inches high.
Photon data:
250000 caustic photons
250000 GI photons
Scene info:
In my example, the ground plane doesn't show the caustics or GI because it's set to not receive or generate GI and caustics. So if your object is looking too bright, you may want to ensure that it's not because of too much bounced photon energy.
mustan9
12-01-2006, 10:35 AM
I gave up on the SSS approach for rendering the milk. The milk geometry is going to be around 1 million polygons, and it would take to long to calculate the GI and Photons for SSS.
Still, when I did use the milk shader it didn't look realistic.
So I've started over with just a raytrace material. I'm going to do more work on it once I get my lighting finalized.
Here's what I got so far, and I've attached the shader.
http://img189.imageshack.us/img189/6546/milk02by3.jpg (http://imageshack.us)
If anyone has an improvement please post.
Thanks,
would this help as a starting point ? it uses the SSS shader
Joep
mustan9
12-06-2006, 07:43 AM
I would like to give that a try.
Is that using one of the Fast SSS shader?
Can you post the scene file.
mustan9
12-06-2006, 02:56 PM
Shot taken during the poring of the milk.
http://img77.imageshack.us/img77/1816/image0134tr3.jpg (http://imageshack.us)
I went back to the SSS shader today, and just started from scratch.
I think I'm starting to figure this thing out, but I sure would like to know what the two parameters that take 3 float values do. What is it those parameters control?
Carno
12-31-2006, 07:50 PM
I found a way to use the Fast sss shader for milk renderings.(I am using the Split fast_sss shader and XSI but I think you can do the same in any app)
http://img84.imageshack.us/img84/8959/5vm4.jpg (http://imageshack.us)
more diluted
http://img224.imageshack.us/img224/226/4ye2.jpg (http://imageshack.us)
Here the a link form the XSIbase :
http://www.xsibase.com/forum/index.php?board=12;action=display;threadid=28253;s tart=0
You ll see how I ve used the fast sss setup to simmulate wavelenght dependant scattering for milk.Moreover I ve used a mib_refraction shader and pluged the fast sss shaders in the 'deep material port' of the mib refraction shader.This way you get raytraced glossy refractions for the shallow parts of the milk and after a certain distance the fast sss takes over (with falloff).
The results are not physically accurate and my pics are just quick tests but you get ultra fast renderings without the need for photons etc ;)
Hope this helps
hot chip
01-02-2007, 05:36 AM
thanks for this fast solution. I have this make in 3DS Max and it is work. The Ctrl_Rays Shader is for speed up the fg-solution :o
hier is my shader tree for Max:
http://www.infinity-vision.de/temp/milch_2.JPG
http://www.infinity-vision.de/temp/milch.JPG
here is a link to a german dokumenation: http://forum.german-mentalray-wiki.info/viewtopic.php?t=95
mfg
hot chip
mustan9
01-02-2007, 09:44 AM
Wow! Nice results for fast SSS.
Can you post the material file? :)
hot chip
01-02-2007, 12:52 PM
hi mustan9,
here can you download my milk material: www.infinity-vision.de/service/milk_mat.zip
Carno
01-06-2007, 07:34 PM
One thing I notice in your implementation of my wavelenght dependant sss setup is that your material looks kinda pink, and I cant actually 'see' the effect of wavelenght dependant scattering.Perhaps this is due to your lighting.Could you render some more pics of the shader-test-object under different illumination?
The Red channel generally needs a very big scatter radius the green channel should have small and the Blue should have very very small radius.
Like R=10 G=5 B=3 (these are not the values I used but thats an approximate ratio.
The Blue channel should almost show no scattering and the red channel should exibit a lot.
So you should get an image that shows small color variations.
Cheers:)
Crackerman
01-10-2007, 06:17 AM
Hi this is my first post.
This is a nice tutorial to follow.
http://www.lamrug.org/resources/doc/sss-physical-tutorial.pdf
mustan9
01-19-2007, 08:00 AM
Thank you everyone for your help!
We've finished the spot now, and I can tell you I'm sick of milk!
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.