Not logged in, Join Here! or Log In Below:  
 
News Articles Search    
 


Submitted by Blake Robinson, posted on November 03, 2004




Image Description, by Blake Robinson



These are a couple screenshots from a small piece of software I wrote (whilst extremely bored) that simulates accretion of a solar system. The rendering is powered by my Nudge2 engine which features (here at least) lens flares, blooms, motion blur, a particle system and normal mapping using GLSL for the asteroid/planet textures.

The much more interesting aspect of the software is the gravity simulation itself. The program uses Newtonion gravity to calculate the movement of thousands of pieces of individual rock orbiting around a new-born star. When asteroids collide at relatively low speed, they merge and form bigger asteroids (or if big enough, planets) with a larger gravitational influence. When they collide at higher speeds they break into smaller pieces. When the simulation is left to run for minutes (or hours depending on the amount of rocks used initially) planets begin to form, and eventually a whole solar system is randomly constructed. The great thing is that since accretion simply follows the laws of gravity, and no template is used to precalculate the planets, the solar system it makes is unique every time the simulation is run.

I intend to add a few more features before I declare the project finished. One thing I really want to add is composite properties to the initial pieces of rock, so that each planet that is eventually formed has a different compositional make-up to the rest (also giving it a unique appearence).

Regards,
Blake Robinson


[prev]
Image of the Day Gallery
www.flipcode.com

[next]

 
Message Center / Reader Comments: ( To Participate in the Discussion, Join the Community )
 
Archive Notice: This thread is old and no longer active. It is here for reference purposes. This thread was created on an older version of the flipcode forums, before the site closed in 2005. Please keep that in mind as you view this thread, as many of the topics and opinions may be outdated.
 
Balooga03

November 03, 2004, 07:22 AM

looks nice, is there a website or a download of the demo?

 
blake robinson

November 03, 2004, 02:03 PM

Thanks for the comments. I just uploaded a work-in-progress demo for people to check out. The readme contained in the zip explains all the info you need to know to get the demo running:

http://paradum.com/Games/graviton.zip

 
MadHed

November 04, 2004, 08:43 AM

Hi there.
I love your program. Really neat.
Didn't think it'd run on my old crappy duron 900 Geforce2 mx but it
runs pretty smooth.
Keep up the good work.

 
This thread contains 3 messages.
 
 
Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.