KeyShot Forum

Share => Materials and Textures => Topic started by: andrea25 on October 13, 2016, 12:49:22 pm

Title: Coffee Foam Effect
Post by: andrea25 on October 13, 2016, 12:49:22 pm
Hi, i'm trying to create a realistic cup of coffee, like this.
(http://www.innerfognews.com/wp-content/uploads/2015/11/61VwmLL3upL._SL1500_.jpg)
My problem is about the foam above the liquid, do you have any suggestion?
Thanks a lot
Title: Re: Coffee Foam Effect
Post by: MWo on October 13, 2016, 11:41:33 pm
I would try some steps:
(step forward to 34:50 min)

share your results of your scene

hope that helps to start

Title: Re: Coffee Foam Effect
Post by: andrea25 on October 14, 2016, 03:01:16 am
Thank you for your suggestions, i'll try as soon as possible then i'll post the result.
Title: Re: Coffee Foam Effect
Post by: andrea25 on October 14, 2016, 03:15:29 pm
Hi, here i am
I have tried to follow the suggestions of MWo, and this is the result, retouched in photoshop.
What do you think? This is the perspective of the image, the coffee cup is a secondary element of my scene.

Title: Re: Coffee Foam Effect
Post by: LayC42 on October 14, 2016, 09:39:18 pm
This test result looks good. The coffee liquid with this color gradient looks realistic.
Can you show a detail shot from the foam? And next thing will be the glass material. You can play with the IOR and try solid glass and dialectricum.

Hope you have such a good coffee while work on this scene.
Title: Re: Coffee Foam Effect
Post by: Finema on October 15, 2016, 12:19:43 am
Hi,
You can use an image for the foam.
You can see the result in my test with a low def image founded on google.
Also, you liquid model is not correct. See here for a better render : https://www.keyshot.com/resources/downloads/scenes/  > Liquid in glass
Title: Re: Coffee Foam Effect
Post by: andrea25 on October 15, 2016, 12:35:03 am
thank you for the answers.
@LayC42 Yes, the glass material is not realistic, i'll try to change ior and other parameters.
@Finema Wow, impressive! Can you show me your setting about liquid and foam materials?They are amazing
Title: Re: Coffee Foam Effect
Post by: Finema on October 15, 2016, 04:44:18 am
I played with the cup of coffee and i have fun with it :D  Here a mini scene.
It could be improved. For example : add an opacity map on the edge foam texture.
It's open to creative render... and it's my two cents..  ;)
Title: Re: Coffee Foam Effect
Post by: Finema on October 15, 2016, 04:48:59 am
@Finema Wow, impressive! Can you show me your setting about liquid and foam materials?They are amazing
In attachment the materials settings
Title: Re: Coffee Foam Effect
Post by: andrea25 on October 15, 2016, 07:47:39 am
Thank you Finema!
I have worked on my model and materials, this is the result
What do you think?
Title: Re: Coffee Foam Effect
Post by: Finema on October 15, 2016, 08:04:30 am
yes !  it's better
1 - your liquid coffee is too dark or not enough transparent
Play also with environment to add light in coffee texture
2 - what about the edge of the glass ? we can see the cream texture  :o
Title: Re: Coffee Foam Effect
Post by: andrea25 on October 15, 2016, 09:03:56 am
yes !  it's better
1 - your liquid coffee is too dark or not enough transparent
Play also with environment to add light in coffee texture
2 - what about the edge of the glass ? we can see the cream texture  :o
1. Yes, now i'm trying to improve it
2. I don't know how solve it, the color on the edge of glass is some kind of reflection of the foam, maybe i can fix it with photoshop, reducing the saturation on the edge, becoming grey.
Title: Re: Coffee Foam Effect
Post by: Finema on October 15, 2016, 09:12:58 am
can you show us the model 3D ?
glass + liquid + foam
Title: Re: Coffee Foam Effect
Post by: Finema on October 15, 2016, 09:34:22 am
i've played with coffee and foam  on some render here > https://www.keyshot.com/forum/index.php?topic=13478.0
The important thing is to separate glass, foam, liquid models. Take a look on the link i've post above about Liquid in glass.
With this technique you can modify coffee in Bourbon ! It's time (19 pm in france)
Title: Re: Coffee Foam Effect
Post by: andrea25 on October 15, 2016, 11:56:08 am
Here is my model, made in Autodesk Alias AutoStudio
The liquid is between the external surface of glass and the inner one
The last image is the render retouched in photoshop to hide the reflection on the edge of the cup
Title: Re: Coffee Foam Effect
Post by: LayC42 on October 15, 2016, 12:35:54 pm
To create the opacity map for the foam you can solve this with the material graph. A color gradient with radial mapping in the opacity channel would be my choice.
Maybe a shared scene will be improved by some users?
Title: Re: Coffee Foam Effect
Post by: Finema on October 15, 2016, 11:34:04 pm
Here is my model, made in Autodesk Alias AutoStudio
The liquid is between the external surface of glass and the inner one
The last image is the render retouched in photoshop to hide the reflection on the edge of the cup
Andrea
Your glass model is not OK.
In attachment, i join a cup (.obj). See how it is cut out.
Title: Re: Coffee Foam Effect
Post by: Finema on October 16, 2016, 12:33:56 am
To create the opacity map for the foam you can solve this with the material graph. A color gradient with radial mapping in the opacity channel would be my choice.
Maybe a shared scene will be improved by some users?

To blur the edges of the foam, I've used Occlusion in Opacity map.