Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by Engineer817 · Jul 19, 2012 at 10:22 PM · importingheightmaplandscape

Heightmap problems

I've been able to get .raws working in Unity, (16 bit actually) but we've been having some problems. For one, the height map is depicted backwards. Ie flipped on the horizontal axis. I believe its due to how unity reads it. I have gotten a friend to help me out (he owns PS) to flip the image. unfortunately, it did not want to load and continued to crash unity. I asked him to export in mac format and it did the trick for the most part, though there must be out of place pixels due to having spikes on 2 ends of the landscape. It looks kinda good now, and I can smooth them out, though allowing only raws to be imported is limiting in my view. I was wondering if theres a way to import say bmps or something. I as also wondering if the flipping of the data turns it from its current 16 bit to 8 bit (unexceptable due to accuracy we need) Thanks for any advice

Comment
Add comment · Show 3
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 DaveA · Jul 19, 2012 at 10:23 PM 0
Share

Can you post your import code?

avatar image Eric5h5 · Jul 19, 2012 at 10:50 PM 0
Share

There isn't any code since he's talking about importing it in Unity. As for raw being limiting, it's really the only format that does 16-bit grayscale without extra gamma and stuff potentially faffing it up, so there's not much choice. bmp does not do 16-bit grayscale at all.

avatar image DaveA · Jul 19, 2012 at 11:42 PM 0
Share

Ah, ok. I wrote my own importer some time ago for making stuff on-the-fly.

1 Reply

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

Answer by Eric5h5 · Jul 19, 2012 at 10:46 PM

The size must be power of two plus one. i.e., 257x257, 513x513, etc. Flipping won't do anything as long as you save it as 16-bit.

Comment
Add comment · Show 1 · 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
avatar image Simon-O · Jun 22, 2015 at 08:28 PM 0
Share

Unless you want 4097x4097 - Unity complains that the max size is 4096x4096 - so you can't do +1

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

6 People are following this question.

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

Related Questions

How do I fix an error when importing a heightmap? 1 Answer

Import Project from Asset store 6 Answers

Good heightmap tutorials? 0 Answers

How to make a terrain height map without photoshop? 3 Answers

Heightmap Voxel Terrain - HELP! 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