Unity Courses Creating a Starry Sky in Unity
Unity

Creating a Starry Sky in Unity

Build a starfield from real astronomical data, instantiate the stars as GameObjects, then overlay constellation lines.

3 chapters · 31m Beginner Updated 18 Mar 2023 Phil · @FirnoxGames
3D
Free

Free for everyone. No account needed.

Start watching →

What you'll learn

1 Part 1: Using real-world data ▶ 11 min

Have you ever looked up at the stars and thought, that's cool I wonder if I can do this in Unity?

In this chapter
  1. Introduction
  2. Parsing the binary file
  3. Star constructor
  4. Calculating positions
  5. Calculating colours
  6. Varying size
2 Part 2: Creating the GameObjects ▶ 12 min

Have you ever looked up at the stars and thought, that's cool I wonder if I can do this in Unity?

In this chapter
  1. Introduction
  2. Creating stars as spheres
  3. Camera movement
  4. Quad and star algorithm
  5. Creating the star shader
3 Part 3: Showing constellations ▶ 7 min

Have you ever looked up at the stars and thought, that's cool I wonder if I can do this in Unity?

In this chapter
  1. Introduction
  2. Constellation data
  3. Toggle mechanism
  4. Create constellations
  5. Final product
Included with this course
Video walkthrough · 31m
</>Annotated source code ↗ · public domain