{"id":10112,"date":"2024-07-13T01:09:41","date_gmt":"2024-07-13T05:09:41","guid":{"rendered":"https:\/\/www.sceneri.com\/?post_type=sceneri-pro-docs&p=10112"},"modified":"2024-10-15T19:24:44","modified_gmt":"2024-10-15T23:24:44","slug":"vegetation","status":"publish","type":"sceneri-pro-docs","link":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/materials\/vegetation\/","title":{"rendered":"Vegetation"},"content":{"rendered":"
<\/span><\/div>

The Vegetation Material with Simple Wind Offset feature in the Sceneri Game Engine allows you to simulate the natural movement of plants and foliage in response to wind. By incorporating wind effects into your vegetation materials, you can create a more immersive and dynamic environment, making it feel alive and responsive. This documentation provides a step-by-step guide on setting up vegetation materials with wind offset and explores various use cases to enhance your game\u2019s atmosphere.<\/p>\n

What Is Wind Offset?<\/h5>\n

Wind offset is a technique that adds a subtle, animated displacement to vegetation materials, simulating the swaying and bending of plants as they are affected by wind. This effect can be fine-tuned to create varying levels of movement, from gentle rustling leaves to strong gusts bending branches, allowing you to customize the appearance of your game\u2019s natural environments.<\/p>\n<\/div>

Setting Up Vegetation Material with Wind Offset in Sceneri<\/h5>\n

Step 1: Create a Vegetation Material<\/strong><\/p>\n

    \n
  1. Open the Materials Editor<\/strong> in Sceneri.<\/li>\n
  2. Click on Create New Material<\/strong> and name it (e.g., “WindyGrassMaterial”).<\/li>\n<\/ol>\n

    Step 2: Assign a Texture<\/strong><\/p>\n

      \n
    1. In the Texture Slot<\/strong>, load a texture suitable for vegetation, such as grass, leaves, or shrubs.<\/li>\n
    2. Ensure the texture is designed for realistic foliage appearance.<\/li>\n<\/ol>\n

      Step 3: Enable Wind Offset<\/strong><\/p>\n

        \n
      1. In the material properties, locate the Wind Settings<\/strong> section.<\/li>\n
      2. Toggle on the Enable Wind Offset<\/strong> option.<\/li>\n<\/ol>\n

        Step 4: Configure Wind Parameters<\/strong><\/p>\n

          \n
        1. Wind Strength:<\/strong> Adjust the wind strength to determine how much the vegetation will sway. Higher values create more dramatic movement.<\/li>\n
        2. Wind Speed:<\/strong> Set the speed of the wind effect, controlling how quickly the foliage moves.<\/li>\n
        3. Wind Direction:<\/strong> Choose the direction from which the wind will blow. This can be set to a fixed direction or made dynamic to simulate changing wind conditions.<\/li>\n<\/ol>\n

          Step 5: Apply the Material to Vegetation Objects<\/strong><\/p>\n

            \n
          1. Select the foliage objects in the Viewport<\/strong> where you want to apply the wind effect.<\/li>\n
          2. Drag and drop your vegetation material onto the selected objects to see the wind effect in action.<\/li>\n<\/ol>\n<\/div><\/div><\/div>

            Property<\/p>\n<\/div><\/div><\/div>

            Description<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div>

            <\/div><\/div><\/div>
            Use Cases for Vegetation Material with Wind Offset<\/h5>\n