For skies, you can use low-resolution textures (LDR) and high-resolution textures (HDR). The process to add these to your level are very similar.
A sky texture, either LDR or HDR
These can be downloaded from websites like www.cgskies.com or www.hdri-skies.com.
Save the Texture
It is also recommended to make sure the Resource Compiler is up to date and the CRYENGINE plugin for Photoshop is installed. To do this:
Under Preset, choose SkyboxHDR (or SkyboxLDR if it is not an HDR texture).
In version 5.6 and earlier, the Resource Compiler states that the Presets used above require the texture to be a "power of 2", i.e. 1000 x 500, even when they actually are. This will then cause the RC to not complete the process of saving your texture.
This will be fixed soon, but for the moment, please use the following workaround:
Save it somewhere it makes sense, e.g. under Assets/Textures/skies.
If CRYENGINE is open while you save the texture, CRYENGINE will automatically compile the textures if the file is saved in the Assets folder.
If CRYENGINE is not open, you can always drag & drop the .tif file into the Asset Browser to make CRYENGINE compile the texture.
Wait a little while.
Under Variables → Skybox, you can tweak the sky in various ways:
- Rotation: rotates the skybox around the X and Y axes.
- Vertical Stretch: stretches the material vertically.
- Color: simply colors the sky texture.
- Intensity: takes the brightest point in the data of the texture and adjusts it to the correct brightness (brightness you would have in comparison to the sun lux intensity) compared to the brightness of the sun.
Some textures come with a recommended lux intensity that is mentioned on the website. You can simply copy and paste that value into this field.
- Filter: filters the colors from the sky texture and preserves them, i.e. if you choose red, this color will be preserved and all the other colors diminished.
- Opacity: opacity of the texture. If you want to let something shine through the texture, e.g. the stars from the night sky, you can lower this value.
This tutorial is also available in video form on our YouTube channel here.