• Register
Post news RSS Dev Diary 22 – Fun With Craters in Starflight: The Remaking of a Legend

Bang! We've got another dev diary smashing into our world! This time Marvin makes his already amazingly awesome planets even more realistic by adding giant craters you can see from space and even land in to explore, all in his Starflight: The Remaking of a Legend project. Next article will cover a number of improvements! :)

Posted by on

Bang! We've got another dev diary smashing into our world! This time Marvin makes his already amazingly awesome planets even more realistic by adding giant craters you can see from space and even land in to explore, all in his Starflight: The Remaking of a Legend project. Next article will cover a number of improvements! :)

Fun With Craters

(Originally posted by Marvin 21/02/2019 HERE)

Craters

As with many things in life, one thing led to another.

It all started when I decided to revisit my noise generator. I was never 100% satisfied with the one I created because there were some artifacts like the mountains would favor a diagonal orientation. So, I completely re-wrote the noise generator and now it is so much better. The mountains are truly random now with no obvious visual bias.

Then I turned my attention briefly to the hydraulic erosion simulation and a sudden thought occurred to me. Why am I simulating hydraulic erosion on planets that don’t even have an atmosphere? No atmosphere means no rain. No rain means no hydraulic erosion. Whoops.

So, I turned off the hydraulic erosion simulation pass in the planet generator for those planets with no atmosphere. But then it occurred to me… hey… we know what happens to planets with no atmosphere, right? We have a “planet” in our very own backyard with no atmosphere in real life. We call it the Moon. How is the Moon visually different than the Earth? That’s right… craters! Lots and lots of craters.

So, I headed back out into the Internet in search of anything that can help me here. I came across some very good DEM (digital elevation model) maps created by the very nice folks at USGS. Take a look at their very nice website here: Astrogeology.usgs.gov

I grabbed some elevation maps of the Moon, of Mercury, and I think either Ceres or Vesta. I brought them into Photoshop, resized them, and readjusted the values. Here are the three maps after adjustment:

Craters 1

Craters 2

Craters 3

I updated the planet generator to use these maps (a random one is selected for each atmosphere-less planet). And here is an example of how it looks in the game (click on the image to zoom in). The second image shows the terrain vehicle and ship near the rim of a large crater.

Craters

Crater Rim

Also – I made it so that for all other planets with an atmosphere, the amount of rain that falls depends on the atmospheric density. In addition, the velocity of the water moving across the surface when simulating erosion depends on the gravity of the planet. With those changes, the planets in this Starflight remake look less uniform and more varied. Good stuff!

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.