Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 swizzlewizzle · Jul 11, 2017 at 02:38 AM · 2dspritestilemapterrain generation

Creating a 2d RPG terrain tilemap from earth map/imagery?

Hello all.

Simply, I would like to produce a tile-map based terrain/world-map that is directly correlated with real-life terrain from different parts of the earth.

In the game, the far-zoom image used would be a earth image that has been post-processed to fit the game's art style... at near-zoom, traditional tiles would be used for the terrain. Tiles would be created using tag information from open street maps (eg. points on a map marked as being forest would have mainly "forest" tiles and tree cover..)

I've been looking around, but have not been able to find any previous questions here on what sort of algorithms/methods might best be used to create a tile based terrain from an earth map from open street maps. The closest example I have seen thus far is this: http://8bitcity.com/map# .

Some of the challenges i'm thinking about would be how to represent height between tiles correctly, and how the transitions between different terrain types should be handled (especially slopes and such..).

Has anyone seen papers/tutorials/examples of others utilizing real world data to produce tilemap based terrain?

Thanks for your input. :)

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 ShadyProductions · Jul 11, 2017 at 11:34 AM 0
Share

Your best bet is to put the data into a multidimensional array with each index the height of the terrain, that way you can loop over it and render the terrain based on a heightmap. Then you just need another array which will keep data like objects and trees etc and do the same.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by toddisarockstar · Jul 11, 2017 at 03:29 PM

you need to find proper "height map" images. here is one i pulled off a top google result for an example: link text

this one is from Nasa. conveniently all Nasa's images are copywrite free:)

anyways if you dont know what a height map is, its a picture that represents height by how light/dark the pixels in the picture are. So what you could do line up the pixel coordinates in a height map texture to your games tile coordinates and raise there positions based on how dark the color info in the corresponding pixel is.

Actually instead of using "tiles" more common practice would be to raise points in a mesh.

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 swizzlewizzle · Jul 12, 2017 at 01:12 AM 0
Share

Since the design is to go with a 2d tile map, mesh wouldn't be used.. ins$$anonymous$$d, an illusion of 2d would need to be created using shading.

I understand regarding the elevation data, but I think the main thing for me is how the OS$$anonymous$$ data and it's tags could be used to produce a tile map similar to the 8 bit city example I shared. Not sure how OS$$anonymous$$ data could be traversed to produce a data structure that could be used to set up a tile map.

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

124 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 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 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 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 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 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 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 avatar image avatar image avatar image avatar image avatar image

Related Questions

Lines between Tiles when using Tile Palette (2021) 1 Answer

2d tilemap with biomes and perlin noise 1 Answer

How to use the same tilemaps among multiple scenes (e.g. making it a prefab)? 0 Answers

Pixels per unit with tile palette? 1 Answer

Changing Size of Tilemap 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