<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=HPL2%2FTutorials%2FConvert_HDRI_to_skyboxes</id>
	<title>HPL2/Tutorials/Convert HDRI to skyboxes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=HPL2%2FTutorials%2FConvert_HDRI_to_skyboxes"/>
	<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=HPL2/Tutorials/Convert_HDRI_to_skyboxes&amp;action=history"/>
	<updated>2026-05-01T23:32:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.frictionalgames.com/page?title=HPL2/Tutorials/Convert_HDRI_to_skyboxes&amp;diff=6301&amp;oldid=prev</id>
		<title>Darkfire: Created</title>
		<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=HPL2/Tutorials/Convert_HDRI_to_skyboxes&amp;diff=6301&amp;oldid=prev"/>
		<updated>2021-12-02T14:49:35Z</updated>

		<summary type="html">&lt;p&gt;Created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This tutorial describes how to convert HDRI images to a DDS skybox that works in HPL2.&lt;br /&gt;
&lt;br /&gt;
For this tutorial you will need an HDRI of your choice (there's plenty of these to be found for free online) and [[GIMP]].&lt;br /&gt;
&lt;br /&gt;
==Converting the HDR to cube textures==&lt;br /&gt;
# Use [https://matheowis.github.io/HDRI-to-CubeMap/ this online tool] to convert your HDR image.&lt;br /&gt;
# In the export settings, make sure to pick the PNG format and the 3rd export option (6 separate square images).&lt;br /&gt;
# Pick a resolution. Amnesia is a relatively low-resolution game, so 1024 should be enough.&lt;br /&gt;
# Download the resulting zip archive.&lt;br /&gt;
# Extract the archive. There should be 6 images titled nx, px, ny, py, nz, pz (n=negative, p=positive, x,y,z are the 3D axises).&lt;br /&gt;
&lt;br /&gt;
==Assembling the DDS texture==&lt;br /&gt;
Start GIMP.&lt;br /&gt;
{{tip|You can open a cubemap that works in Amnesia to see how the file is organised.}}&lt;br /&gt;
&lt;br /&gt;
# Import all 6 images (you can drag and drop the files into GIMP). The filenames should turn into layer names.&lt;br /&gt;
# Change the layer names (click on layer and press F2 or doubleclick) according to this naming scheme:&lt;br /&gt;
#* main surface (positive/negative x/y/z)&lt;br /&gt;
# You should end up with 6 layers named like this:&lt;br /&gt;
#* main surface (positive x)&lt;br /&gt;
#* main surface (negative x)&lt;br /&gt;
#* main surface (positive y)&lt;br /&gt;
#* main surface (negative y)&lt;br /&gt;
#* main surface (positive z)&lt;br /&gt;
#* main surface (negative z)&lt;br /&gt;
&lt;br /&gt;
The layers '''must''' be called like this or you won't be able to export the image as a cubemap. Their order doesn't matter, however.&lt;br /&gt;
&lt;br /&gt;
==Exporting from GIMP==&lt;br /&gt;
Now that the structure is ready, pick File -&amp;gt; Export as. Then:&lt;br /&gt;
* Set the image file location and then the extension to .dds. Click export. This will open export settings.&lt;br /&gt;
* (Optional) Set the compression to DXT5. This compression algorithm is lossy, but the quality loss shouldn't be very noticeable.&lt;br /&gt;
* Set &amp;quot;Save&amp;quot; to &amp;quot;as cube map&amp;quot; and export.&lt;br /&gt;
&lt;br /&gt;
Your newly made DDS skybox should now work in the Level Editor!&lt;/div&gt;</summary>
		<author><name>Darkfire</name></author>
		
	</entry>
</feed>