About

A showcase of some shader code for Godot game engine. Currently there are 8 types of planets, also generates black holes, galaxies, stars and asteroids. Each type has a lot of possible variations. Also allows you to export any planets you like in either a png , gif or a spritesheet.

Drag your mouse around the planet to change the lighting.

If you want to use this for yourself you can download the source for the shader code. Lots more options for variations are available in the source. 

This project is completely free to use and will stay free, but donations are very appreciated, thanks!

FAQ

  • Q: On the downloadable version, where do I find the exported files?
  • A: On Windows and Linux, in the same folder the program is. On MacOS under "~/Library/ApplicationSupport/Godot/
  • Q: How do I use spritesheets?
  • A: Determine how many frames you want for an entire rotation. Set this amount of frames for the width (or height). If this exceeds the file width limit, try increasing the other dimension (width/height) for more frames. And of course whatever tool you use to display animations has to support spritesheets.
  • Q: How do I use color import / export
  • A: Paste in a list of html color codes separated by newlines. Keep in mind that using the copy/paste from clipboard requires browser permissions. Also clipboard access seems to be disabled in firefox.
  • Feel free to ask me anything if something isn't clear, cheers!

Source

Source on Github: https://github.com/Deep-Fold/PixelPlanets 

Available under MIT license. Credit is appreciated, but not required.

Updated 28 days ago
StatusReleased
CategoryAssets
Rating
Rated 5.0 out of 5 stars
(509 total ratings)
AuthorDeep-Fold
Made withGodot
Tags2D, Generator, Godot, Pixel Art, planet, planets, Shaders, Space
Code licenseMIT License

Download

Download NowName your own price

Click download now to get access to the following files:

PixelPlanetsWindows.exe 36 MB
PixelPlanetsLinux.x86_64 38 MB
PixelPlanetsSource.zip 849 kB

Development log

View all posts

Comments

Log in with itch.io to leave a comment.

Viewing most recent comments 1 to 40 of 302 · Next page · Last page
(+1)

This is awesome! But how do I change the BG color?

Thank you! There is no background color or anything like that, the sprites all have a transparent background.

(+1)

This is so incredibly amazing. I am quite new to coding but I hope to use this soon. 

Thank you so much :)

Thank you, glad you enjoy! I hope it will be useful for you.

(+1)

Spectacular. Thank you for making this - it's exactly what I needed. 

Would it be possible to disable the lighting simulation somehow?

(+1)

Nevermind! found my own answer - some of the colors are used as "lighting effects".  Thank you for this amazing tool

Also, you can change/move the lighting with your mouse if you're on desktop.

(+1)

I used this yet again on a game!
https://heyitsgus.itch.io/2heck2divers

Amazing product. I've gotten quite a few people in my class to download.

That's awesome! Nice job on another game, and glad you came back for more. Cheers to everyone in your class lol.

(+1)

cool, love it

Glad you like it!

(+2)

Thank you! I’m using this generator in one of my games.

Awesome! Would love to see the game when it's done.

(1 edit) (+1)

https://typealpha.itch.io/mergeplanets

I’ve released the game, hope you enjoy it

Nice job, I love suika. Fun game!

(+1)

Really cool project! Well done.

(+1)

Thank you!

(+1)

could be great for a 4x/grand strategy game with procedural planets

That would be awesome! Could really have a basically infinite world that way.

(+2)

I almost made Earth

Nice!

(+2)

Hello! its a very good project! but i have a question....can i change the resolution of png export?

Not in this program. They are always in a 1x1 ratio for use in games with pixel art. But it's very easy to scale them up using basically any image editing program.

(1 edit) (+2)

Amazing tool, thank you. Is there any way to export a gif with the same smooth rotation as in the editor? I want to use this in a html project, but the jagged animation looks kinda scuffed 


Edit:

i just found the perfect gif in the changelog for gif export, what are the export settings for the red planet on the left?

Thank you! To get a smoother rotation you just have to use more frames. I don't remember what settings I used for that specific gif. If you want 60fps for example, you just have to use 60 times more frames than seconds.

As an example, with a 4 second gif you should use 240 frames. (Looks pretty close to that red planet gif.)

(+1)

Hello there! I love your proejct! <3 is there a port for godot 4 avalible?

Hey, thank you! Not yet, but I'm working on it and it should be ready pretty soon.

(+1)

I Think I Just Broke The Game

(+1)

This is so damn cool! Kudos to you for creating it and giving it away for us to use it.

Thank you! You're very welcome, hope it's useful to you.

(+1)

Is it possible to get a version that generates planets in the background, for example, by running the application with certain parameters from java code? The type of planet is indicated and both the seed and the color are randomized, finally export the file as a gif for example. I have no knowledge of GSLS or GDScript, sorry about that...

As far as I know, there isn't really a way to have Java directly communicate with Gdscript, so I don't think that's gonna work unfortunately. Best work around I can think of is to have a java application do button presses on the planet generator app.

(+1)

This is awesome, thank you!
You actually inspired me enough to commit to making a game. These look astounding, love it!

Oh that's really awesome! Let me know how it goes, would love to see your game when you finish it.

(+1)

thank you so much for this great software

You're welcome! Glad it can help.

(+1)

Damn, this is awesome good work

Thanks! Glad you like it.

(+1)

This is a masterpiece

Haha thanks. Glad you like it that much!

(+1)

I agree. Great work Deep Fold.

(1 edit)

Thank you!

(+1)

