Procedurally Generating Earth Map

Although I made this thing two years ago, I decided to go back to it and fix/add a few things.

Basically this is a map of the earth that generates as you walk around it. I came up with the idea when I was messing around with python and rendering images; I created a program that could convert an image file into a lua file, with a table containing all of the pixel data, and after seeing some grayscale height maps, I decided to do one of the Earth. I modified my program to turn the RGB components into a percentage of 255, and converted a heightmap. I put it into Roblox, made it so you start at some position, gave you a viewDistance that gets “chunks” of the map, and then renders them with parts.

Today I was looking at it, and it looked really outdated, broken, and skeptical. There was even a person in the comments saying it was a fake. So to fix this, I cleaned up the code, made a GPS that tracks your location on the map, and gave a faster walk speed.

I don’t know about you, but I always like going back to old projects. It felt really good to take a glimpse at my past, at a time when everything I knew about programming was really starting to sink in. Doing things like this is, I believe, what gave me the skills I have today.

Pics:

1 Like