GameBanana shows no ads to members. Sign up now!
Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

HDR Skybox to HDR Cubemap

A Tutorial for Source Engine

The easiest way I know to convert a HDR (or nonhdr) skybox into a HDR cubemap

1. Make a simple map that's just a hollow skybox, a light_environment, a player spawn, a small nodraw textured brush*, and a env_cubemap.
*Building cubemaps requires at least 1 face to be textured with a material that receives shadows. So texture some brush face with it, but that can't be seen by the cubemap or it will end up visible in the cubemap textures.


2. In the cubemap options, turn off SmartEdit and change the value to 10 if your skybox is 512x512 or 11 if your skybox is 1024x1024, and so on. Adding 1 doubles the resolution.
It is worth noting that the resolution for cubemaps is hard coded to be maximum 1024x1024 in some if not all source engine games though

3. Now choose your map's skybox, and compile with HDR.

4. Play the map and type "buildcubemaps" in console.
Keep in mind your screen resolution must fit a square that's at least 4x the cubemap resolution. So for a 1024x1024 cubemap, you should have at least a 4096x4096 screen resolution. Fortunately if you don't have such a ridiculous monitor, there's Dynamic Super Resolution. It's a graphics card driver feature that changes the screen resolution to a higher than the monitor's.
You can google it and figure out how to use it in 5 mins.


5. Now after you've built your cubemap (and restored your resolution to normal), use GCFScape to extract the hdr cubemap VTF file from the BSP. There should be several weirdly named VTF files, the one with the largest filezise should be it.

Drag'nDrop it outside and its ready to be used as a custom cubemap.
Sign up to access this!

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Tutorial
NvC_DmN_CH avatar Apocalyptic Flag
Affiliation
Apocalyptic
NvC_DmN_CH username pic Joined 7y ago
There
Apocalyptic Flag Affiliation: Apocalyptic
11,156 points Ranked 556th
48 medals 4 legendary 12 rare
  • Returned 5000 times Medal icon
  • 15+ Entries! GameBanana’s Christmas Giveaway 2017 Medal icon
  • 1st Place - The Heatwave Skinning Contest Medal icon
  • Became a Ripe Supporter Medal icon
  • Submitted 20 Gamefiles Medal icon
  • 3rd Place - The
Writer

Submitter

NvC_DmN_CH avatar
NvC_DmN_CH username pic Joined 7y ago
There
Apocalyptic Flag Affiliation: Apocalyptic
11,156 points Ranked 556th
48 medals 4 legendary 12 rare
  • Returned 5000 times Medal icon
  • 15+ Entries! GameBanana’s Christmas Giveaway 2017 Medal icon
  • 1st Place - The Heatwave Skinning Contest Medal icon
  • Became a Ripe Supporter Medal icon
  • Submitted 20 Gamefiles Medal icon
  • 3rd Place - The
NvC_DmN_CH avatar
NvC_DmN_CH
Apocalyptic Flag
Affiliation
Apocalyptic

Creator
  • Paypal Donate
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Intermediate

Attributes

Genre
Mapping

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Today's Pick
    Featured on Jul 24 2019
  • 9
  • 4.4k
  • 3
  • 1y
  • 2mo

More from Submitter

WiPs by Submitter

More Other/Misc Tutorials