KeyShot Forum

Technical discussions => Materials => Topic started by: quigley on November 26, 2010, 06:46:11 AM

Title: We need a proper milky plastic material!
Post by: quigley on November 26, 2010, 06:46:11 AM
I am doing a lot of medical design work right now and the one thing that crops up time and time again is polypropylene - milky translucent to almost clear plastics in shades from white/grey to all colours. I cannot get a decent result in Keyshot.

I had hoped that the new translucent shader would help this but today read that it does not support visibility of objects behind it. So the typical render of a PP container with a liquid or pills, or a syringe showing the plunger inside is impossible to achieve using this material.

I'm not going to do a "this app does this and this one doesn't" routine here but lets just say that I fired up Maxwell after a long layoff and applied the bog standard PP material from their online material library to a pot, added a green liquid and had immediate results (albeit slow). I then fired up Shot - which is not something I do often - and again applied a plastic translucent material and had reasonable results.

This is one big hole in the keyshot material shaders. What (I think) we need is simple:

Translucent Plastic Shader

Controls:

Diffuse colour
Transparency
Surface roughness
Internal roughness (milkiness)

Please. If anyone has managed to do this please post the settings :-)
Title: Re: We need a proper milky plastic material!
Post by: Speedster on November 26, 2010, 06:57:48 AM
+1!  This is a nasty material to emulate, and I also am trying, as most of my work is medical.  I've even played with xray in hopes of finding the combo.  I would agree that plastics is the most needed effort right now as more and more KeyShooters are working with consumer and medical products rather than cars.
Bill G
Title: Re: We need a proper milky plastic material!
Post by: guest84672 on November 26, 2010, 10:49:45 PM
As just posted - the advanced material with advanced settings exposed does that. We will show this in the next webinar, too. In the meantime take a look at the webinar we held in July - recording in the webinar section.
Title: Re: We need a proper milky plastic material!
Post by: ohashi3d on November 27, 2010, 08:14:24 AM
Just trial using "Plastic" material...2 types included (small difference).
Are these enough for you or not!?
Title: Re: We need a proper milky plastic material!
Post by: quigley on November 30, 2010, 05:45:34 AM
Thanks that is not bad. I have fiddled around with the advanced settings materials as well and that gives slightly more control over surface gloss. I'll try and post some BIPs with the results.
Title: Re: We need a proper milky plastic material!
Post by: vickyp on February 11, 2011, 04:36:27 AM
can anyone explain to me how you made this material? I'm not able to get it this milky, with me it's either transparant or not, I'm not getting anything in between.

thanks!
Title: Re: We need a proper milky plastic material!
Post by: guest84672 on February 11, 2011, 08:20:28 AM
Turn on the advanced settings in the Preferences. Then use the Advanced material, and change the roughness transmission to a value that is greater than 0.
Title: Re: We need a proper milky plastic material!
Post by: Oliver on February 11, 2011, 08:42:52 PM
Keyshot is a great product: fast, high quality images, good learning curve and much more, but the material libraries are really letting it down. Any time savings that the easy set-up and fast rendering engine produce are lost by having to sit there and endlessly adjust material properties.

Sure, you've given us lots of controls, lots of buttons and sliders, and if you search the forum one may find a work-around... but that's not how a professional program ought to be run. You've done the hard parts (an amazing set of algorithms, the stability and UI side are coming together, etc.), but why waste resources on silly "vignetting" and "sepia" effects (the most basic image manipulations can do that):

PLEASE invest in the generation of "real" material libraries. For consumer products, incorporating hard and soft plastics, brushed metals... look around your house for inspiration. We need photo realistic materials "on tap"... we know the program can render them!
Title: Re: We need a proper milky plastic material!
Post by: karl.hewson on February 13, 2011, 09:13:46 AM
It's not obvious (well not to me) but it would appear that changing the Specular Transmission settings to something other than black makes plastic materials translucent.
Title: Re: We need a proper milky plastic material!
Post by: vickyp on February 17, 2011, 03:30:50 AM
Hi,

