-
Notifications
You must be signed in to change notification settings - Fork 3
01 Skybox
Russ Painter edited this page Feb 2, 2019
·
3 revisions
In this step we'll set-up our our sky and ground for the play area.
- In your Unity project's Assets folder create a "Skies" folder.
- In your web browser go to this free hdri image collection
- Download two panoramic sky images you like the look of. Left clicking the preview image will start a download of a zip file containing that skybox. We need the zip file, not the preview image.
- Save these two zip files onto your desktop.
- From your desktop right-click one of the zip files and "Extract All"
- Drag the extracted hdr image from this folder on your desktop into your Unity project's Skies folder
- Repeat the last two steps to extract the 2nd skybox image and import this into Unity
- Back in Unity click on one of your sky images and in the inspector window un-check "Generate Mip Maps" to avoid getting strange lines appearing in your sky.
- Right-click your Skies folder and select Create - Material and name this SkyBox1
- In the Inspector change the Shader to Skybox - Panoramic
- Drag one of your sky textures into the Spherical (HDR) texture box
- Repeat the last 3 steps to create a SkyBox2 material with your 2nd sky texture
- Open your Assets - Scenes - GameScene
- Open the lighting settings by using the top menu item Window - Rendering - Lighting Settings
- I'd recommend pinning this window as a tab next to your Inspector window
- The top item here is Scene - Environment - Skybox Material. Select one of the materials you created.
At this point your scene view should look something like this:
