Please or Register to create posts and topics.

WorldTools' Layer Based Placement Filtering For All World Models in Batch Mode

TerraWorld comes with the LAYER BASED FILTERING option in WorldTools where you can setup a layermask to define placement filters on any placed models or surfaces in scene underneath all TerraWorld layers in the world in batch mode. This is in addition to layermask settings for each single layer having own settings for this.

This feature involves casting physics rays to the underlying surfaces to decide on placement based on setup layermask, so it can detect any underlying models with physics on it for placement.

For instance, I have placed a mesh terrain surface in world and by using WorldTools' LAYER BASED FILTERING feature, I can define which layers I want to be placed on this surface instead of the main terrain in scene. This makes it possible to have a placement on the mixture of TW created terrain and hand placed models.

MeshTerrainWithLayer.jpg

The mesh surface has its layer set to "Terra_Geometry" and has a mesh collider on it.

Going to WorldTools component on TerraWorld gameobject's inspector, we head over to the LAYER BASED FILTERING section and from there you can define layermask for all layers from one place.

WorldTools_AllLayers.jpg

As you notice, hand placed mesh surface now has all models placed on top of it.

You can exclude certain layer(s) for placement.

WorldTools_ExcludeLayers.jpg

Or have the placement only happen on certain layer(s).

WorldTools_SelectiveLayers.jpg

I have also done this with a hand placed rock model in scene where I wanted to have the grass and all other layers on it but exclude trees on it:

TWLayer_EditingTools.jpg

As you see, I have selected the tree layer under TerraWorld gameobject and set it to exclude "Terra_Geometry" layer for placement to remove tree models on the rock.

So you can do pretty much anything with these layers to do level designing and have fun with your creations.

Source: https://forum.unity.com/threads/terraworld-automatic-level-designer-for-real-world-locations.784217/page-6#post-7436573