Heightmap import not working, need help I'm totally new!

I am trying to follow Sams Teach Yourself Unity Game Development Second Edition, but in hour 7 I am unable to import the height map provided.

When I follow the steps my terrain looks like it’s stretched. If I lower the terrain height to 1, I can see the heightmap, but it doesn’t work like the book says it’s supposed to. Also after importing it, below the inspector the message “5/11 clustering 1 jobs” is stuck there.

Attached are the instructions from the book and what my screen looks like. How do I fix this?


please?

@Mike-Geig

Well I found this video on Youtube

And I followed the steps to work with the provided image in Photoshop and I was able to successfully import the heightmap.

  • I had to create a new file in photoshop
  • Copy/paste everything from the provided RAW image
  • Flatten layers
  • Change it to Grayscale mode
  • Save as RAW
  • Import as stated in the book
  • THEN it worked.

Something having to do with interlaced option when saving in Raw screws up Unity?

I just ran into this issue too. I am in hour 4 of Sams Teach Yourself Unity Game Development Third Edition. After reading (from the third edition) the Note which I apparently skimmed on the first readthrough :slight_smile: The solution is in the Byte Order!

This is what happened originally when I imported with a Byte Order of WINDOWS. Not what I expected at all!

To fix, when importing the file select the Byte Order drop down and change to MAC!

Import complete! Beautiful.

Conclusion: The Byte Order property isn’t related to your system, but to the system the heightmap was created in. If it looks wrong, try importing as the other option. Hopefully this helps.

3 Likes