Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: arrival on 2014-09-09, 00:42:22

Title: plastic foam ?
Post by: arrival on 2014-09-09, 00:42:22
hi @all,
i have some problems to make a good looking material like the yellow "plastic foam"
any ideas to make this with corona ? :-)
(http://cdn.head-fi.org/6/6a/6aae2a36_IMG_0670.jpeg)
Title: Re: plastic foam ?
Post by: CiroC on 2014-09-09, 10:28:30
There was another user trying to replicate something similar:

https://forum.corona-renderer.com/index.php/topic,4789.0.html

It was modeled.
Title: Re: plastic foam ?
Post by: maru on 2014-09-09, 14:21:14
If you need a closeup shot, then I'm afraid this can't be achieved by just material. You will need a very complex mesh or at least some details scattered over a base mesh.
Title: Re: plastic foam ?
Post by: zzubnik on 2014-09-09, 14:23:12
You could make an approximation, then use Corona Scatter to add fibers to the mesh.
Unless it's a close-up, I wouldn't bother though.
Title: Re: plastic foam ?
Post by: Lucutus on 2014-09-09, 16:50:17
Hello,

im the one who already tried doing a foam material.

For me there was only one way to do it because i needed a close up. So my final foam was geometry.

If you are far enough away you could try da displacement map. A cellular or Noise/turbulance could work.

Greetz

Lucutus
Title: Re: plastic foam ?
Post by: rambambulli on 2014-09-11, 08:21:17
hi,

Interesting question. I made a test. I'm not really satisfied but with some tweaking and using SSS (used translucency and refraction because I haven't got the latest build with SSS yet) I think it could be better.

I have to look for a better noise map. This one is the 3ds max own cellular map. The best result was with chips but it needs bubbles instead of chips. i added a detail of  the "foam". I have little experience in noise maps so this could improve a lot.

the model uses an opacity map and I scaled 3 blocks bit smaller than the original one to give it depth. The different blocks have slightly altered noisemaps.


cheers.
Title: Re: plastic foam ?
Post by: arrival on 2014-09-11, 16:46:25
wow...looks very nice.
it is possible to have a look in your mat,or can u please upload it?

thanks :-)
Title: Re: plastic foam ?
Post by: arqrenderz on 2014-09-11, 22:24:36
GREAT material man!
Title: Re: plastic foam ?
Post by: juang3d on 2014-09-11, 22:26:00
indeed, great work.

How do you do it exactly?

Can you try it with a torus form?

Cheers.
Title: Re: plastic foam ?
Post by: rambambulli on 2014-09-13, 21:49:26
Hi Guys,

Good to hear you liked it.

I added a wire frame image to explain how I did it.
I used 3 layers slightly differing in size.

The rest of the images are tests.
Some of them only rendered a few passes. Sorry I didn't have more time (and patience).

Quote
Can you try it with a torus form?

Yes I added a few. And some twisted ones.
Also testing different colors. Every color works differently I noticed. The contrast of the bubbles and the foam is very tricky. The image of the yellow headphones shows the same. In the center of the bright yellow foam you can't see the bubbles. On the edges you see it is foam.

That's why I also added a twisted torus. It look more plausible as the normal torus, even if the normal one has noise added to it.
Except from the strange white haze on the inside of the torus. Must be a wrong reflection/ior/glossiness thing.
The torus twisted with noise has nice edges but I added too little segments so you can see the polys.

I also tested with some noise modifier on the outer layer and with the scale and density of the noise maps.

Again I think this material could get better with SSS and with better a noise maps. (and a lot of tweaking :)).
I found this one. It is a variation on the Perlin Simplex Noise. I bet it will work great. The thing is, it will only work when I write my own noise map :(

http://briansharpe.files.wordpress.com/2012/01/simplexcellularsample.jpg

I'll post/share my max file. I warn you it is a big mess. It sufferd from the tests. Especially the materials.

https://onedrive.live.com/?cid=DA3C93B9FD55B4F0&id=DA3C93B9FD55B4F0%21107 (https://onedrive.live.com/?cid=DA3C93B9FD55B4F0&id=DA3C93B9FD55B4F0%21107)

Have fun with it!


Title: Re: plastic foam ?
Post by: romullus on 2014-09-13, 22:25:35
Looks really nice! As for noise, you can try Bercon noise map, i think it would fit there.
Title: Re: plastic foam ?
Post by: juang3d on 2014-09-13, 23:50:37
Looks awesome.

Tha bad part is that it seems that it's a game with transparency, and this makes teh render pretty slow I'm afraid, I'll try your max when I have som time, probably a great solution for static pictures, but probably a slow solution for animation, anyways I can't think in anything better than this apart from pure modelling.

Congrats on this and cheers!
Title: Re: plastic foam ?
Post by: rambambulli on 2014-09-14, 08:35:13
The material setup is result of a lot of trial&error. There are definitely some items in the setup that can be discarded.  I can try to build up the material from scratch. This setup is very slow. I don't know if SSS is faster.

btw if you model the object from very small bubble structures. you still need something like SSS or translucency. if doubt if this will be faster. the modeling won't, that is for sure :)

I tried berconmaps. but I can't find the right setup for a rounded, hexagon structure.
Title: Re: plastic foam ?
Post by: Lucutus on 2014-09-15, 13:14:17
here i copied rambambulli´s Setup and also used the bump and Displacement shader.

For cutout, bump and displacement i used a standart noise map with a edited output curve.

Title: Re: plastic foam ?
Post by: rambambulli on 2014-09-15, 15:25:00
Great!! This is a big improvement!
Title: Re: plastic foam ?
Post by: arrival on 2014-09-15, 20:57:42
very nice Lucutus :-)
Title: Re: plastic foam ?
Post by: Lucutus on 2014-09-17, 14:06:05
Close up rendering of the last setup.

seems to work for close ups too ;)

Title: Re: plastic foam ?
Post by: maru on 2014-09-17, 14:22:54
Very convincing! So basically it's just a mesh with proper displacement and bump maps?
Title: Re: plastic foam ?
Post by: Lucutus on 2014-09-17, 14:25:49
in this case its four meshes of the torus with different diameters to simulate the depth.
Just like rambambulli described.
I just added a bump and displacement shader.

Greetz

Lucutus
Title: Re: plastic foam ?
Post by: rambambulli on 2014-09-17, 20:57:51
Lucutus, can you share a screenshot of your material setting? I don't know what I'm doing wrong but I can't reproduce it.

thanks
Title: Re: plastic foam ?
Post by: Lucutus on 2014-09-18, 09:35:01
Maybe its the adjustment of the noise map that causes your problems.

Greetz

Lucutus

Title: Re: plastic foam ?
Post by: rambambulli on 2014-09-18, 16:01:23
I did interpret "edited curve"

Quote
standard noise map with a edited output curve.

differently :)

Thanks for sharing!
Title: Re: plastic foam ?
Post by: balu007 on 2022-08-18, 17:29:25
Hello,
Hi,
I'm looking for sponge material and found this thread. Does anyone have the textures? I'm working in C4D, but at least the textures would be useful.
Thanks
Title: Re: plastic foam ?
Post by: maru on 2022-08-26, 16:29:45
Hello,
Hi,
I'm looking for sponge material and found this thread. Does anyone have the textures? I'm working in C4D, but at least the textures would be useful.
Thanks

This thread is 8 years old. I would not expect any HDDs where those textures were stored to be still alive. :)
I think at least some examples here were made with procedural textures though (things like noise/voronoi cells).