Jump to content

Recommended Posts

Posted

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...

c865fa4c941815450779634d6430f.jpg

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

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

aff23e4f631976d6628236a9b1952.jpg

(Compiled with normal rad and -final)

>> The entire 2D Skybox.

>> One of my .vmt quoted.

"sky"

{

	"$hdrbaseTexture" "skybox/sky_dod_insurrection_hdrbk"

	"$nofog" "1"

	"$ignorez" "1"

	"$basetexture" "skybox/sky_dod_insurrection_bk"

}

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

Posted

Did you check all your vmts?

sky_dod_insurrection_hdrbk

"sky"

{

	"$hdrbaseTexture" "skybox/sky_dod_insurrection_hdrbk"

	"$nofog" "1"

	"$ignorez" "1"

	"$basetexture" "skybox/sky_dod_insurrection_bk"

}
sky_dod_insurrection_hdrdn
"sky"

{

	"$hdrbaseTexture" "skybox/sky_dod_insurrection_hdrdn"

	"$nofog" "1"

	"$ignorez" "1"

	"$basetexture" "skybox/sky_dod_insurrection_dn"

}
sky_dod_insurrection_hdrft
"sky"

{

	"$hdrbaseTexture" "skybox/sky_dod_insurrection_hdrft"

	"$nofog" "1"

	"$ignorez" "1"

	"$basetexture" "skybox/sky_dod_insurrection_ft"

}

sky_dod_insurrection_hdrlf
"sky"

{

	"$hdrbaseTexture" "skybox/sky_dod_insurrection_hdrlf"

	"$nofog" "1"

	"$ignorez" "1"

	"$basetexture" "skybox/sky_dod_insurrection_lf"

}

sky_dod_insurrection_hdrrt
"sky"

{

	"$hdrbaseTexture" "skybox/sky_dod_insurrection_hdrrt"

	"$nofog" "1"

	"$ignorez" "1"

	"$basetexture" "skybox/sky_dod_insurrection_rt"

}

sky_dod_insurrection_hdrup
"sky"

{

	"$hdrbaseTexture" "skybox/sky_dod_insurrection_hdrup"

	"$nofog" "1"

	"$ignorez" "1"

	"$basetexture" "skybox/sky_dod_insurrection_up"

}

That's way harder than it needs to be. :fist:

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

Posted

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...

Posted

Have you read this? http://developer.valvesoftware.com/wiki/Skybox

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.

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.

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".

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.

c78cfc5597e19331ba53cca9a3bf2.jpg

Any advices ?

Posted

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.

Posted

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.

Posted

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. :(

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

- Please. It should be really helpfull !

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.

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. :cry:

Posted

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.

dd20816e80c517d53f923722c2fe4.jpg

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

af474a485430a59d0cd63156ce56a.jpg

Thank you all guy ! :wink:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Mapcore Supporters

    aphexjh       Badroenis       celery⭐      EGO DEATH ⭐      Freaky_Banana      FMPONE ⭐      Harry Godden      JimWood ⭐      JSadones      poLemin      Vaya

    Funds go towards hosting and license costs, Discord server boosts, and more. If you'd like to donate, check out our Patreon announcement.

×
×
  • Create New...