So i’m following a tutorial for Unity which requires creating a height map using an image editor. As you know, Unity exports the terrain height map as a .raw file, and requires a .raw file to be imported as well. I’ve been trying for the past 90 minutes to get this to work. Here’s what I tried so far… (I am using Mac OSX)
-
First, I tried importing it into Gimp. This did not work, because Gimp does not appear to support .raw files.
-
I downloaded UFRaw plugin for Gimp. The plugin was a zip file which contained 75 files, mostly C scripts. According to the instructions for installing Gimp plugins (here: GIMP/Installing Plugins - Wikibooks, open books for an open world) I simply copy those files to the /Applications/GIMP.app/Contents/Resources/share/gimp/2.0/scripts/ directory. I did so and restarted Gimp, but it still did not accept terrain.raw.
-
I downloaded RawTherapee and installed it. RawTherapee, for whatever reason, does not recognize the terrain.raw file. I’ve tried right clicking the file and using “open with” and selecting RawTherapee, and I’ve also tried navigating to the file within RawTherapee - in both cases, the file is not recognized.
-
I tried converting the .raw file to a .jpeg via https://raw.pics.io/ but the website did not recognize terrain.raw.
-
I downloaded and installed Fiji, which finally opened terrain.raw. I exported it as a .tiff file so that I could open it in Gimp and create a height map - finally some success! But then, of course, Gimp could not save it as a .raw, only .data. I tried exporting the .data and importing that into Unity, no success. I even tried re-naming it to a .raw (just to see if it was an arbitrary naming issue), but when I imported that into Unity it came out flat, without any height.
So I’m not usually one to go and ask questions online before I’ve tried a lot, but I feel like I’ve done my due diligence on this one. Can someone tell me how you can edit and import a height map into Unity without Photoshop? At this point I feel like I’ve tried every suggestion I’ve read on the web - using Gimp, using a Gimp plugin, using a raw-to-tiff converter, using an online converter, etc. Nothing seems to be working.
Any help would be greatly appreciated!