Skip to content

Convert HDR cubemap image faces into modern HDR equirectangular format. Supports generic images or VTF.

Notifications You must be signed in to change notification settings

rob5300/VTFHDRCubeToEqi

Repository files navigation

CubeToEqi

Creates a modern HDR equirectangular image from 6 VTF/PNG/other HDR cubemap faces (up, lf, ft, rt, bk, dn).

Works best with VTF hdr images used with Source games.

Before and after example

Uses VTFLib for reading VTF files and DevIL to create HDR image.

Projection conversion code is a port of CubemapToEquirectangular for Unity.

Usage

Start program and give folder containing all 6 faces, or pass path as launch arg.

Arguments:

xoffset, yoffset (0 - 1): Offset the final HDR, useful if you want to rotate the hdr but cannot in some software.

scale: Scale the output HDR file. Can help improve quality.

exposureshift: Shift exposure up/down for generic image based inputs.

About

Convert HDR cubemap image faces into modern HDR equirectangular format. Supports generic images or VTF.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages