Re: Proper "real" stars in pioneer?
Posted: Sun Jun 07, 2020 5:20 am
I want to note some points related to this topic:
- At the moment, all custom stars in Pioneer are located in the coordinate system based on the equatorial coordinates as seen from Earth, but the sector map must be in the galactic coordinate system. For example, Polaris is located in the sector 0, -1, 53, which is almost above the Sol, but this is not correct, because it must be on the axis of the earth, and the axis of the earth is not vertical relative to the axis of the galaxy.
- In Pioneer, if you look at the galaxy from above, the Sol is located to the right of the center, at a distance of 25,000 light years. As far as I know, the generally accepted system is where the sun is directly below the center of the galaxy, at a distance 26000 +- 1400 ly, if you look at the galaxy from above. (so distance 25000 is fine).
- Sturnclaw made a tool that downloads a csv file of HYG catalogue, creates a packed binary archive of stars from it, and also implemented the loading of this data into the game at runtime. These stars are also given in the coordinate system based on the equatorial coordinates as seen from Earth. In addition, it requires the union of multiple stars, as well as some kind of integration with custom systems that already exist in the game.
- The density of stars in the HYG catalog drops quite quickly when moving away from the Sol
- There are 10215 stars in the HYG catalog with a distance of 100,000 parsecs from the Sol. Most likely these are some extragalactic objects.
It turns out that the galaxy in Pioneer needs to be rotated 90 degrees, and then the custom systems should be rotated in accordance with the orientation of the earth (just need to find the right matrix, not hard).
Therefore I suggest the following steps:
1. Transfer the coordinates of the Sol relative to the center from [25000,0] to [0,-25000] (in ly)
2. Rotate the custom systems into the galactic coordinate system (need a simple script)
3. Add various filters when parsing HYG data, such as:
- search and integration of multiple stars into systems
- ignoring the system if it is already in the list of custom systems
- ignore stars with obviously wrong distance (such are there)
...
4. Determine the reference density of stars in the vicinity of the sun, and use it to generate additional stars where custom and catalog begins to thin
5. Repair everything that breaks in factions (it will probably break)
6. Add the orientation of the local coordinate system to the parameters of the star system (in order to correctly display the sky box).
Well, a few additional points that would be good, but it's more difficult:
6. Add globular star clusters, as a list of center coordinates and some parameters that will be taken into account when generating random systems. Also, this list can be displayed in the galaxy map, as bookmarks.
7. Add the option of parsing catalogues Tycho-2 and GSC-2, most likely right on the fly, i.e. the player must be connected to the internet.
P.S. I think that these changes may make the previous savegames incompatible, but:
- Any change in the position of the stars will make it
- I think that you can ask everyone interested to return to the Sol before updating the version of the game.
- At the moment, all custom stars in Pioneer are located in the coordinate system based on the equatorial coordinates as seen from Earth, but the sector map must be in the galactic coordinate system. For example, Polaris is located in the sector 0, -1, 53, which is almost above the Sol, but this is not correct, because it must be on the axis of the earth, and the axis of the earth is not vertical relative to the axis of the galaxy.
- In Pioneer, if you look at the galaxy from above, the Sol is located to the right of the center, at a distance of 25,000 light years. As far as I know, the generally accepted system is where the sun is directly below the center of the galaxy, at a distance 26000 +- 1400 ly, if you look at the galaxy from above. (so distance 25000 is fine).
- Sturnclaw made a tool that downloads a csv file of HYG catalogue, creates a packed binary archive of stars from it, and also implemented the loading of this data into the game at runtime. These stars are also given in the coordinate system based on the equatorial coordinates as seen from Earth. In addition, it requires the union of multiple stars, as well as some kind of integration with custom systems that already exist in the game.
- The density of stars in the HYG catalog drops quite quickly when moving away from the Sol
- There are 10215 stars in the HYG catalog with a distance of 100,000 parsecs from the Sol. Most likely these are some extragalactic objects.
It turns out that the galaxy in Pioneer needs to be rotated 90 degrees, and then the custom systems should be rotated in accordance with the orientation of the earth (just need to find the right matrix, not hard).
Therefore I suggest the following steps:
1. Transfer the coordinates of the Sol relative to the center from [25000,0] to [0,-25000] (in ly)
2. Rotate the custom systems into the galactic coordinate system (need a simple script)
3. Add various filters when parsing HYG data, such as:
- search and integration of multiple stars into systems
- ignoring the system if it is already in the list of custom systems
- ignore stars with obviously wrong distance (such are there)
...
4. Determine the reference density of stars in the vicinity of the sun, and use it to generate additional stars where custom and catalog begins to thin
5. Repair everything that breaks in factions (it will probably break)
6. Add the orientation of the local coordinate system to the parameters of the star system (in order to correctly display the sky box).
Well, a few additional points that would be good, but it's more difficult:
6. Add globular star clusters, as a list of center coordinates and some parameters that will be taken into account when generating random systems. Also, this list can be displayed in the galaxy map, as bookmarks.
7. Add the option of parsing catalogues Tycho-2 and GSC-2, most likely right on the fly, i.e. the player must be connected to the internet.
P.S. I think that these changes may make the previous savegames incompatible, but:
- Any change in the position of the stars will make it
- I think that you can ask everyone interested to return to the Sol before updating the version of the game.