KeyShot Forum

Technical discussions => Materials => Topic started by: zooropa on August 15, 2017, 06:42:35 AM

Title: Earbuds - foam
Post by: zooropa on August 15, 2017, 06:42:35 AM
Hi. I am kind of new using KS. Is there anyone experimenting in how to recreate these type of materials?

Please check attachment sample
Title: Re: Earbuds - foam
Post by: Will Gibbons on August 15, 2017, 07:35:51 AM
I'd use a small cellular or noise procedural texture with a fairly aggressive bump height. As for the edges... you could try a custom opacity map, but that's going to be a challenge to explain if you're pretty new to KeyShot.
Title: Re: Earbuds - foam
Post by: zooropa on August 15, 2017, 07:58:33 AM
Thanks Will I really appreciate your help. I will start with your advice (noise). Regarding the opacity map is there anyway I could get more information regarding what you mean?
Thanks so much
Title: Re: Earbuds - foam
Post by: Will Gibbons on August 15, 2017, 08:19:52 AM
Yeah. It's a pretty limiting technique, but you could take this image, turn it into an image matte using Photoshop to make it pure white and black where the area outside of the foam is pure black and the foam is pure white. This would be applied as an opacity mask. It would make anything that's pure black (in your image texture) invisible to the camera, removing a tiny bit of material to make a jagged edge. It won't look perfect, but you could technically get it to work. Of course, it would only work for one view, so it's very limiting in that regard. Also, since we don't offer booleans, if it's a solid piece of geometry, it'll cut through and you won't see any thickness.

You can see where I tested this theory out below and the settings I used.

Hope that gives you an idea!
Title: Re: Earbuds - foam
Post by: zooropa on August 15, 2017, 08:41:27 AM
Thanks Will. I think I am not worried that much about the jagged contour. I can even model it like that.
Maybe I am more worried about the actual pad material in the sense of how to make it foamy. Should I use SSS ?
Thanks a lot.
Title: Re: Earbuds - foam
Post by: Will Gibbons on August 15, 2017, 08:49:51 AM
You could try a translucent material, but it may create some strange results. I just did this with a diffuse material. What's your 3D application? If you can model it... you might be better off using a displacement map before bringing that geometry into KS, then in KS, you could use some translucent material with a very low amount of translucency. Worth a try.
Title: Re: Earbuds - foam
Post by: designgestalt on August 16, 2017, 02:06:13 PM
Hey Will,
that is an awesome trick   !!!!!!!
thanks for sharing !!
cheers
designgestalt
Title: Re: Earbuds - foam
Post by: zooropa on August 17, 2017, 06:04:31 AM
Thanks a lot. I am bringing it from Solidworks. Maybe I can try to re model it in Modo.

Thanks a lot!!!!
Title: Re: Earbuds - foam
Post by: zooropa on August 21, 2017, 07:12:08 AM
I have been experimenting with the 'velvet' material. As the help documents describe 'not an easy approach' .
I am quite pleased with the core of the sphere. If you look at the center the material gets the effect desired.
The noise+bump its nice and the brighter edges give a nice realism to the 'foamy' material. I understand the earpad I attached next to it as a sample its even more 'velvetish', but I am interested in something aiming towards the foam than fabric. The problem that I can not solve is why the material gets flattened on the perimeter of the sphere. I would like the material keep the effect located at the center of the sphere. It might seem that the material behave that way when the camera is facing it 0/90 degress (Camera normal to the sphere front view).
I am wondering if the 'problem' has to do with the shape more than to the material tweaking.

If anyone has experimented with the 'velvet' material I appreciate some advice.
Other doubt that I have is if this material could be ''beaten'' by  jumping to a 'advance' or metalic one.

Thanks a lot!!!

Title: Re: Earbuds - foam
Post by: mattjgerard on August 21, 2017, 12:21:03 PM
just a quick hunch is that is some sort of fresnel effect that changes the appearance as the face of the object turns away from the camera.
Title: Re: Earbuds - foam
Post by: Speedster on August 21, 2017, 01:09:57 PM
I'm facing a similar situation, but mine needs to be a very, very open cell foam, with large cells. You can almost see through it.  I'm not there yet, but my plan is to try to create (in SolidWorks) a series of "nested" offset surfaces, like the famous Russian nesting dolls.  Then treat each to a spattered (or something) opacity map on a base material.  I'm hoping it will look open and have depth, not just an exterior surface.  I'll keep you posted.
Bill G
Title: Re: Earbuds - foam
Post by: zooropa on August 22, 2017, 02:00:05 AM
Regarding the velvet material mmm? Someone use it ? Do you know how to get the effect constant and not fading out towards the borders?

Thanks.
Title: Re: Earbuds - foam
Post by: DriesV on August 22, 2017, 04:32:04 AM
Here is my attempt using Plastic (Cloudy) in KeyShot 7.
The idea is to use a Plastic (Cloudy) base material with a semi-transparent Plastic Label on top.
Plastic (Cloudy) with a Refractive Index of 1 will look like a perfectly uniform, nonspecular "foam". A Plastic Label can be used to add roughness, bump and specular details to the material.

I attached the scene and a sample rendering.

Let me know how this works for you.

Dries
Title: Re: Earbuds - foam
Post by: DriesV on August 22, 2017, 06:37:03 AM
And the same material on a piece of corrugated foam.

Dries
Title: Re: Earbuds - foam
Post by: fario on August 22, 2017, 07:55:17 AM
wow!!!!

Thank you Dries :)
Title: Re: Earbuds - foam
Post by: DMerz III on August 22, 2017, 08:36:11 AM
 :) Wow well done Dries, thanks for showing us this. I'm very excited to get into KS7 and play around with those new shaders.
Title: Re: Earbuds - foam
Post by: zooropa on August 22, 2017, 09:59:05 AM
Dries, this is absolutely fantastic. Hope it works on 6.3 too! Thanks so much for your help.
Title: Re: Earbuds - foam
Post by: DriesV on August 22, 2017, 10:00:34 AM
Quote from: zooropa on August 22, 2017, 09:59:05 AM
Dries, this is absolutely fantastic. Hope it works on 6.3 too! Thanks so much for your help.

This approach does require KeyShot 7, as Plastic (Cloudy) is a new material type, not present in KeyShot 6.

Dries
Title: Re: Earbuds - foam
Post by: Will Gibbons on August 23, 2017, 10:09:39 AM
Quote from: DriesV on August 22, 2017, 10:00:34 AM
Quote from: zooropa on August 22, 2017, 09:59:05 AM
Dries, this is absolutely fantastic. Hope it works on 6.3 too! Thanks so much for your help.

This approach does require KeyShot 7, as Plastic (Cloudy) is a new material type, not present in KeyShot 6.

Dries

Almost certainly requires you to pick your jaw up off the floor after seeing the results. lol.
Title: Re: Earbuds - foam
Post by: Eriond on October 07, 2017, 06:02:07 AM
Now, that is enough evidence for me to sign up for some professional KS training. Wow!
Title: Re: Earbuds - foam
Post by: cjwidd on October 14, 2017, 08:39:42 PM
Damn Dries, really nice work +1