1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Level Design

Making a Custom HDR 2D Skybox !

  • Seldoon182
  • October 24, 2007 at 12:17 AM
  • Seldoon182
    • October 24, 2007 at 12:17 AM
    • #1

    Hi guys,

    This is the first attempt to me on making a custom HDR 2D Skybox for Source engine.

    Right at the beginning, it looks like that everthing work...

    [Blocked Image: http://pix.nofrag.com/e/5/9/c865fa4c…79634d6430f.jpg]

    (Compiled without rad and looks a little bit crappy !)

    ... definetly not, my 2D Skybox doesn't work at all with Vrad activated !

    [Blocked Image: http://pix.nofrag.com/1/e/a/aff23e4f…8236a9b1952.jpg]

    (Compiled with normal rad and -final)

    >> The entire 2D Skybox.

    >> One of my .vmt quoted.

    Code
    "sky"
    
    
    {
    
    
    	"$hdrbaseTexture" "skybox/sky_dod_insurrection_hdrbk"
    
    
    	"$nofog" "1"
    
    
    	"$ignorez" "1"
    
    
    	"$basetexture" "skybox/sky_dod_insurrection_bk"
    
    
    }
    Display More

    It's mere a 2D Sky ! Do someone post some helpfull feedback ?

  • Furyo
    • October 24, 2007 at 1:14 AM
    • #2

    Did you check all your vmts?

  • TomWithTheWeather
    • October 24, 2007 at 1:30 AM
    • #3

    That's way harder than it needs to be.

  • Seldoon182
    • October 24, 2007 at 4:06 AM
    • #4
    Quote from Furyo

    Did you check all your vmts?

    sky_dod_insurrection_hdrbk

    Code
    "sky"
    
    
    {
    
    
    	"$hdrbaseTexture" "skybox/sky_dod_insurrection_hdrbk"
    
    
    	"$nofog" "1"
    
    
    	"$ignorez" "1"
    
    
    	"$basetexture" "skybox/sky_dod_insurrection_bk"
    
    
    }
    Display More

    sky_dod_insurrection_hdrdn

    Code
    "sky"
    
    
    {
    
    
    	"$hdrbaseTexture" "skybox/sky_dod_insurrection_hdrdn"
    
    
    	"$nofog" "1"
    
    
    	"$ignorez" "1"
    
    
    	"$basetexture" "skybox/sky_dod_insurrection_dn"
    
    
    }
    Display More

    sky_dod_insurrection_hdrft

    Code
    "sky"
    
    
    {
    
    
    	"$hdrbaseTexture" "skybox/sky_dod_insurrection_hdrft"
    
    
    	"$nofog" "1"
    
    
    	"$ignorez" "1"
    
    
    	"$basetexture" "skybox/sky_dod_insurrection_ft"
    
    
    }
    Display More

    sky_dod_insurrection_hdrlf

    Code
    "sky"
    
    
    {
    
    
    	"$hdrbaseTexture" "skybox/sky_dod_insurrection_hdrlf"
    
    
    	"$nofog" "1"
    
    
    	"$ignorez" "1"
    
    
    	"$basetexture" "skybox/sky_dod_insurrection_lf"
    
    
    }
    Display More

    sky_dod_insurrection_hdrrt

    Code
    "sky"
    
    
    {
    
    
    	"$hdrbaseTexture" "skybox/sky_dod_insurrection_hdrrt"
    
    
    	"$nofog" "1"
    
    
    	"$ignorez" "1"
    
    
    	"$basetexture" "skybox/sky_dod_insurrection_rt"
    
    
    }
    Display More

    sky_dod_insurrection_hdrup

    Code
    "sky"
    
    
    {
    
    
    	"$hdrbaseTexture" "skybox/sky_dod_insurrection_hdrup"
    
    
    	"$nofog" "1"
    
    
    	"$ignorez" "1"
    
    
    	"$basetexture" "skybox/sky_dod_insurrection_up"
    
    
    }
    Display More
    Quote from TomWithTheWeather

    That's way harder than it needs to be.

    Could you explain more sir ? I'm such a noob in Skybox creation ! :bananawrench:

  • PogoP
    • October 24, 2007 at 11:53 AM
    • #5

    Have you read this? http://%7boption%7d

    You have to add the following to each .vmt file:

    "UnlitGeneric"

    {

    // Original shader: BaseTexture

    "$basetexture" "skybox/$SKYNAME"

    // stops error: "Can't load skybox file skybox/(skyboxname) to build the default cubemap!"

    "$hdrbasetexture" "skybox/$SKYNAME"

    "$nofog" "1"

    "$ignorez" "1"

    }

    I think the "UnlitGeneric" is crucial.

  • Furyo
    • October 24, 2007 at 4:53 PM
    • #6

    It would be the first time I see a skybox texture not having the "sky" shader. My guess is the wiki is wrong, or it's changed since the hl2 days where all the skies are "sky". While it's true that "sky" also is "unlitgeneric", I'm unsure whether it contains additional values for the engine to render.

    Your vmt files appear correct to me, but I did notice the order of appearance of lines inside a vmt file sometimes plays a role. In your case, I'd try and make them "basetexture, hdrbasetexture, nofog, ignorez" and see if that changes anything.

    Other than that, are you certain you're running the game with HDR? The way I see it, your hdr and ldr textures could be different...

  • Seldoon182
    • October 24, 2007 at 6:13 PM
    • #7
    Quote from PogoP

    Have you read this? http://%7boption%7dYou have to add the following to each .vmt file:

    "UnlitGeneric"

    {

    // Original shader: BaseTexture

    "$basetexture" "skybox/$SKYNAME"

    // stops error: "Can't load skybox file skybox/(skyboxname) to build the default cubemap!"

    "$hdrbasetexture" "skybox/$SKYNAME"

    "$nofog" "1"

    "$ignorez" "1"

    }

    I think the "UnlitGeneric" is crucial.

    Display More
    Quote from Furyo

    It would be the first time I see a skybox texture not having the "sky" shader. My guess is the wiki is wrong, or it's changed since the hl2 days where all the skies are "sky". While it's true that "sky" also is "unlitgeneric", I'm unsure whether it contains additional values for the engine to render.

    - Quoted for true Furyo. Even if my 2D Skybox is working with the "Unlitgeneric" shader, the HDR doesn't looks enabled to me... Just found this tutorial and everything is (to me) O.K.

    Quote from Furyo

    Your vmt files appear correct to me, but I did notice the order of appearance of lines inside a vmt file sometimes plays a role. In your case, I'd try and make them "basetexture, hdrbasetexture, nofog, ignorez" and see if that changes anything.

    - Fixed. No change when the shader is set to "Sky".

    Quote from Furyo

    Other than that, are you certain you're running the game with HDR? The way I see it, your hdr and ldr textures could be different...

    - I run the game rightly thought.

    [Blocked Image: http://pix.nofrag.com/a/a/9/c78cfc5597e19331ba53cca9a3bf2.jpg]

    Any advices ?

  • mookie.gc
    • October 24, 2007 at 9:00 PM
    • #8

    It looks like you have an extra underscore in your base textures. I don't know if that matters or not but I copy/pasted mine from somewhere and have never seen something named as "skyname_bk" more like "skynamebk". I can upload a working HDR skybox if you want to look at it.

  • PogoP
    • October 24, 2007 at 9:00 PM
    • #9

    Possible something inside the map itself? Is your map completely sealed off where the sky would be with brushes covered in 'toolssky'? I compiled a map once with a huge hollow brush covered in a black texture, then stuck a sky brush inside... The graphics of the skybox played up just like in your picture.

  • Seldoon182
    • October 25, 2007 at 5:15 AM
    • #10
    Quote from mookie.gc

    It looks like you have an extra underscore in your base textures. I don't know if that matters or not but I copy/pasted mine from somewhere and have never seen something named as "skyname_bk" more like "skynamebk".

    - I renamed all of my LDR base texture like "sky_dod_insurrectionbk" and it's still doesn't work. Consequently it doesn't really matter.

    Quote from mookie.gc

    I can upload a working HDR skybox if you want to look at it.

    - Please. It should be really helpfull !

    Quote from PogoP

    Possible something inside the map itself? Is your map completely sealed off where the sky would be with brushes covered in 'toolssky'? I compiled a map once with a huge hollow brush covered in a black texture, then stuck a sky brush inside... The graphics of the skybox played up just like in your picture.

    - Hollowing and Carving doesn't exist to me ! :wink:

    >> Screenie

    ------

    Btw I tried to compile my Skybox using Vtex (as tell in the wiki) and (except that Splitskybox crash each time I drag my main "sky_dod_insurrection_hdr.pfm" file) it won't compile my separate .pfm modified with HDRshop.

    Code
    Can't Open: "C:\Steam\steamapps\seldoon182\sourcesdk_content\dod\materialsrc\skybox\sky_dod_insurrection_hdrbk.tga"

    ... whereas I draged "sky_dod_insurrection_hdrbk.pfm" !

    Roughly it compile rightly all my .tga files:

    • [*:vl92tybp]sky_dod_insurrectionbk.tga
      [*:vl92tybp]sky_dod_insurrectiondn.tga
      [*:vl92tybp]sky_dod_insurrectionft.tga
      [*:vl92tybp]sky_dod_insurrectionlf.tga
      [*:vl92tybp]sky_dod_insurrectionrt.tga
      [*:vl92tybp]sky_dod_insurrectionup.tga

    ... and can't read my .pfm:

    • [*:vl92tybp]sky_dod_insurrection_hdrbk.pfm
      [*:vl92tybp]sky_dod_insurrection_hdrdn.pfm
      [*:vl92tybp]sky_dod_insurrection_hdrft.pfm
      [*:vl92tybp]sky_dod_insurrection_hdrlf.pfm
      [*:vl92tybp]sky_dod_insurrection_hdrrt.pfm
      [*:vl92tybp]sky_dod_insurrection_hdrup.pfm

    At last when I check my "...\dod\materials\skybox\..." folder there is only 6 new .vtf.

  • mookie.gc
    • October 25, 2007 at 5:56 AM
    • #11

    http://mookie.mksvx.com/pack/miramar.7z

  • Seldoon182
    • October 27, 2007 at 11:10 PM
    • #12

    Tried everything... Nothing compile !

  • mookie.gc
    • October 28, 2007 at 10:20 PM
    • #13

    I never used splitskybox, just ran six separate TGA files through HDRShop, then ran those PFMs through VTEX. Right now if I drag and drop these PFMs onto VTEX they compile just fine; if these compile for you then your problem must be with splitskybox and maybe you'll need to split the TGA up and do each piece separately in HDRShop.

    http://mookie.mksvx.com/pack/miramarsrc.7z

  • Seldoon182
    • October 30, 2007 at 5:58 PM
    • #14
    Quote from mookie.gc

    I never used splitskybox, just ran six separate TGA files through HDRShop, then ran those PFMs through VTEX. Right now if I drag and drop these PFMs onto VTEX they compile just fine; if these compile for you then your problem must be with splitskybox and maybe you'll need to split the TGA up and do each piece separately in HDRShop.http://mookie-gc.net/pack/miramarsrc.7z

    That's what I did with my files...

    Btw I retry one more time with a test texture.

    [Blocked Image: http://pix.nofrag.com/c/6/9/dd20816e80c517d53f923722c2fe4.jpg]

    I Paid attention on eveything and looks like it works fine...

    [Blocked Image: http://pix.nofrag.com/3/3/d/af474a485430a59d0cd63156ce56a.jpg]

    Thank you all guy ! :wink:

  • TomWithTheWeather
    • October 30, 2007 at 8:27 PM
    • #15
    Quote

    Could you explain more sir ? I'm such a noob in Skybox creation ! :bananawrench:

    Just general commentary on the user-friendliness of Hammer.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  2. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  3. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  4. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  5. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  6. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  7. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  8. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM
  9. Bridges 2.0 by NEXSIDE, MAP SHOWCASE. ( Steam Workshop )

    MrTrane18
    June 1, 2026 at 7:46 PM
  10. Classic Maps Reborn For CS2

    SillySpaceCat
    May 31, 2026 at 10:33 PM
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™