Creating a custom vegetation shader

By
-
Login to Follow
-
Industry
  • Games
  • Design Visualization
Subject
  • Animation
  • General
  • Shading
  • Building Levels
  • Creating Effects
  • Environment
  • Simulation and Effects
  • FBX
Products
  • Stingray
Skill Level
  • Intermediate
Duration
30 min

In part 3 of this tutorial series we will dig into the shader graph to create the vegetation vertex animations and get the leaves moving.


Overview
  1. Create a new project
  2. Import the file we saved in Part 2: large_elm_tree.fbx into a newly created folder content/models/Large_Elm_Tree


  3. Place the imported unit into the scene.


  4. In the Texture Manager, ensure that the leaves base colors and rma materials are all set to DXT5 Compression.


  5. Create (or use) the content/shaders folder then right click and create a new Empty Material named Vegetation_RMAD.


  6. Begin by creating the vegetation portion of the material which will control the vertex animation.


  7. Connect the Vegetation to the Standard Base and construct the color controls. Use a Sample Node for color and the Textcoord0 Node for uv coordinates. Then add Material Variables, Desaturation Node and Multiply Nodes to your graph to control color, saturation and opacity for the leaves.


  8. Add in some emissive controls to help control underleaf shadows.


  9. Add in another sample node for the Normal Map, set properties as below.



  10. Add in another material node for RMAD (Roughness, Metallic, Ambient Occlusion, and Density). Connect the R Channel to Roughness, the G Channel to Metallic, and the B Channel to Ambient Occlusion. Set the RMAD Sample properties as below.



    Note: If you are not using a combined RMAD map, you can connect individual samples to the outputs.

  11. And finally connect the density with an adjustment control using a Material Variable and a Multiply Node.

  12. Select the Standard Base and set as follows in the property editor.

  13. In content/models/Large_Elm_Tree select leaf1_material and apply the newly created vegetation shader. Fill the map inputs with the correct textures. Repeat the same process for Leaf2_Material. Adjust material till leaves move as desired.

Posted By
Tags
  • Stingray
  • Animation
  • General
  • Shading
  • Building Levels
  • Creating Effects
  • Environment
  • Simulation and Effects
  • FBX
0 Comments
To post a comment please login or register
*Save $66 per month on Autodesk's Suggested Retail Price (SRP) when purchasing 1 year term 3ds Max or Maya subscription.