- Nov 30, 2007
- 439
- 34
I decided to go ahead and give it a shot at making a custom skybox texture. I can't find any tuts on making the texture itself.
Help ???
I looked in vtfedit and seems the stock skyboxes have 6 vtf files. Why? Do I need that many also?
I read this at valve but not sure what all the variations are for and how is it that they go together? I mean, do I just make something different for each one or do they need to be seamless or what???
Prepare your TGA files (i.e. skynameBK.tga, skynameFT.tga, skynameUP.tga, skynameDN.tga, skynameRT.tga, skynameLF.tga)
Convert the TGA images to VTF (this will create a $SKYNAME.txt which you will later edit then rename to $SKYNAME.vmt)
After conversion, open the .txt and add:
"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"
}
For each file, append the appropriate image tag to the sky name (i.e. bk, ft, rt, lf, up, dn)
Rename the .txt files to .vmt
Now go into your mod's materials folder and create the folder skybox.
Copy your new VTF and VMT files into the skybox folder.
In Hammer, go to Map > Map Properties > Skybox Texture Name and type in your skyname, without the side tags.
Help ???
I looked in vtfedit and seems the stock skyboxes have 6 vtf files. Why? Do I need that many also?
I read this at valve but not sure what all the variations are for and how is it that they go together? I mean, do I just make something different for each one or do they need to be seamless or what???
Prepare your TGA files (i.e. skynameBK.tga, skynameFT.tga, skynameUP.tga, skynameDN.tga, skynameRT.tga, skynameLF.tga)
Convert the TGA images to VTF (this will create a $SKYNAME.txt which you will later edit then rename to $SKYNAME.vmt)
After conversion, open the .txt and add:
"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"
}
For each file, append the appropriate image tag to the sky name (i.e. bk, ft, rt, lf, up, dn)
Rename the .txt files to .vmt
Now go into your mod's materials folder and create the folder skybox.
Copy your new VTF and VMT files into the skybox folder.
In Hammer, go to Map > Map Properties > Skybox Texture Name and type in your skyname, without the side tags.
Last edited: