How to Use With Foliage Materials

This page covers how to use the features of Mesh Occlusion Material and integration.

Integrating with a Master/Parent Material:

  1. Go to the master material of your foliage (it's best to do it for all material slots except for imposters).

  2. Near the WPO (World Position Offset) input of the material, right-click to open the node menu and search for "Material Function Call."

  3. Once you have the Material Function Call node, choose either “MF_KomodoWind_Global” or “MF_KomodoWind_Localized,” depending on whether you want the wind intensity to be set globally or locally. Usually, trees use the localized version due to their scale.

  4. Plug the MF_KomodoWind into the WPO input.

  1. Locate the "MPC_GlobalWindSettings" asset in the content browser when using the global version. Ensure each setting is configured correctly. Refer to the section below for detailed explanations of each parameter.

  1. In the material or material instance of your foliage, you can assign a noise texture for the wind pattern. By default, this uses Voronoi noise for all foliage. The asset comes with five noise textures you can use, or you can add your own.

What Each Wind Parameter Does:

  1. Global Wind Direction Guide: Use this as a compass: each direction on the color wheel serves as a coordinate for the wind

  2. Noise Texture Scale: The Noise Texture Scale determines the zoom level of the noise texture. A higher value is recommended; otherwise, the wind can distort the appearance of

  3. Noise Panning Speed: This determines the speed at which the panner moves across the noise texture to repeat

  4. Wind Intensity: How intense the wind will be.

  5. Wind Mesh Offset: Determine the permissible offset of the mesh when using wind. Higher values result in less offset, while lower values allow more offset. If set to 0, the foliage may become invisible

How to modify with blueprints:

  1. To change the parameters of the wind at runtime you can use the material parameter collection.

  2. Use the “Set Vector parameter value” or “Set Scalar Parameter value” nodes to change the wind at runtime.

  3. Ensure the collection you are changing is titled “MPC_GlobalWindSettings

How to use the Localized Wind for Large Foliage:

  1. For large foliage use the localized wind settings not the global to prevent overswaying in an unrealistic manner.

  2. Use it just like the global by plugging it into the WPO output or adding it to other WPO effects.

  1. Now go to the material parameters in your material instance or material parent depending on what you use, and set the wind intensity and wind mesh offset values.

  1. Thats it, you can now locally change the intensity of specific foliage assets, great for large trees like in the demo map.

Last updated