Hello, I love this tool! I wanted to let you know that I'm using it in a console game I made: https://github.com/ricott1/rebels-in-the-sky (you are credited in the README :)  )

Oh, I really like the idea of a console game, I'll definitely keep an eye out. Thanks for the credit and glad you like it!

(+1)

That's really good

Glad you like it!

(+1)

yes I wouod want to use it for Unity!

I see. This is a Godot project, but perhaps you could use the shaders in Unity, not sure. Also there is a unity port that you can find in the description of the project.

yes 

(+1)

this looks so good, i love the different options you can play around wit

Thank you!

(2 edits) (+1)

Hi, I'm currently making a game in GameMaker, but I am not sure how to put the files into there since it's not GML. I tried watching videos on making GitHub repos, but I figured those would be useless in this case anyway. Please, if you know anyway to do this, like a GameMaker port of this, or if you think you can assist me, reply in the comments. Thanks  :) (Also, I don't want the whole thing, I just want to be able to call a script which creates a spritesheet for a given planet type)

I'm not really aware of any way to convert an entire godot project to gamemaker. You're probably gonna have to manually remake the entire thing.
However converting the shaders to gamemaker might be easier if that also works for you. I think gamemaker allows GLSL shaders, and these shaders are written in the godot version of GLSL.

(2 edits) (+1)

Thanks for letting me know. I did not know that gamemaker supports GLSL shaders, nor am I sure of how to covert it, but I will look into it. Thanks once again, I love the work you do and games you make. (P.S, the game is infinitely generating, meaning if I didn't port this , I would have to download a lot of planets of each type by hand, which is why I was wondering)

:)

I haven't used gamemaker, so I don't know myself how shaders work in that. But from some searching it looks like they do support glsl.
Yeah I think if you want infinite planets, using the shaders directly is your best bet. That way you also have all the control over the shader settings and stuff. Glad you like my stuff, good luck with the game!

(+5)

Hey, does anyone here by any chance knows a seed that generates Earth (or as close to it as possible)?

theoretically speaking, it should be possible with enough tweaking on the seed to make the land masses look similar. way too long to do it manually, let me know if you find a seed that  looks like it, im curious too.

(+1)

Hi, I've been fiddling a bit with the generator and got this seed which I think is quite accurate:

1223478954

also the terrain type is islands, as the terrain type affects the seed

also, also the size i put was 128 for the 'pixels'

(+1)

One of the best asset-generation tools I've ever seen!

That's a big compliment, thank you!

(+1)

This is brilliant - thank you so much! Any plans to port/upgrade to godot 4?

Thank you! I'll look into it porting it sometime soon.

(+2)

Hey! I used your generator to create some background images for my game. These are so stunning, thank you so much! You can check out my game here:

https://store.steampowered.com/app/2355070/Void_Strife/

and on itch at https://tritorus.itch.io/void-strife

Awesome! Congrats on publishing a game, hope it does well!

(+1)

This is legit awesome!  

Thank you!

(+1)

It looks amazing! Well done ☺️

Thanks! Glad you like how it looks.

(+1)

Fabulous. Congratulations. Very good work.

Thank you!

(+1)

Great tool! Thanks

Thanks, glad you like.

(+1)

Phenomenal tool! My game simply wouldn't look right without it!
https://heyitsgus.itch.io/ufotto

(+1)

Thanks. You made a really cool game! Especially like the movement and walljumps.

(+2)

I LOVE GAME THIS

(+1)

YOU THANK

(+2)

This is great. I love this!

Thank you, glad you enjoy!

(+2)

God… this is too helpful

Nice, glad it can help.

(1 edit) (+1)

Couldn't install the program. Windows protected my laptop, why?

And how to export with background?

(+2)

It's because the program is not well known enough to windows. If you want to run it anyway, click "more info" when smartscreen pops up. If you don't trust that, then just run it from the source.
There is no background option in this generator, but I do have a space background generator if you want to use that.

(1 edit) (+1)

Happen to have made something similar but for stars?

(+1)

Not specifically for stars, but this generator also has a star type it can generate. I also have a space background generator that has stars in the background, but at very low resolution.

(+1)

This is pretty cool

thanks!

(+2)

I loved this tool so much that I created an entire planet collecting app! https://play.google.com/store/apps/details?id=com.NahueCabrol.astralrelics
Thank you!

(+1)

Very nice, thanks for sharing. I really like your UI colors. Well done on making a game!

(+1)

@NahueCabrol
Yeah this planet collector app looks really, really nice! I'm impressed.

@Deep-Fold
And well done on the tool. Honestly so curious what algos you used to optimize this so well. 👀
(I skim text often, so will go back and see if you talk about it)

Thanks! Not really using any special algorithms, just that shaders and the GPU are really good at this kind of thing.

(+1)

Wow very cool.

Am making a game right now and was struggling yesterday while I was listening to a video Spotify Podcast 😅

Everything I'm doing is running on CPU so kinda makes sense.

Do you know any good places to start when it comes to learning shaders / GPU, esp from a javascript perspective? Very curious to hear back from you. :)

Sure, shaders can be a bit difficult at first to understand. It's a lot of math and they function quite differently from CPU code. I don't think it matters too much if you know javascript or some other language, as most shaders use either GLSL or HLSL anyway.
A really good tool if you're first getting into shaders is the book of shaders: https://thebookofshaders.com/00/

Viewing most recent comments 1 to 40 of 302 · Next page · Last page