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

Use Magio with Vegetation Studio Pro

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

Additional Information:

Since objects can be masked with Vegetation Studio Pro, Magio can mask instanced objects and generate the same prefab as a Magio object.

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

Steps:

Trees:

  1. Enable a collider for the vegetation object in Vegetation Studio System
  2. Collider can be a cube, capsule or other primitive or it can come from a prefab.
  1. Convert your tree prefab you intend to use normally to the Magio object using instructions in “Convert Object to use One Effect” or “Convert object to multi-effect Magio Object” or use a splash effect explained in “Create a splash effect”.
  2. Enable Vegetation Studio Pro Compatibility inside MagioEngine.

Grass and foliage:

  1. Enable a collider for the vegetation object in the 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. Convert your tree prefab you intend to use normally to the Magio object using instructions in “Convert Object to use One Effect” or “Convert object to multi-effect Magio Object” or use a splash effect explained in “Create a splash effect”.
  3. Enable Vegetation Studio Pro Compatibility inside MagioEngine.
Was this article helpful to you? Yes No

Leave a Reply

Your email address will not be published. Required fields are marked *