From Valve Developer Community
Revision as of 05:25, 4 September 2011 by Barracuda (talk | contribs) (Usage: Added navbox)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Splitskybox is a command line utility that splits a composite .PFM Skybox into separate .PFM images.

Your Composite Skybox MUST be arranged like this;

Hdr skybox sides.jpg


splitskybox.exe blah.pfm

For ease of use, create a batch file in the same directory as your Skybox composite, name it splitskybox.bat, and copy this into it;

"%sourcesdk%\bin\orangebox\bin\splitskybox.exe" %1
IF NOT "%~1" == "" GOTO loop

Now all you need to do is drag and drop one or more Composite PFM Skybox files onto the batch file, and it should give an output like this; (Taken from the HDR Skybox Tutorial)

splitskybox.exe "C:\Program Files\Steam\SteamApps\username\sourcesdk_content\dod\materialsrc\skybox\sdk_sky_example_hdr.pfm"

filename: C:\Program Files\Steam\SteamApps\username\sourcesdk_content\dod\materialsrc\skybox\sdk_sky_example_hdrft.pfm
filename: C:\Program Files\Steam\SteamApps\username\sourcesdk_content\dod\materialsrc\skybox\sdk_sky_example_hdrlf.pfm
filename: C:\Program Files\Steam\SteamApps\username\sourcesdk_content\dod\materialsrc\skybox\sdk_sky_example_hdrbk.pfm
filename: C:\Program Files\Steam\SteamApps\username\sourcesdk_content\dod\materialsrc\skybox\sdk_sky_example_hdrrt.pfm
filename: C:\Program Files\Steam\SteamApps\username\sourcesdk_content\dod\materialsrc\skybox\sdk_sky_example_hdrup.pfm
filename: C:\Program Files\Steam\SteamApps\username\sourcesdk_content\dod\materialsrc\skybox\sdk_sky_example_hdrdn.pfm
Press any key to continue . . .