Jump to content
  • Advertisement
Sign in to follow this  
daedalic

Terrain Data Compression

This topic is 2895 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm storing my terrain data as an array of many ints. Each block of int data will have few to many identical copies scattered throughout the array. What are some good compression algorithms suited for this type of data?

Thanks for the help!

Share this post


Link to post
Share on other sites
Advertisement
You might look into LZMA, which is available from 7-zip's website. zlib would also be okay. Both are best for larger runs of similar data, though.

Another thing you might check is if you really need a full 4-byte int for each point, or if a 2-byte short will do fine. That right there cuts data down in half.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!