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 bolibob2 · Nov 09, 2013 at 10:51 AM · terrainresolutionclampheightmaprepeat

[semi-solved] My .raw heigtmap repeats itself?

Hello uniteers. I was trying to make a large terrain for my game, using heightmaps. however, when i imported the heightmap, this happened: alt text

The heightmap is a 16bit .raw file in grayscale, and i made sure the resolution is allright. (dont mind the fact that it's so steep, thats just because i changed the contrast in the heightmap so it's easier to see, the normal map does this too) What happens, is that the heightmap 'repeats' itself four times (2x2), while filling only one quarter of the map.(so one heightmap fills 1/8th of the total terrain. i read somewhere that doubling the resolution would solve it, but, as is written underneath the terrain properties window, it clears out the heightmap. alt text

(note: this isn't the actual heightmap, it only shows what the terrain does)

Ps. The terrain's dimensions were calculated using the size of the heightmap, so they have the same length/with ratio. How can i make my heighmap stretch across the entire terrain? please help me, as i couldn't find any answers online...

wrongmap.gif (206.6 kB)
heigtmaptrouble.gif (112.7 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 tanoshimi · Nov 09, 2013 at 11:20 AM

Heightmaps can be pesky fiddly to get in the correct format for Unity to deal with - what program are you using to create them? I use GIMP, and I've only had success myself with creating 8bit maps, so try that for one thing.

Also, make sure that the image definitely only has one channel - I vaguely remember getting a result similar to yours once when GIMP "helpfully" created an unwanted alpha channel on a greyscale image - removing this fixed the issue.

Comment
Add comment · Show 4 · 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 bolibob2 · Nov 09, 2013 at 12:31 PM 0
Share

Thanks! I tried importing it in 8-bit ins$$anonymous$$d of 16, and now it's full scale, ins$$anonymous$$d of four small ones. for some reason, it still doesn't spread across the whole terrain though... do you know what might cause that?

avatar image tanoshimi · Nov 09, 2013 at 12:56 PM 0
Share

The dimensions are a power of 2 + 1, right? $$anonymous$$g. 513?

avatar image bolibob2 · Nov 10, 2013 at 12:12 PM 0
Share

uhh, i do beleive so, but does it have to be a square map? because then i'm gonna end up with about ten square miles of empty space :P

avatar image tanoshimi · Nov 10, 2013 at 01:39 PM 0
Share

Yes I believe it needs to be square - 513x513, 1025x1025 etc.

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

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

heightmapWidth and heightmapHeight always equal 1 Answer

Why a basic unity terrain has low resolution on the borders? (image included) 1 Answer

Is there any way to rescale a terrain map? 4 Answers

Quick Terrain Sizing Question! 0 Answers

Should Heightmap Resolution be one greater than Detail Resolution? 1 Answer


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