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
0
Question by waterdog · Sep 27, 2013 at 07:40 AM · importheightmapphotoshopraw1 frame

Is there a definitive explanation for generating and importing raw heightmaps?

I have been trying to update the heightmap on one of my terrains for hours. It is the first time I have tried to do this since upgrading from unity 3.5.7 to 4.2.1. The method I used to generate heightmaps using 3.5.7 doesn't seem to create something that will work under 4.2.1. My basic process is I have a perl script that extracts a numeric raster of elevation values from a large elevation data set, then, in Matlab I use those values to create a gray scale image of the data. I then pull that image into Photoshop, scale it to the proper size for the terrain, flip it as necessary for raw import to unity, and save in raw format. Previously this worked fine. The generated images look just like they always have. But, now instead of getting sizes in the import window they are reported as width and height of 1, though the files are not near 0 size and can be read back into Photoshop.

I have seen mentions of defining maps to be x+1, z+1 relative to the terrain x, z size. This didn't seem necessary under 3.5.7 and I just defined the maps to be the same size as the terrain. I have tried the +1 sizes with 4.2.1 and when I import the map I get an error that an array is not large enough.

I've hit about every permutation I can think of in trying to import a new heightmap, (including trying to save the raw file out in a program other than Photoshop, XnView (which BTW worked under 3.5.7)). But, no joy. Any heightmap pointers would be much appreciated!

Comment
Add comment · Show 1
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 Fattie · Sep 27, 2013 at 01:06 PM 0
Share

"definitive explanation" .. answer is sadly probably "No :/ "

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by waterdog · Sep 27, 2013 at 08:52 AM

OK...answering my own question again... Though this isn't really an answer, just a functional solution...;^) I do not understand why it works, and really would appreciate someone who knows what's going on with heightmaps chiming in...please?!!

Anyway, I tried setting the width and height in the raw import window from their reported sizes of 1 to the size of the image the raw file was generated from (1024 x 512) and it imported, except it was something like a repeat of 4 instances of the heightmap checkerboarded on the terrain. I looked back at what happened with the heightmaps under 3.5.7 and they did report sizes other than 1, but, for a heightmap generated from a 1024 x 512 image, they report a size of 512 x 512. So, I tried setting the sizes in the import window to 512 x 512 and my originally 1024 x 512 image based raw image imported properly onto my 1024 x 512 terrain.

I haven't a clue... I'm too tired to care...;^)

Anyone who can come up with an explanation, I really would like to see it!

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

16 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

Related Questions

Cant Import Photoshop RAW 0 Answers

How can I import terrain from DXF? 1 Answer

Heightmaps not importing properly 0 Answers

Photoshop heightmap chunks not lining up 0 Answers

Imported image quality; changed color? 2 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