Solar System Simulator Using Processing

4,334

23

3

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

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:

Share

    Recommendations

    • Make it Glow Contest 2018

      Make it Glow Contest 2018
    • Optics Contest

      Optics Contest
    • Plastics Contest

      Plastics Contest

    3 Discussions

    0
    None
    stubbkokovoko

    2 years ago

    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.

    0
    None
    stauhidi

    3 years ago on Introduction

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

    0
    None
    ChrisMentrek

    4 years ago on Introduction

    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!