This page describes how to create a Unity HDRP virtual sky model with the Physically Based Sky from the scratch. I used the hints from https://www.youtube.com/watch?v=tpTzwyiGByE in using the PBS.

It is assumed that there is a separate folder, named “PBR_Tutorial”, in the Project section (under Assets) where the sample scene is to be created and stored. If the folder does not exist, you can create one (or store subsequent items in your folder).

Steps

Make sure that you are using the HDRP rendering pipeline

  1. Download or locate the deepsky images from NASA (https://svs.gsfc.nasa.gov/4851/). Download 16K or 4K.
    1. download the star map, coordinate grid map, constellation boundary, and constellation shape.
    2. store them in “Textures” folder so that other projects can use them as well.
    3. convert the image to the Cube Shape (click the image –> Texture Shape in the Inspector –> select “Cube”. Set the right “Max Size” under “Default”
  2. Delete everything in the current hierarchy.
  3. Create a new scene: Right-click on the Assests folder –> Create –> Scene
  4. Create a Global Volume: Right-click on the hierarchy –> Volume –> Global Volume
    1. Click “New” in the Inspector panel.
    2. Click “Add Override” –> Sky –> Physically Based Sky
      1. Select Model–>Type = Earth (Advanced)
      2. Click Space –> Space Emission Texture and set it to the downloaded deepsky image.
    3. Click “Add Override” –> Visual Environment
      1. Set Sky Type to “Physically Based Sky”
  1. Diurnal rotation of the sky can be simulated by “Gloval Volume” –> “Space” –> “Space Rotation”

Changing the angle of the directional light can simulate the movement of the Sun in the sky. Also, the diurnal rotation can be controlled as shown in the below image.


Improvements to be added

Inseok Song 2024/11/18 18:38