Stellarium / stellarium-web-engine

JavaScript planetarium engine
409 stars 86 forks source link

How to draw stars onto the sky? #213

Open FEXAQAQ opened 1 month ago

FEXAQAQ commented 1 month ago

In the past few weeks, I have been studying how to parse the stars in skydata and draw them onto the sky. I want to print out a list of all stars, as well as their names/coordinates.

I know that it initially loads the relevant data from "app.vue" via "addDataSource" and adds it in "SweObj.prototype.addDataSource" inside "obj.js", but I don't understand how it works later. It parses the coordinates of the internal file and then draws them onto the sky. I printed a lot of places, but no progress was made. Does anyone know?

I will be very grateful.

gzotti commented 1 month ago

Why don't you simply fetch the original catalogs? You may avoid data artifacts from processing into a speed/memory optimized structure.

FEXAQAQ commented 1 month ago

Why don't you simply fetch the original catalogs? You may avoid data artifacts from processing into a speed/memory optimized structure.

Hi gzotti, Does the original catalog refer to the original catalog of the stars? /dist/skydata/stars/Norder0/Dir0/Npix0.eph

Thank you for your patient answer!

Sorry, my English department is not good, so I use translators. Some of the explanations may not be very good. Please bear with me.

gzotti commented 1 month ago

No, I mean Gaia or Hipparcos astrometric catalogs from ESA.

FEXAQAQ commented 1 month ago

No, I mean Gaia or Hipparcos astrometric catalogs from ESA.

Yes, you are right, maybe this is the best way.

I'm just out of curiosity about how the project works. I think it's very cool. I want to say that there are many types of stars and the number is very large. I am impressed by how he can analyze this information and draw it very quickly.