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 bungnoid · Dec 23, 2014 at 09:13 PM · terrainrawelevation

Generate 16bit terrain map from real world elevation data

I'm looking for some tips, advice or even a tutorial on how to generate 16bit terrain height maps from real world elevation data. I'm able to generate 8bit height maps from tiff and jpg I found via google img search and converted to 8bit raw format in gimp. The 8bit versions cause noticeable stepping in the terrain due to the limited brightness levels it can represent. I'm currently using VTBuilder to open and export data from elevation data I sourced here. The supported export formats are -

  • 3TX

  • ArcInfo ASCII Grid

  • BMP

  • ChunkLOD

  • GeoTIFF

  • MSI Planet

  • PNG(16bit greyscale)

  • RAW/INF(MS Flight Sim)

  • RAW(Scaled to 8bit for Unity)

  • STM

  • TIN

  • TerraGen

  • VRML

  • XYZ ASCII

The exportable tile size always seem to be 1201x1201, which means they need to be scaled to a unity terrain compatible resolution (513,1025,2049,etc)

The 16bit PNG seemed promising, so I've been attempting to resize and convert to raw using gimp and imagemagick, but all I've managed to get is messed up spiky terrain of various flavors. I also tried both raw types (which still need to be scaled) but no luck.

There are so many variables and opportunities to get it wrong (resolution, byte order etc.) I was hoping someone who has been down this road already might share some experience.

Thanks!

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

3 Replies

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

Answer by tanoshimi · Dec 23, 2014 at 09:13 PM

I use GDAL.

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 bungnoid · Dec 25, 2014 at 02:30 AM 0
Share

Thanks. That is pretty much what I was after. I noticed that the gdal_translate cmd referenced in the tutorial uses the -scale flag, which for me introduced noticeable terrain stepping. Omitting that flag produced a better result...

avatar image
0

Answer by Gaume · Mar 12, 2016 at 02:53 PM

I use a c# script for reading GeoTiff format, which is the one used for MANY DEM product such ASTER2. Then convert directly to heigthMap then terrain.

Comment
Add comment · Show 2 · 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 UnityGISTech · Feb 10, 2019 at 11:04 PM 1
Share

can you share scripte please ?

avatar image Gaume UnityGISTech · Jun 18, 2020 at 02:40 PM 0
Share

oupss not seen your comment... you can access $$anonymous$$ute X $$anonymous$$ute dem tile (worlwide coverage non filtered Aster) using the following link http://dem.t{0}.tiles.mygeolive.com/Demservice/tile({x},{y}) where {0} is 0-9 value (used for web js client load limitation) where x,y are the $$anonymous$$ute integer index return as 181x181 png projection are web mercator, then it's easy to put standard image tile on top of it, as you already doing in GIS Terrain loader Whole ASTER DE$$anonymous$$ Data are store into Azure cloud. If you want to use it as commercial, let me know, i can bundle the whole service code for on premise installation. Aster data are open sourced. http://dem.t0.tiles.mygeolive.com/Demservice/tile(3736,888) for somewhere in the alps... Js client integration sample http://live2.dotvision.com/live?guid=580178b6-6888-4c8c-ace5-7801d6a82600⟨=us∫ro=true hit 3D button. G.

avatar image
0

Answer by UnityGISTech · Jun 18, 2020 at 12:54 PM

Try "GIS Terrain loader" asset

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Understanding heightmap RAW imports 1 Answer

Convert RGB heightmap to greyscale 2 Answers

Terrain - Raw problem 0 Answers

How to read raw files for custom terrain generation system? 0 Answers

how do i convert images to RAW for unity terrain 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