#Exporting a Terrain into a Mesh

1 messages · Page 1 of 1 (latest)

sly steppe
#

Hi, I would like to export my terrain into a mesh. (basically i do that yo lower or make heiger the terrain, also paint it)

open socket
#

You either need to write something to produce a mesh from the height data, export the height map + splat map and use that in 3d software like blender or try to use the GLTF package to export it

sly steppe
open socket
#

it probably wont because terrain shaders use splat maps to draw textures

#

why do you need this though, your given reason is hard to understand

remote hinge
#

https://docs.unity3d.com/Packages/com.unity.terrain-tools@2.0/manual/toolbox-getting-started.html
You can export hightmaps and splatmaps using unity's official tool here, otherwise there's this asset I've used and it works pretty well:
https://assetstore.unity.com/packages/tools/terrain/mesh-terrain-editor-free-67758

Get the Mesh Terrain Editor Free package from zwcloud and speed up your game development process. Find this & other Terrain options on the Unity Asset Store.

sly steppe
#

but i didn't try the first one ill try

remote hinge
#

it's deprecrated but I've used it with 6 urp recently for a mesh and it was fine

sly steppe
sly steppe
open socket
#

If terrain tools works use that. Looks to be updated too

remote hinge
#

It's just for heightmaps so if you are to import to to blender you need a tool to construct it from it, but otherwise if it's for another Unity project you can build it from it fine using the same tool

#

But then again you can just package the terrain asset anyway and export that instead

open socket
#

the terrain mesh changes detail based on distance so I presume a raw export with a tool such as GLTF will produce a shit result.

sly steppe
open socket
#

Great don't forget about optimisation. You can see the terrain component mesh adjustment if you enable wireframe/shaded wireframe

sly steppe
open socket
#

use pro builder or blender to make one

sly steppe
#

For LOD

#

I can’t at runtime ?

open socket
#

you would need a mesh as you desire
you could generate them at runtime but why bother?

sly steppe
#

Optimizations ?

#

Basically I’ll have like 250 planes

#

I’ll have a bunch of plane that are prefabs which contains piece of terrain and they will be placed with a WFC

sly steppe
open socket
#

you can use the lod component to do the changing