# Astronomy in p5

**URL:** <https://discourse.processing.org/t/astronomy-in-p5/13234>\
**Category:** Project Guidance\
**Created:** [August 7, 2019, 3:46pm UTC](https://discourse.processing.org/t/astronomy-in-p5/13234 "2019-08-07T15:46:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbenedisgrab](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gbenedisgrab](https://discourse.processing.org/u/gbenedisgrab)\
**Post date:** [August 7, 2019, 3:46pm UTC](https://discourse.processing.org/t/astronomy-in-p5/13234/1 "2019-08-07T15:46:20Z")

</div>

Hi All, I want to make a p5 app that animates the stars moving in the night sky. I want it to be very similar to this site  
[http://www.etwright.org/astro/plani.html](http://www.etwright.org/astro/plani.html)

Anyone have advice on what to look at. I found a d3 site that is super complex and want to do it more manually. In particular right now I am working on writing the function that takes a date and earth position and gives me a rotation value for the big sphere of stars.

Thanks,

Greg

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [August 10, 2019, 12:46am UTC](https://discourse.processing.org/t/astronomy-in-p5/13234/2 "2019-08-10T00:46:08Z")

</div>

While he works in Processing, not p5.js, @HackinHarry has done a lot of work on this forum (and the old one) on interactive star charts / astronomy sims.

> [@This is odd mapping problem](https://discourse.processing.org/t/this-is-odd-mapping-problem/11767):
>
> I’ve been playing with navigational star charts, photo maps, star databases, processing for about a year now. With lots of help, I’ve learned how to project an image onto a sphere/globe and plot points onto the image. My coding style is very sloppy and needs improvement, but I have managed to learn how to manipulate the placement of points(stars) some. Here’s what I found odd. I went to [https://aa.usno.navy.mil/data/docs/Nav\_Star\_Chart.php](https://aa.usno.navy.mil/data/docs/Nav_Star_Chart.php) to get a star chart that I could project onto a sp…

If you search this or the old forum for “solar” you will also find lots of solar system sims. They aren’t for displaying skies, but sometimes involve related concepts like timed rotations.

Other key terms: skybox, skyphere. In essence, drawing a sphere centered on the camera, putting a texture on it, and then correctly rotating it.
