Author Topic: Coffee Foam Effect  (Read 13667 times)

0 Members and 1 Guest are viewing this topic.

Offline andrea25

  • Newbie
  • *
  • Posts: 7
Coffee Foam Effect
« on: October 13, 2016, 12:49:22 pm »
Hi, i'm trying to create a realistic cup of coffee, like this.

My problem is about the foam above the liquid, do you have any suggestion?
Thanks a lot

Offline MWo

  • Hero Member
  • *****
  • Posts: 901
  • Senior Technical Consultant @ INNEO (Germany)
    • german KeyShot page from INNEO Solutions
Re: Coffee Foam Effect
« Reply #1 on: October 13, 2016, 11:41:33 pm »
I would try some steps:
  • create a geometry with the shape of the foam surface
  • use a bitmap texture (google spends tons of them)
  • try this with a translucent material and play with the subsurface scattering values
  • add some transparency with the procedural textures
  • and maybe add some geometry inside the coffee (translucent material as well) with an emissive material to create extra light
  • make sure that all the geometry don't intersect each other (there are some very good tutorials in the learning section
(step forward to 34:50 min)

share your results of your scene

hope that helps to start

« Last Edit: October 13, 2016, 11:43:44 pm by MWo »

Offline andrea25

  • Newbie
  • *
  • Posts: 7
Re: Coffee Foam Effect
« Reply #2 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.

Offline andrea25

  • Newbie
  • *
  • Posts: 7
Re: Coffee Foam Effect
« Reply #3 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.


Offline LayC42

  • Sr. Member
  • ****
  • Posts: 358
  • mostly harmless
Re: Coffee Foam Effect
« Reply #4 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.

Offline Finema

  • Hero Member
  • *****
  • Posts: 821
  • Designer
    • Delavallade Design
Re: Coffee Foam Effect
« Reply #5 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

Offline andrea25

  • Newbie
  • *
  • Posts: 7
Re: Coffee Foam Effect
« Reply #6 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

Offline Finema

  • Hero Member
  • *****
  • Posts: 821
  • Designer
    • Delavallade Design
Re: Coffee Foam Effect
« Reply #7 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..  ;)

Offline Finema

  • Hero Member
  • *****
  • Posts: 821
  • Designer
    • Delavallade Design
Re: Coffee Foam Effect
« Reply #8 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

Offline andrea25

  • Newbie
  • *
  • Posts: 7
Re: Coffee Foam Effect
« Reply #9 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?

Offline Finema

  • Hero Member
  • *****
  • Posts: 821
  • Designer
    • Delavallade Design
Re: Coffee Foam Effect
« Reply #10 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
« Last Edit: October 15, 2016, 08:08:29 am by Finema »

Offline andrea25

  • Newbie
  • *
  • Posts: 7
Re: Coffee Foam Effect
« Reply #11 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.

Offline Finema

  • Hero Member
  • *****
  • Posts: 821
  • Designer
    • Delavallade Design
Re: Coffee Foam Effect
« Reply #12 on: October 15, 2016, 09:12:58 am »
can you show us the model 3D ?
glass + liquid + foam

Offline Finema

  • Hero Member
  • *****
  • Posts: 821
  • Designer
    • Delavallade Design
Re: Coffee Foam Effect
« Reply #13 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)
« Last Edit: October 15, 2016, 09:50:06 am by Finema »

Offline andrea25

  • Newbie
  • *
  • Posts: 7
Re: Coffee Foam Effect
« Reply #14 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
« Last Edit: October 15, 2016, 11:58:46 am by andrea25 »