Geek Culture
Published in

Geek Culture

Fun With Skybox’s in Unity

The world’s not flat, and our game world’s shouldn’t be either! While the scope of most projects are generally contained to a small enough area to be on a flat plane, in the 3D world, we still want the sky to appear spherical.

A Skybox allows us to create a spherical image to contain our game world in, thus appearing in a realistic sense, and allowing the view to change as we move around. Larger games tend to have dynamic changes to these Skybox’s in the sense of weather or time cycles.

Our current game is set inside a building, but we can still use a Skybox to depict the outside world, and allow the sense of looking out windows at different angles resulting in different views. Luckily, Unity allows us to easily create a Skybox through a number of different ways. One of the most common is to use a 6 sided image that is pieced together. If we create a Material and set it’s Shader to be that of a Skybox/6 Sided, we can drop in a set of images.

To enable this in our game, we can set the Skybox Material within our Lighting Settings. With that, we have created a quick and easy, but beautiful looking backdrop for our game!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store