Astroact is a three dimensional visualization of our solar system with specific focus on simulation of 1,572 potentially hazardous asteroids and prediction of their near pass with earth. Astroact implements head tracking feature to help people visualize the actual geometry of the solar system and displays the position of the heavenly bodies at various times both in future and in past.

This project is solving the Visualize the Asteroid Skies challenge.



Astroact aims to simulate the position of heavenly bodies of our solar system, specifically 1,572 Potentially Hazardous Asteroids (PHAs) and predict their possible near pass with earth.

Astroact uses asteroids data from JPL Small-Body Database Search Engine ( Based on the article "Computing planetary positions" (, this application calculates the Cartesian coordinates of the heavenly bodies at a given time from their respective orbital elements. The computed coordinates are then fed into the OpenGl api for 3d rendering of the solar system.

Written in python, Astroact makes use of OpenCV ( for face detection and to track the position of head. Based on the coordinates and size of the head, the solar system rotates to give the user a complete three dimensional visualization. Basically, this feature fabricates a window to our solar system. When you move your head to the left you see more of the objects to your right and when you move your head to the right, you see more of the objects to your left. Similarly, when you move closer to the screen, the center of the solar system (the Sun) seems to approach closer to you. Hence, this feature will be very helpful for educational purpose, especially to understand the geometry of our solar system and movement of celestial bodies around the sun. Moreover, Astroact uses Leap Motion Technology so that users can manipulate the time of simulation based on the hand gestures. Rotating your finger in clockwise direction speeds up the animation and vice-versa. Tapping in the mid air pauses and resumes the simulation.

Finally, the most important objective of Astroact is to predict the near pass of PHAs with earth. Based on the simulation, distance between the asteroids and the earth is calculated. When the calculated distance is very close to earth, a small information about the Asteroid (which includes its name, distance from earth and time of near pass) is displayed on the left side of the screen. This feature can be helpful for sky watchers.

The future extension of this project is to publish the computed information of near pass of asteroids to the web. The information will by supported by the means of graph plot of the distance of a given asteroids with earth against the time.


Project Information

License: MIT license (MIT)

Source Code/Project URL:


Computing planetary positions -
JPL Small-Body Database Search Engine -
OpenCV -


  • Rohit Shrestha
  • Ritesh Thapa
  • Manish Gautam
  • Aatish Neupane
  • Hilson Shrestha