planets!

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
deseven
Enthusiast
Enthusiast
Posts: 367
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

planets!

Post by deseven »

Simple solar system generator with many planet types.
It utilises Perlin noise algorithm to generate textures for everything.
Can be used as the screensaver :)

Image

Controls:
Mouse wheel to zoom in/out.
Left mouse button to select an object.
Esc to quit.

Binary: win32, osx
Sources: github

Currently in development, any feedback and advices are greatly appreciated.
Last edited by deseven on Mon Feb 02, 2015 11:19 pm, edited 2 times in total.
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

Re: planets!

Post by applePi »

thanks for this , very useful. especially you have provided the source.
i suggest a feature when the user press S as an example it will display the solar system planets with its specific planets sizes and orbital speeds.
regards
Kelebrindae
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 01, 2008 3:23 pm

Re: planets!

Post by Kelebrindae »

Wow, very nice! :)
I should try to merge it with my own star-system generator (http://www.purebasic.fr/english/viewtop ... 12&t=39470) to generate all the infos about the planets.
User avatar
deseven
Enthusiast
Enthusiast
Posts: 367
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

Re: planets!

Post by deseven »

applePi wrote:thanks for this , very useful. especially you have provided the source.
i suggest a feature when the user press S as an example it will display the solar system planets with its specific planets sizes and orbital speeds.
regards
I'm planning to add some comments to the code so everyone can use it.
Don't really get what you mean. You want to see the planet info near all of the planets after pressing S?
Kelebrindae wrote:Wow, very nice! :)
I should try to merge it with my own star-system generator (http://www.purebasic.fr/english/viewtop ... 12&t=39470) to generate all the infos about the planets.
Your project looks far more advanced and serious than mine. I probably should take your planet generation algorithm if you don't mind. Or actually we can do something toghether. For example, you can export your solar system to a file and i can process it and visualize.
However, i should start working on moons' support.
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

Re: planets!

Post by applePi »

deseven wrote:
You want to see the planet info near all of the planets after pressing S?
No, i mean our own solar system: sun, mercury, Venus, earth...etc
http://truenation.org/wp-content/upload ... stem-2.jpg
with its planets relative sizes and orbital speeds. but now i think this suggested addition will get your code out of its purpose and making it more complex. so my suggestion are better for another standalone program which are utilizing your current code in its design and can be used in educational purposes.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: planets!

Post by Kwai chang caine »

Very nice...really !!! :shock:
Thanks to you, it's more easy to understand the moving of planets 8)
It's a little bit like an aquarium..we can look at it, during several hours :D

Thanks for sharing 8)
ImageThe happiness is a road...
Not a destination
User avatar
deseven
Enthusiast
Enthusiast
Posts: 367
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

Re: planets!

Post by deseven »

applePi wrote:my suggestion are better for another standalone program which are utilizing your current code in its design and can be used in educational purposes.
If i'll do an import support then anyone will be able to create a custom solar system and load it.
Nevertheless, if we want to represent our system then we need at least moons, so this is what i'm going to do next.
Kwai chang caine wrote:Very nice...really !!! :shock:
No, it's not. There is a laaaarge room for improvements :)
User avatar
deseven
Enthusiast
Enthusiast
Posts: 367
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

Re: planets!

Post by deseven »

updated to version 0.2
+ OS X support
* doubled planet texture size
* orbit trails replaced by actual orbits
* various bugfixes and small improvements
* code refactoring and commenting
Kelebrindae
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 01, 2008 3:23 pm

Re: planets!

Post by Kelebrindae »

deseven wrote: I probably should take your planet generation algorithm if you don't mind.
No problem! For now, I don't have much time to code so I'll be glad if this source can be of use to your project. :)
User avatar
deseven
Enthusiast
Enthusiast
Posts: 367
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

Re: planets!

Post by deseven »

updated to version 0.2.1
+ background nebulas (needs some more tuning)
+ icon
* orbit for the selected object
* some internal changes

heading straight to the moon support for ver 0.3
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: planets!

Post by Kukulkan »

Nice! :D
User avatar
deseven
Enthusiast
Enthusiast
Posts: 367
Joined: Wed Jan 12, 2011 3:48 pm
Location: Serbia
Contact:

Re: planets!

Post by deseven »

I'm kinda tired of all that PB problems related to the opengl performance, glitches (crossplatform 2d-drawing is terrible) and lack of the important features, so i decided to switch to the more advanced 2d engine - love2d.
You can check the almost complete rewrite (no planet types and names yet) here.

Consider this PB project as abandoned. Of course anyone can still use it for education or other purposes, i don't mind.

P.S. PB is still great for other things :)
Post Reply