Procedural Generation of Non Earth-like Planets
I am working on a procedurally generated space game, and am looking for some feedback and suggestions on the planet generation. While making earthlike planets is relatively straight forward, It is Non earthlike that has me hung up some. My dream scenario would be to have tables of elements (and their "states" ie: frozen ammonia) and their corresponding color (this is a 2d pixel art game, so I need to know what colors to render). This way I could create truly alien planets with things like frozen ammonia mountains and on an iron oxide ground, with liquid methane oceans and color that appropriately.
The problem is I have no idea where to really get this information. what the hell color IS frozen ammonia?! also, for all I know those elements could be an explosive combination! This seems like a daunting task, but also would be friggin sweet. If anyone has any insight into planetary elements and their colors, Im all ears
secondary question: I use perlin noise to generate terrestrial planets, but what about gas giants? How do you guys recommend generating the "banded" affect of a gas giant atmosphere. Curious to here y'alls thoughts and suggestions!
Posted Sep 29, 2017, 2:22 PM UTC
Second result I found when I searched this subreddit.
Do you have some kind of demo to show? If you don't, before you try to tackle colors and elements and how they combine you should already have the planet generator implemented. You can easily make additions and modifications once you have a solid grasp on regular planet generation.
And just my two cents on your questions, if it's an alien planet who's to say what colors things are and how they react to each other? If you really want it to be accurate then maybe you should take a chemistry course, Khan Academy is a pretty standard resource.
Edit:
Here's some more resources that you should have a firm grasp on depending on how far you want to take it.
Im at work right now (clearly working hard) so I cant link anything currently, but I do have basic earth like generation down the created a nice little rotating 2d planet and has all the data about what each pixel/tile/whatever is (mountain, forest, ocean, shoreline, etc). Im currently reworking my heat distribution so I dont get polar regions at the equator and deserts and the caps.
but I basically have earth like generation down and am looking to expand.
And yes, accuracy is only useful as long as its fun and believable. really as long as certain colors and elements line up with our own solar system (example: methane in gas giants gives bluish-green color like neptune and uranus), then the planets should be believable. the more exotic things can be somewhat flubbed I guess because who is really gonna call BS on them besides my own nerdiness?
Oh good good, sorry for assuming. I'm jaded from all the people on this sub that post but haven't actually made an attempt at what they want.
The links should still be helpful, especially the first one that covers gas giant rendering. I think the people over at r/chemhelp/ would be able to give you more accurate answers on specific elements and their combinations if you couldn't find it with a Google search. The only other option would be to bite the bullet and read a book then make educated guesses yourself.
hehe no worries. Do you think the caring about volatile chemical reactions is going to far? will anyone really give a shit?
I think some people might find it to be a neat easter egg if they're familiar with the subject. I think getting obsessively accurate might distract you from making the game actually fun. Also I believe Starbound has some element interaction with their procedural generation. It would be worth a shot to try and contact the developers and see if they'd give you some insight on their system. I could be wrong about that though.