1. Home
  2. Docs
  3. Ignis
  4. Tutorials
  5. Use Vegetation Studio Pro

Use Vegetation Studio Pro

Example Use Case: You are using Vegetation Studio Pro and want to convert some of the vegetation to flammable objects.

Additional Information:

Since objects can be masked with Vegetation Studio Pro, Ignis can mask instanced objects and generate the same prefab as a flammable object when a flammable object would light up the tree/grass/other object.

If your scene has a huge amount of trees and huge amount of flammable objects, be sure to cull far away/non-important flammable objects and trees to avoid unnecessary checks and draining the performance. Also this will leave burnt gameobjects (Flame already burnt away, whole life cycle completed). So if you have a large scene you should replace these with burnt tree instances or destroy them when the player is farther away.

How to do this:

!!! You cannot use the Run-time spawner method described above under “Vegetation studio non-pro” with a masking method since masking a tree will respawn all run-time spawned prefabs and thus delete and reset the burning flames !!! 

Trees:

  1. Enable a collider for the vegetation object in Vegetation Studio System
  2. Collider can be cube, capsule or other primitive or it can come from prefab.
  1. Configure the flammable object inside the tree/object/etc prefab like normal. 
    1. Grass and foliage – Convert Vegetation To Flammable in this document
    2. Trees and other – Convert A solid object to flammable in this document
  2. Enable Vegetation Studio Pro Compatibility inside FlameEngine.

Grass and foliage:

  1. Enable a collider for the vegetation object in Vegetation Studio System. For this you need to import grass e.g. as an object (We need a collider to detect if we should ignite it!) You most probably want a capsule or a box collider (or “from prefab”).
  1. Tick “Trigger” or Change the collider layer from inside the prefab. We do not want our player to collide with grass.
  2. Configure the flammable object inside the tree/object/etc prefab like normal. (Convert Vegetation To Flammable in this document)
    1. Grass and foliage – Convert Vegetation To Flammable in this document
    2. Trees and other – Convert A solid object to flammable in this document
  3. Enable Vegetation Studio Pro Compatibility inside FlameEngine
  1. Done! Now your vegetation studio items should flame up.
Was this article helpful to you? Yes No

Leave a Reply

Your email address will not be published.