Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Reverend-Speed · Aug 29, 2016 at 11:05 PM · terrainterraindataterraintextureterrain generation

Why does my .raw heightmap create ugly errors when loaded into a terrain?

Hey folks. I'm baffled. After watching this, I've been experimenting and trying to turn this image... http://static.planetminecraft.com/files/resource_media/screenshot/1208/ireland-heightmap_1556937.jpg ...into a photoshop .raw (see attached)... then load that file onto a Terrain in Unity, only to create a spikey disaster: http://i.imgur.com/U8J4hJ9.png link text This is not totally unlike the one that appears in the linked tutorial video (above) at around 16.30 minutes in. Crushing the range with curves removes some of the spikeyness, but I'm still left with what appears to be only a portion of the map rendered in cards of different elevations (cool in a retro sorta way, but not what I'm looking for)... http://i.imgur.com/wS6LJC4.png

I'm importing at Bit 16, at 1025width x 1025height, Byte order of Windows (having exported as IBM), with a terrain size of x512 y128 z512.

Can anybody put me right? Please explain like I'm five.

--Rev

irelandheightmap01.zip (488.6 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Reverend-Speed · Aug 30, 2016 at 09:36 PM

Actually, I think I've solved the problem! The issue is... I'm not entirely sure what I did to solve it. So. Uh:

I was under the impression that Unity required 16Bit Raw files, but... I think at some point in my experimentation, I saved the file as an 8Bit Raw which loaded into Unity mostly without complaint (spikey, but roughly the right shape of the country and with that weird card effect, seen above).

I figured I shouldn't look a gift horse in the mouth and exported the .raw from Unity - and it did so as an 8Bit Raw which opened easily (and later saved with no complaints) in Photoshop, allowing me to use curves to smooth out the hills and mountains a bit.

I'll be honest, I kinda lucked out on this one.

Looking at this, what I think I'll do in future is build a terrain to my required size, add a few arbitrary elevation strokes, save the heightmap from Unity, load that into Photoshop, edit in PS, save and reimport into Unity. Seems like the simplest way to ensure compatibility and performance.

...Though I'd be happy to hear if anybody has a different suggestion/workflow!

--Rev

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

57 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

terrainData.heightmapTexture float value range 2 Answers

SetAlphaMaps Opacity Gradient 0 Answers

Terrain Texture (applied programatically) Disappears When Entering Play Mode 0 Answers

How can I use feature recognition on terrain? 1 Answer

Procedural terrain generation based on color mask 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges