Little orbit sim

Is this Orbiter 0.0001 ?

Orbiter 1980! Well, my version looks just like a thing you'd expect to see on an 80s computer anyway.

Thanks a lot for the info RisingFury! I just came across that drag formula in physics, and thought it would be quite easy to use. It looks like it will get quite complicated though, depending on how deep you go into it.
 
Been working on my own update - it's a Win32 version of the original console one. I learned how to use timers in C++, and though that this would be an excellent use for them. I think it's a lot more elegant than the first version (not quite as pretty as luki1997a's version though):

http://gkastro.0sites.org/OrbitSimWindows.exe

Orbitsimwindows.png
 
Jarvitä just wanted to point out that being the program very simple it could be written and compiled in C instead of C++. It will also result a bit faster.
About the syntax, cout<< will become printf(), etcetera.
Nothing so important for a beginner though.
If interested, just google the various differences between the two languages.
 
:hello:
Ok here's my version for testing:
http://dl.dropbox.com/u/19257504/Orbit%20Simulator.exe
If it won't work try downloading this module and placing it in the same dir:
http://dl.dropbox.com/u/19257504/DevComponents.DotNetBar2.dll

It's beta version, so I want you to post every bug you find. Maybe it will be useful.

.NET Framework 4 is requied

Plans for future versions:
-Selection of reference planet
-Scale able graph
-Vessel tracking on graph
-2d map addition to Graph view
-tracking on a 2d map
-support for user-defined gravity constant

Hope you like it:tiphat:

P.S. please post if executable is working without downloading the module.
 
Well I've been learning more about Win32, and I have added a display window to show the orbit in progress! It's still in its early stages (in fact, I just got it working today) but I'm kinda proud :) It uses GDI which is a built in Win32 system for drawing 2d objects and graphics, and it required quite a bit of modification from the original, just to add that little window! It's worth it though, to see it actually displaying:

OrbitsimUpdate.png
 
Been working on my own update - it's a Win32 version of the original console one.

That's actually pretty cool. The simplicity is appealing. Will your version that shows the graphical projection available at some point?
 
Hey, yeah - I'll release it when I'm finished. There are probably a few features from orbiter that could also be put in here!

---------- Post added at 19:48 ---------- Previous post was at 17:30 ----------

Here's a beta version that I just finished - I thought I would show it to you guys :) As you can see the display window is still very basic (there is no zoom or scale function so if you choose big orbits, they will probably go off the screen!):

http://gkastro.0sites.org/Orbit-Vis beta.exe

Also, it is real-time for Earth, so you will have to use time acceleration to see any meaningful animation! This is my first real time dealing with graphics and windows, so please let me know if any major problems happen! It would be kind of cool if you could post a screenshot of it running on your computer so that I could check it out, if you decide to download it.

Thanks a lot! :)
 
Runs fine on my computer.

If you set perigee and apogee to 1 km and increase the time acceleration to some huge number number (33554432 x for me), the animation seems as if it's going backwards. The reason for it is that it completes almost a full orbit in the time it takes to render a frame.
 
It's good to test some flights... Maybe in future versions the reentry speed and reentry angle could be added...
 
Back
Top