- Home /
How do I export a terrain with its painted texture and detailed objects?
I want to know how do I export a terrain AND its texture so that I can use it in a different 3d software so that i can make an animated trailer of my game. I know how to export the terrain as an .obj but only as an .obj without the painted texture and detailed objects with it.
Answer by Jacky2611 · Jul 16, 2016 at 06:15 PM
Either use: https://www.assetstore.unity3d.com/en/#!/content/47276
or try to combine http://wiki.unity3d.com/index.php?title=TerrainObjExporter with something like this https://mattgadient.com/2014/09/28/unity3d-a-free-script-to-convert-a-splatmap-to-a-png/
The splat map doesn't include the textures, just which areas are painted.
Answer by tanoshimi · Jul 16, 2016 at 06:07 PM
Terrains are not simple objects: they have dynamic LODs that adjust vertex density depending on the distance from the observer, a material that blends from control/splat textures to a base texture again based on distance, they use vertex colours to define the way grass bends etc.
Essentially, the way in which a terrain is defined only makes sense inside the context of the Unity engine - it never exists as a simple mesh with a UV-mapped texture draped over the top.
You can of course access all the properties of the TerrainData class to programatically create a similar-looking mesh in, say, FBX format, but it won't strictly be the same.