Page 1 of 4 123 ... LastLast
Results 1 to 15 of 56

Thread: Bath foam surface

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Bath foam surface

    hi all!

    I've been working on a new personal project and it call's for bath foam. After a few days of wrecking my brain how to do it this is what i got. It does need a bit more specular maybe and a few tweaks like that, but what i really need help with is the way to get that shifting of colors in reflection that is so characteristic to bubble foam, like in the example image i've attached. Any idea how to do that? tnx!!

    Click image for larger version. 

Name:	bubblingbathbombs.jpg 
Views:	2912 
Size:	102.9 KB 
ID:	107754
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Pjena_test_v002_edit02.jpg 
Views:	318 
Size:	76.4 KB 
ID:	107753  

  2. #2
    looks nice, but maybe it looks a bit more like wax than foam?

    how about trying hypervoxels or instancing instead? could be better.
    LW vidz   DPont donate   LightWiki   RHiggit   IKBooster   My vidz

  3. #3
    Damn that's pretty good so far! Not too sure what to recommend to make it better though.. maybe a lower Fresnel on the reflection so it's a bit less shiny?

  4. #4
    pass:sword OFF's Avatar
    Join Date
    Feb 2003
    Location
    Russia
    Posts
    763
    "shifting of colors in reflection" - try to use refraction dispersion (Dielectric mat. or Refraction Shader).
    http://soundcloud.com/pass-sword
    from now the kingdom of God is preached, and every effort goes into it

  5. #5
    Motion Design Lead Iaian7's Avatar
    Join Date
    Jan 2006
    Location
    Rochester Hills, MI
    Posts
    783
    Agreed with Tobian, good progress so far! To add specular colouration, I think the easiest solution is to feed a Turbulence texture into a Gradient input, then simply add the desired colours as keys. Pipe the gradient output (which should look like a wild collection of rainbow colours by now) into the colour input of your specular shader of choice, and viola = instant rainbow highlights. Using your existing normals or the DPkit Bump to Normal node to influence individual shaders (such as a secondary gradient node with input set to incidence), you can get a lot fancier, but this is usually where I start.
    John Einselen
    jeinselen.com - case studies
    iaian7.com - lightwave tutorials

  6. #6
    Motion Design Lead Iaian7's Avatar
    Join Date
    Jan 2006
    Location
    Rochester Hills, MI
    Posts
    783

    Quick test render...

    If you use normals instead of geometry to create the illusion of bubbles, you can more easily invert the normals to simulate back-reflections by adding a few additional specular nodes. The attached image uses basic Lightwave procedurals along with DPkit bump to normal conversion to create the look with shading handled by one sub-surface scattering and four specular nodes (2 blinn for primary spec, 2 phong for rainbow colouration). The individual bubbles can be displaced as well, but it's just faster to render it smooth.

    Something to note - the shadowing gets weird when the geometry fades out at minimal distances. I tried double-sided at one point, but it didn't seem to make a difference. May have to try again at some point, cause it's kinda bugging me...
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Foam-001c-_0003.jpg 
Views:	902 
Size:	56.6 KB 
ID:	107771  
    John Einselen
    jeinselen.com - case studies
    iaian7.com - lightwave tutorials

  7. #7
    Amazing!!!

  8. #8
    Motion Design Lead Iaian7's Avatar
    Join Date
    Jan 2006
    Location
    Rochester Hills, MI
    Posts
    783
    Thanks! It was a fun little test to work on. I posted a render to YouTube with a few more details on how the shader was developed, along with a quick image sequence of tests showing the development progress and a turntable of the results.

    http://www.youtube.com/watch?v=QxO9yYgg3Wk
    John Einselen
    jeinselen.com - case studies
    iaian7.com - lightwave tutorials

  9. #9
    Axes grinder- Dongle #99
    Join Date
    Jul 2003
    Location
    Seattle
    Posts
    13,827
    That was an excellent explanation on YouTube, and let me know I'll never be a master of surfacing.

    But many thanks for the lesson!!!
    They only call it 'class warfare' when we fight back.
    Praise to Buddha! #resist
    Chard's Credo-"Documentation is PART of the Interface"
    Film the cops. Always FILM THE COPS. Use this app.

  10. #10
    looks superb! :]

    how would it look with displacement on the big bubbles though?
    i think it should work fine and look good (?)
    LW vidz   DPont donate   LightWiki   RHiggit   IKBooster   My vidz

  11. #11
    Motion Design Lead Iaian7's Avatar
    Join Date
    Jan 2006
    Location
    Rochester Hills, MI
    Posts
    783
    Glad you like it! Bubble displacement certainly looks better in some ways, less so in others - because I'm using inverted normals to shade the back of each bubble, displacing the larger bubbles means the back reflections get...weird. I'll post an example once I get a chance to render one out (currently waiting on some heavy duty video encoding on a different project).
    John Einselen
    jeinselen.com - case studies
    iaian7.com - lightwave tutorials

  12. #12
    Axes grinder- Dongle #99
    Join Date
    Jul 2003
    Location
    Seattle
    Posts
    13,827
    I definitely think with only minimal expansion that would be a great article for 3D World or LightWIKI. Just expand a bit on each sentence for knuckleheads like me (e.g.: must there be actual Thickness for the Thickness node to operate???) and WALLAGH! Article.
    They only call it 'class warfare' when we fight back.
    Praise to Buddha! #resist
    Chard's Credo-"Documentation is PART of the Interface"
    Film the cops. Always FILM THE COPS. Use this app.

  13. #13
    Tnx for the replys guys, and for your inputs!
    Tobian- tnx, ill try that!
    Off- i will give your idea a go as well, tnx!
    Iaian7- tnx a lot for taking time on this one! I love your shader, but i would like to keep the displacement! i'll try your idea with the rainbow gradient! Btw, any chance i could get that surface of yours?
    Tnx again!

  14. #14
    Valiant NewTeKnight Matt's Avatar
    Join Date
    Feb 2003
    Location
    San Antonio, Texas, USA
    Posts
    12,941
    Great shading indeed!
    LightWave UX Designer
    LightWave 3D Group
    A Division of NewTek Inc.
    ______________________________________________
    www.pixsim.co.uk : LightWave Video Tutorials & Tools

    "Beautiful things are easier to use" - Don Norman


  15. #15
    How Old? Really? Aww Heck colkai's Avatar
    Join Date
    Feb 2003
    Location
    Staffordshire
    Posts
    7,784
    Iaian7, very impressive! Would look forward to the tutorial & node setup as mentioned on youtube.
    Gentleshaw Wildlife Centre
    ______________________

    Want to learn to model?
    'Nuff said.

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •