Instant Terra Forum

Instant Terra => Support - How to ... ? => Topic started by: AndyAces on October 08, 2017, 02:34:34 AM

Title: Correct format to export for unity terrains
Post by: AndyAces on October 08, 2017, 02:34:34 AM
Hi there.  What settings should you use to export the terrain to be used in a unity terrain?
Title: Re: Correct format to export for unity terrains
Post by: Antoine Leclere on October 09, 2017, 10:20:15 AM
Hello AndyAces,

To be used in Unity your terrain must have a .raw format.
The raw format will be supported by Instant Terra exporter with the next beta version in a few weeks. [Update 2019 : now available]
Meanwhile you can export your terrain and convert it in .raw using Photoshop.

Antoine
Title: Re: Correct format to export for unity terrains
Post by: superusername on October 09, 2017, 10:35:16 AM
Yo ! Several options:


1. Use the export mesh node to export your terrain as a mesh. Then, simply import the mesh to Unity and put it in the hierarchy !


2. Export the heightmap as a png ; then, in Unity use this script: http://wiki.unity3d.com/index.php?title=HeightmapFromTexture (the way it works is in the link). Nonetheless, there might be a loss of detail because of the conversion ; apart from this potential loss of detail, the terrain might not look as in InstantTerra. And that is normal. Check if the size of the iTerra terrain is the one from Unity's terrain. If not: scale the Unity's terrain to the size it has in InstantTerra from the setting tab of the Unity's terrain. You can also create an iTerra terrain which is the size of the default Unity's terrain, and there will be no problem ! (at least shouldn't !)


3, which is not really a 3. Check the answer above about the raw format ;)


Off the top of my mind, these are the two ways I have. If anyone has other option(s), feel free to share it/them too ! :)


superusername