Creating a starry sky in Unity. Part 1: Using real world data
Have you ever looked up at the stars and thought, that s cool I wonder if I can do this in Unity Well have no fear this threepart tutorial has you covered. This first part focuses on reading in realworld data from the Yale Bright Star Catalog In the first part of this tutorial we discuss the binary file format of the bright star catalog that contains the locations of all the 9, 110 observable stars with the naked eye from Earth. We convert the right ascension and declination values to a Vector3 so we can plot the stars on a sphere around our camera. We also use a resource from arXiv called digital color codes of stars to add some dynamics to our star field by adding colour, before finally varying the sizes of the various stars. This will get you right up to the point where you want to start creating GameObjects to represent the stars. Which we ll cover in part 2. Yale bright star catalog:
|
|