SpaceMaker (Fun with particles)

Hello world.

I have been goofing around with particle systems for a while now and this is one of the results. ;D

I call it SpaceMaker. It is a great way to kill time, slack off at work, or procrastinate a school project.
(will probably keep you amused for 10-15 minutes depending on your attention span and love of colors)

The game lets you create outer space like scenes and then mash them up with mouse clicks and drags.

The controls are in the readme as well has how to install it.

It is relatively intensive on the gpu/cpu so its recommended to not run it on a machine that uses integrated graphics.

Here it is “http://www.2shared.com/file/vVL96tx-/SpaceMaker.html” Sorry I do not have a website or anything to let you play it online. :frowning:

Enjoy.

Another DL link "http://www.mediafire.com/?zguc6zru665gntc"

Screens.

http://img85.imageshack.us/img85/9124/85501397.jpg

http://img43.imageshack.us/img43/6744/60913716.jpg

http://img171.imageshack.us/img171/1630/51644942.jpg

Really unfortunately, my ISP use public IP so I can’t DL. Try mediafire maybe? I suggest you to have weebly site, it’s free and support applet. Check out my site.

I believe you have an off by one error in there: hitting G adds 5001 particles and hitting H adds 501 particles :wink:

Anyway, this was stunningly beautiful! I could get up to 30,000 particles at 100FPS. So many neat tricks when clicking and moving around :stuck_out_tongue:

I bet the full screen would have looked even better if you had set the DisplayMode to the desktop resolution by doing Display.setDisplayMode(Display.getDesktopDisplayMode()) and then setting the glViewPort and glOrtho correctly.

Ehh there are 2 particles that jump to the mouses location and out of habit I made it get the size - 1 instead of just size. ;D

And yeah I tried the full-screen method you said but when I did glOrtho to the new size, it retained the original ortho, 800x600.

The only thing I want to change in it, is letting the user define the chance that a particle will be a “space dust” particle or a star particle.
Looks more realistic with less stars and more dust. I also wanted to colorize a gray scale texture so there is much more variety in the textures but ehh whateverz.

[Edit]

No you were right it was creating 5001/501 particles. I had thought I put the 2 “pulling” particles in the array but I did not.
my for loop had “<= 5000” and it starts at 0. So 5001 particles. Lulz


glViewPort(0,0,Display.getWidth(),Display.getHeight());
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0,Display.getWidth(),Display.getHeight(),0,-1,1);