#Exporting a Terrain into a Mesh
1 messages · Page 1 of 1 (latest)
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
does it preserve texture ? GLTF
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
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
deprecated does not work well
but i didn't try the first one ill try
it's deprecrated but I've used it with 6 urp recently for a mesh and it was fine
when i installed it each time i do something it says i have to pay
i want to create tiles to later on do WCF to generate a world
If terrain tools works use that. Looks to be updated too
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
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.
Finally i went with a custom editor tool that apply a noise to a plane and another script that scatter prefabs onto a plane
Great don't forget about optimisation. You can see the terrain component mesh adjustment if you enable wireframe/shaded wireframe
Do you think I can decrease the amount of vertices of a plane ? Probably but how ?
use pro builder or blender to make one
you would need a mesh as you desire
you could generate them at runtime but why bother?
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
So I should hide them at a certain distance and decrease the vertices no?
you can use the lod component to do the changing