Orbits Earth-Mars graphically

Stellaferox

Active Member
Licensed User
Hi All,

Here is a completely useless application which shows the position of the planets Earth and Mars in relation to each other. The orbits can be simulated at any date and in motion, slow and quick. It calculates the date when Mars is closest by and how big Mars will be in arcseconds, accompanied by the Julian Daynumber.
I use this to know when I can point my telescope best at Mars.
I also have a complete planetarium simulation, which is not uploaded now.
have fun.... <<grin>>
Marc
 

Attachments

  • Earth-Mars.zip
    6 KB · Views: 301
Last edited:

klaus

Expert
Licensed User
Longtime User
Hi Stellaferox,

Even though astronomy is not my favorite area, I had a look at your program and saw that you had tryed to use the ImageLib and ImageLibEx libraries.
If you want to use them be careful not to mix them up. In your code you have:
- Pen, Brush and Rectangle objects from the ImageLib
- BitmapEx and DrawerEx objects from the ImageLibEx libraries

You should use only one of both and better the ImageLibEx libraries they have all functions of the ImageLib library and much more.

Best regards.
 
Last edited:

Stellaferox

Active Member
Licensed User
Klaus,

You're right. I had included them to make use of the different possibilities and to play with them. I haven't used one of them I think. Same with my planetarium application. I am trying to scale the graphics up and down in real time (planets moving and orbits shown), but haven't quite figured out how to do this.
Marc
 

Stellaferox

Active Member
Licensed User
Klaus, you're a star! Would you know the solution to my planetarium program? I manage to scale down or up the size of the view with the slider but I cannot match the orbits with that view.
Marc
 

Attachments

  • $$$Kepler.sbp
    13.1 KB · Views: 295
Last edited:

klaus

Expert
Licensed User
Longtime User
Here you are, it wasn't that difficult.
Almost everything was pretty well prepared, also in the Earth-Mars program.
I think that the button images are those of the 'MP3-player buttons wanted' thread.

Best regards.
 

Attachments

  • $$$Kepler_KC.sbp
    13.4 KB · Views: 299

Stellaferox

Active Member
Licensed User
Hi Klaus,

Yes, you're right. The buttons are from the "wanted" topic. I restyled them a bit here and there.
Thank you for the adaptation. It is getting where I want it. Now speeding up the program is neccessary, because I want it to work on th PPC.

I especially like yoúr approach to the Scaling with the slider!

Marc
 
Last edited:
Top