Unity 3D Terrain from Blender ANT Landscape Generator
Terrains in Unity may be generated using Blender's ANT Landscape Generator.
Install ANT Landscape Generator if not already in Blender.
In Blender, select File » User Preferences…:
Under the Addons group, select the Install Addon… button.
Navigate to the add_mesh_ant_landscape.py script, and with the script selected press the Install Addon… button.
Once installed, enable the add-on by placing a check in the Add Mesh: ANT Landscape group.
With a new scene ready in Blender, the default camera and lamp may be removed. Only the terrain is needed for import to Unity.
Create a landscape in Blender by selecting Add » Mesh » Landscape.
Blender will generate a 3D mesh of a landscape.
Landscape parameters may be tuned to different terrains.
With the landscacpe selected in Blender, export the mesh to a Wavefront OBJ file by selecting File » Export » Wavefront (.obj).
In unity, create a new terrain by selecting Terrain » Create Terrain
Import the landscape Wavefront OBJ file.
Drag the default mesh from the terrain OBJ file, and drop it on the Unity terrain.
This will result in the mesh as a child of the Terrain hierarchy.
To apply to the imported landscape mesh to the terrain object in Unity, use the Object2Terrain.js script.
Under the Unity project assets, create an Editor folder, and place the Object2Terrain.js script in the folder.
Now with the default mesh of the terrain selected in the hierarchy, select Terrain » Object to Terrain.
Unity terrain object now reflects the imported landscape mesh from Blender.
Children of the Unity may now be deleted from the terrain object.
- Blender ANT Landscape Generator – add_mesh_ant_landscape.py
- Unity Object to Terrain – Object2Terrain.js
Blender ANT Landscape Generator – add_mesh_ant_landscape.py
Unity Object to Terrain – Object2Terrain.js