is it maybe possible to make a print screen of the settings? I've put the material on advanced and changed the roughness transmission, but it still doesn't look transparant. It becomes very bright white so there has got to be a setting that I miss. Can anyone help me out here?
Title: Re: We need a proper milky plastic material!
Post by: joshb on March 24, 2011, 12:33:10 PM
Bump.

I'm getting very over-bright white results as well. Seriously, can someone post their settings for a material like this? "Increasing roughness to greater than zero" without further info is a start, but there are a dozen parameters to adjust here...
Title: Re: We need a proper milky plastic material!
Post by: JeffM on March 24, 2011, 06:56:24 PM
Here's a milky white plastic material that you can add to your library and try out: keyshot.com/images/JeffM/milkywhite.zip (http://keyshot.com/images/JeffM/milkywhite.zip)

And here's a BIP file from the image below: keyshot.com/images/JeffM/MilkyWhiteClock.zip (http://keyshot.com/images/JeffM/MilkyWhiteClock.zip)

(http://keyshot.com/images/JeffM/MilkyClock.jpg)

The key elements are the specular transmission, diffuse, diffuse transmission, and roughness settings.

Specular transmission lets the surfaces pass light through like a glass. White would be like a true glass, black is completely opaque, between shows like a semi transparent plastic. I set this at about 75% grey.

You introduce the milkiness with the diffuse and diffuse transmission values. These allow light to diffuse on the surface and through the surface. I set these to about 15-30% grey.

The internal roughness makes the surface look frosted on the inside, and the regular roughness setting controls just the roughness on the outer shell of the part.

This material renders much better in realtime, so use the "realtime mode" in the render settings when doing the final output.

Hope that helps!!!
Title: Re: We need a proper milky plastic material!
Post by: a737 on May 12, 2011, 03:24:28 AM
Hi, thanks for the milky material, but I still cant make it work properly. I have a Polipropilene white translucent layer on top of a dull materia ( 2 mm separation)l, so when I render it it appears black/dirty effect. It still looks a bit translucent, but it is not real nor looks like a pp.

My settings are 4 on the shadow quality in the realtime mode and ray bounces 16.... and I am using the milky material posted above.
Does the environment have anything to do?
Need advice, thanks!
Title: Re: We need a proper milky plastic material!
Post by: justindustrial on May 20, 2011, 06:18:02 AM
I've been struggling with a similar material for a while now. I was trying to achieve a hidden-LED-behind-white PE effect. I tried fine-tuning Brian's(?) LED tutorial to get the effect I was looking for, but could not balance a white diffuse material with translucency. The effect works reasonably well with black plastic, but white fails miserably. The closer I got the material to looking right, the worse the render results were, and for the life of me I could not tweak any sliders to get rid of the speckled effect.
(http://cdn.slashgear.com/wp-content/uploads/2007/08/o2-cocoon-unbox-1.jpg)
(http://justindustrial.ca/LED%20plastic%20settings.JPG)
(http://www.justindustrial.ca/untitled.1307.jpg)
Title: Re: We need a proper milky plastic material!
Post by: guest84672 on May 20, 2011, 07:31:40 AM
Use the realtime render mode for the final render output. That gives you much better results.
Title: Re: We need a proper milky plastic material!
Post by: hiro on May 20, 2011, 06:30:45 PM
Quote from: Thomas Teger on May 20, 2011, 07:31:40 AM
Use the realtime render mode for the final render output. That gives you much better results.

yea, play around with the "bloom" effects, they lights will diffuse more like in the cell phone picture above. Good luck

btw, the milkywhite.mtl looks amazing! Thanks ;)
Title: Re: We need a proper milky plastic material!
Post by: rkulshrestha on May 21, 2011, 11:25:21 AM
Hey even Apple had the same problem with the white iPhone.
Title: Re: We need a proper milky plastic material!
Post by: justindustrial on May 23, 2011, 03:19:40 AM
Thanks Thomas, I left my computer for a while and when I came back the realtime render left me with some pretty impressive results. They are hard to see right away but with a little instinct getting the material settings in the right spot the realtime render eventually produces accurate translucent plastics.
Title: Re: We need a proper milky plastic material!
Post by: sric.id on November 03, 2015, 01:18:12 PM
Hi guys... here is my WIP (Work In Progress) recipe for milky plastic:
(//)