Vue to Unity Terrain Sync

Hi all

been toying with ways to sync terrain genrerated in Vue

Attached you will find a python script for vue that will export a terrain as a binary file, also a Unity c# script to rebuild it in Unity (use the context menu update terrain)

Although the Unity paint terrain is very cool, Vue has some added functionality when it comes to creating terrains, eg Erode, Peaks, Plateau etc

It also has an ecosystem system.

Also
By creating a vue material with flat Red, green, blue, for either slope or height
A pretty good start on splat maps can be rendered.

Tree and plants from vue also work very well like this :

export plants from vue at the default rez (will come out as boxy)
then sub diving in lightwave
then using TriGon lightwave plugin to convert tris to quads
then using plg_Simplify_Mesh, also a lightwave plugin
set at reduction level to 0.1
Plants come down to the unitree polycount spec
while retaining UVs

the trick with vue textures is to export them long and tall (512x8192)
as exporting square textures squashes the Leaf and bark so as to be un-usable.

then in your image editor chop the combined leaf and bark texture
(leave top, bark bottom)
into two seperate textures.)
in lightwave separate trunk and leaves into separate surfaces
then
for the leaves double the Y scale on the UVs (I use lightwave transform UVs)
the same number of times as the leaves are tiled on the texture.
the texture res can then by optimized
export as fbx and presto perfect plants for unity.

The only thing left is to sync the vue ecosystem instance data
with the Unity terrain trees, plants and detail meshes.

This is not a problem, as long as OTEE give us scripting access to the terrain
instances.

Perhaps for now a binary template spec for the terrain.asset binary can provided by OTEE, so we can hack it with BinaryReader/Writer

54966–1999–$vue2unityscripts_140.zip (1.95 KB)

Cool, I’ll give this a try. Thanks :slight_smile: