Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8395013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:11:47+00:00 2026-06-09T20:11:47+00:00

For a 2d top down tiles-based game I am currently creating, I need to

  • 0

For a 2d top down tiles-based game I am currently creating, I need to parse a .exr file holding heightmap data into my mongodb (or convert it to some other format and then read into the database).

This is basically the representation of my game world, which I crafted through using Terragen.

I figure I need to read out the heightmap data for each pixel and then convert that to a x,y tile in my database.

If I can do this I should be left with a 2d array of tiles with various x,y coordinates and elevations attached to them. From there, I should be able to determine the type of tile for that place in the game world, and continue further.

However, I have no idea how to extract the data from this .exr file and then read it into a 2d geospatially indexed array on my mongoDB database.

I hope someone can help! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:11:48+00:00Added an answer on June 9, 2026 at 8:11 pm

    Ok, I’m going to respond with a partial answer. If anyone has a full answer please do add it and I will update.

    In order to solve this problem, I brought the .exr file into Photoshop and then saved as a 32 bit .tif file. From here, I downloaded GDAL (http://www.gdal.org/) and installed the gdal_translate utility.

    The utility then is able to take the .tif data and section it off into multiple .png files for me.

    Finally, I parse each .png file seperately into my database, adding subsequent data to each “pixel” that I run through as I parse through all the png files.

    End up with a 2 dimensional geospatial array with very exact elevation data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a 2D top-down tile based game in Java. Naturally you can
I am working on a tile based, top-down 2D game with dinamically generated terrain,
Hi I'm currently working on an iPhone game, top-down Strategy RPG (kinda like Fire
So, I'm creating a 2d top-down game in Java. I'm following instructions from Java
Got stuck here: http://jsfiddle.net/UFkg8/ Right now the animation is top-down. What do I need
I'm new to cocos2d and my game situation is below. In top-down shooter game
We are developing a top-down RPG using XNA. Recently we bumped into a setback
I am working on a top-down view 2d game at the moment and I
I am making a top down, rpg-type game - similar to Pokemon, but I
I'm trying to create a top down car game where the camera follows both

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.