• 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 Smasher27 · Jun 06, 2013 at 02:19 PM · terrainimportheightmap

Importing Heightmaps

I'm trying to import a height map but whenever I do, this happens; alt text

Does anyone know what I'm doing wrong?

terrain_bad.jpg (124.5 kB)
Comment
Add comment · Show 7
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
avatar image Graham-Dunnett ♦♦ · Jun 06, 2013 at 02:35 PM 0
Share

Yeah, you're not telling us what it's supported to look like. ;-) What format is the height-map in? It looks like alternate pixels in the height-map are messed up.

avatar image Smasher27 · Jun 06, 2013 at 03:06 PM 0
Share

alt text

This is the height map I used. I changed it to RAW in photoshop and then used it. When I import it I leave the Depth on 16bit, change the width and height to 513, and Byte order to Windows.

hm.jpg (21.0 kB)
avatar image Graham-Dunnett ♦♦ · Jun 06, 2013 at 03:30 PM 0
Share

I'm not a photoshop expert. I'd expect a 16-bit height map to be 2x513x513 bytes, or around 526k. Is that the size of the file you get? Bear in $$anonymous$$d if you are using a jpg as a source artwork it'll have a lot of compression artifacts. Did you export from PS with a single 16-bit channel?

avatar image Smasher27 · Jun 06, 2013 at 04:19 PM 0
Share

Yes, I saved the image as a .raw file but I didn't see anything there about a 16-bit channel.

avatar image Eric5h5 · Jun 06, 2013 at 04:55 PM 1
Share

Switch the byte order when importing.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by bobbiokafor · Oct 06, 2016 at 11:09 PM

If you get jagged spikes when importing the raw file, switch whatever byte order it selects as default.

Switch your byte order from Windows to Mac.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

17 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

Related Questions

Multiple Cars not working 1 Answer

City Engine - Unity: Terrain mismatch 8 Answers

Issue with importing raw heightmaps (made in photoshop) 5 Answers

Photoshop heightmap chunks not lining up 0 Answers

Import RAW height map not working 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