Fluid Caustic Volume Shader Setup for Maya 2014

Fluid Caustic Volume Shader Setup for Maya 2014

david allen, updated almost 12 years ago 59,361 views Rating:
(4 ratings)
Page 5 of 8

6. Water material settings

In this section, we’re only setting up the base color, refraction, and raytrace options for water. The main settings for caustics effects are in the sections following this one.

  1. Select “waterSurface_pPlane1”, right-click and hold to bring up the context-sensitive menu and assign a new Blinn material

  2. Select the material tab labeled “blinn1” and rename it to “waterSurface_blinn1"

  3. Set both the “Color” and “Transparency” to a light Blue

  4. Scroll down to “Raytrace Options”, enable “Refractions” and set “Refractive Index = 1.350”  

NOTE: If you have any interest in Chromatic Aberration for your refractions, this is where it would be enabled. We don’t use it for this tutorial because it doesn’t seem to have any effect on photon colors, and has unpredictable effects on the color of the water surface.

Test render 3

At this point, you can see the light cast on the inside of the environment cube above being refracted through the water surface. But notice that  the environment below the water is still very dark.


7. Water displacement shader — ocean

In order to distor the surface of the water to look like waves, we need to create an ocean displacement shader.

  1. Select the “blinn1SG” shader group tab in the Attribute Editor (CTRL + A), and rename to “waterSurface_blinn1SG”

  2. Press the checkered icon next to the “Displacement mat.” channel in the “Shading Group Attributes” rollout

  3. Select “Ocean” from the list of materials to create the new displacement map

  4. Rename the displacement shader to “waterSurface_displacementShader1”

        

  5. Select the “ocean1”  texture tab and rename it “waterSurface_ocean1”

  6. Scroll down to “Wave Height” and change the “Selected Value”  to “0.400”

     

  7. If you want to animate the water, Right Click on the “Time”attribute and select “Create new expression” and enter “waterSurface_ocean1.time = time/2;”

  8. To displace the water plane, return to the scene window and select “waterSurface_pPlane1”, then select “Modify > Convert > Displacement to Polygons with History”

Test Render 4

Now the surface of the water appears to have waves, and the materials are in place to start casting photons from the area light.



Comments

  • david allen · 2014-05-14
    This is my first tutorial on CC, and look forward to hearing everyone's feedback!
  • david allen · 2014-05-20
    The setup file has been approved! Please use the link in the tutorial from now on — http://www.creativecrash.com/maya/downloads/scene-files/c/causticsautodesk2014x64_02-0-0_scenesetup-ma  (I'll be removing the file from gDrive soon). Thanks!
  • david allen · 2014-05-29
    Wow. 1,345 views already. Has anyone had the chance to try it yet? Would love to hear your thoughts.
  • tomkinsart · 2015-02-05
    Dude wow! That was so awesome thanks so much!!! So clear. Only thing that got me was on page 6 the scattering took me a while to realise that number was a light/darkness value. Thanks again!
  • david allen · 2015-02-05
    My pleasure! I added some comments on pp. 6–7 which should explain that better to the next person who reads it. Thanks for the feedback!
  • FINALCUT123 · 2015-03-05
    goood vey good
  • david allen · 2016-06-05
    My pleasure… and sorry for the slow response. I've been busy.
Sign in