This is the documentation for Enlighten.

Baking file types

The HLBS is a file based API, so a critical part of driving it is to know the file types and where they go. The following chart shows the file content, the class used in the LoadInterface<> C++ API, the GeoPrecompute target that generates it, and the file location.

Type

C++ Class

Target

Location

Notes

Mesh data

IPrecompInputGeometry

Precompute

Multiple

Mesh data is part of the standard precompute.

Baked UVs

BakeUVStream

CreateBakeTargetUVs

baking\UVTarget_<lmName>_lmType>.dat

If you are packing the incoming UVs, this contains the UVs you should render albedo to.

Direct Lighting

GeoFp16Texture

BakeOutputDirectTextures

baking\<lightsFile>\Direct_<lmName>_lmType>.tex

Additional directional output textures may be created (with <n> _suffix) if additional lighting normals are supplied.

Direct Directional Irradiance

GeoFp16Texture

BakeOutputDirectTextures

baking\<lightsFile>\Direct_Dir_<lmName>_lmType>.tex

Not present if enableDirectionalIrradiance is set to false.

Indirect Lighting

GeoFp16Texture

BakeOutputIndirectTextures

baking\<lightsFile>\Indirect_<lmName>_lmType>.tex

Additional directional output textures may be created (with <n> _suffix) if additional lighting normals are supplied.

Indirect Directional Irradiance

GeoFp16Texture

BakeOutputIndirectTextures

baking\<lightsFile>\Indirect_Dir_<lmName>_lmType>.tex

Not present if enableDirectionalIrradiance is set to false.

Indirect Lighting (Final Gather)

GeoFp16Texture

BakeOutputFinalGatherTextures

baking\<lightsFile>\FinalGather_<lmName>_lmType>.tex

Additional directional output textures may be created (with <n> _suffix) if additional lighting normals are supplied.

Indirect Directional Irradiance (Final Gather)

GeoFp16Texture

BakeOutputFinalGatherTextures

baking\<lightsFile>\FinalGather_Dir_<lmName>_lmType>.tex

Not present if enableDirectionalIrradiance is set to false.

Ambient Occlusion

GeoFp16Texture

BakeOutputAOTextures

baking\AO_<lmName>_lmType>.tex


Radiosity Normal Textures

GeoFp16Texture

BakeOutputRadiosityNormalTextures

baking\RadiosityNormal_<lmName>_lmType>.tex

Not present if enableDirectionalIrradiance is set to false.

If you need to view the contents of .tex files, you can convert them to .exr for viewing in Photoshop or Irfanview, using GeoConvert.exe /converttextoexr input.tex output.exr.
To convert all files in a folder, use a batch script as follows:

@echo off
rem for %%i in (*.tex) do echo %%i
for %%i in (*.tex) do C:\Path\To\GeoConvert.exe /converttextoexr "%%~dpni.tex" "%%~dpni.exr"