Friday, July 8, 2022
HomeGame DevelopmentHow can I import my heightmap to Unity effectively?

How can I import my heightmap to Unity effectively?


I’ve a really prime quality heightmap saved as a .png file. It has dimensions of 10240×10240 pixels. A lot of the map is black, as a result of there being a big ocean.
Additionally, I’m utilizing terrain instruments to create the terrain tiles. I wish to cut up the map to tiles which are 256×256 (totals to 1600 tiles), most of which will probably be discarded (as a result of they are going to be pure black).
All that mentioned, I’m having issues producing the terrain.

The principle downside I’m going through is that I can’t generate the terrain as a result of it’s both too massive (and my laptop runs out of reminiscence) or the information is just not accurately exported for use. Due to that, I both generate no terrain and Unity crashes, or a very flat terrain is generated.


Tried options

  1. I’ve tried utilizing this massive map and splitting it into tiles (40×40) with terrain instruments, however this simply exhausts my laptop’s reminiscence and it crashes.
  2. I’ve tried creating the tiles myself first and utilizing the Batch heightmap import possibility, however it makes use of .RAW recordsdata (for some absurd purpose) – which I can by no means accurately make.
    I’ve tried utilizing FIJI (ImageJ) to transform the pictures from .png to .uncooked however it does appear to work it doesn’t matter what format or setting I take advantage of.
    I do not personal Photoshop to make use of Photoshop uncooked export, so that is not an possibility.

So, what can I do? Is there a approach to make use of my .png slices that I’m not conscious of? Is there one other approach to reliably convert photos to .uncooked recordsdata (moreover Photoshop)? Or is there every other various that I’ve missed?


Edit 1:

I seen that when importing any .uncooked file I additionally get this error:

EndLayoutGroup: BeginLayoutGroup have to be referred to as first.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Customers/bokken/buildslave/unity/construct/Modules/IMGUI/GUIUtility.cs:189)

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments