Introduction: Solar System Simulator Using Processing

In this post, we'll build a simple Solar System Simulator using Processing. The software, at the end of the build, will look and feel like in the attached video.

Step 1: Download and Install Processing

Picture of Download and Install Processing

If you haven't done so already, go to Processing.org and download the Processing software for your OS from Download \ Processing.org. Processing is a very fine language for easy graphics prototyping and testing. You can find tutorials about Processing in their website. For this run, you won't be needing much knowledge of Processing. Just download and install Processing as detailed there. There is also a slightly more detailed tutorial of this project over in my website.

Step 2: Control

You can control the program using the keyboard. The keys for all the various rotating, zooming and translating action in space and time are shown in the video. Deep.

Thanks for reading. And Don't Forget To Be Awesome.

Step 3:

Step 4:

Comments

stubbkokovoko (author)2016-05-03

Hi, Stauhidi.

This piece is marvelous! I downloaded the code from the "gisthub" link, but it doesn't work completely. Numbers, "o", "p" and darts on the keyboard are not working, wich makes this work awesome.

I would appreciate your help.

stauhidi (author)2015-01-25

The code in this instructable is incomplete. Please download the complete code at https://gist.github.com/ibtisamtauhidi/68f5fee3e1e0a00ec244

ChrisMentrek (author)2014-10-13

Hi, stauhidi:

Thanks for posting this!

I'm running into a compile error when I try to run the code that you posted. (I'm new to Processing myself -- this could be due to a mistake that I'm making.) In the "plotOrbit" portion (line 103), the compiler seems to disagree with the "for" loop:

float prevy = -1;

for(float theta=0.0;theta0.05) scale-=0.025;

}

Is there a way to correct this?

Thanks for your help, and for posting a fascinating Instructable!

About This Instructable

4,001views

22favorites

License:

More by stauhidi:Arduino RGB LED Music LightsSolar System Simulator using Processing
Add instructable to: