Skybox from DDS cubemap

From Epic Wiki
Jump to: navigation, search

Creating and exporting the cubemap

In this tutorial we are going to use Spacescape ([1]). It's free, powerful and easy to use. It also comes with some presets!

Open the program.


After creating your skybox, click on File > Export skybox.


Choose your save location, file name. Set the file type to "Single DDS Cube Map (*.dds)". The image size depends on how high resolution you want the skybox to be(or how large your map is). Finally, export for SOURCE. Ironically, it is the only option that works. The UNREAL option exports some images in the wrong orientation and your skybox ain't going to look well unless you are willing to fiddle around with it manually (bad choice).


Proceeding inside the engine

The time has come to open the engine and import your file! After some time (less than 1 minute for me), the file sould have been imported.

Open the file in the editor and set:

"Compression Settings" > "UserInterface2D (RGBA)" "Mip Gen Settings" > "NoMipmaps" "Texture Group" > "Skybox"

Finall, you may need to untick the sRGB checkbox.


Create a new material. Set the Shading model to Unlit and make sure it is Two Sided.


The material setup is only 3 nodes and looks like this:


Create a new actor. Make the Root Component a Static Mesh. Disable gravity, collision. On the static mesh picker, go on View Options and tick Show Engine Content.


Choose SM_SkySphere. Any of the two will do. The one has just about a hundred triangles more than the other.


Then, just do this:


Drag and drop it inside your level and set the material.


This is it!