Author Topic: Correct format to export for unity terrains  (Read 3689 times)

AndyAces

  • New Member
  • *
  • Posts: 4
Hi there.  What settings should you use to export the terrain to be used in a unity terrain?

Antoine Leclere

  • Jr. Member
  • **
  • Posts: 7
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
« Last Edit: June 14, 2019, 05:00:51 PM by Marianne Calva »

superusername

  • New Member
  • *
  • Posts: 1
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