- Dec 28, 2008
- 944
- 1,152
I've been working on my 2D Skybox however it has been stretching an ungodly amount when loaded ingame.
I so far have tried 2 different vmts. One on a tutorial, one copying from valve's skybox texture that I edited.
Screenshot of my Sky, it was exactly the same with both vmts
It should look like:
The first vmt I used was from here
The second I copied off of Valves sky_night_01lf vmt, still stretched.
Now the VDC says a third vmt, that I haven't tried yet, but will soon.
Now I am wondering if I should "merge" all the vmts into:
Now, I was also thinking it could be a problem with my TGAs but that will be the last thing checked. If anyone has any ideas, or can see any problems, or knows a vmt that should work, and has worked in the past for them. Any help is appreciated.
I so far have tried 2 different vmts. One on a tutorial, one copying from valve's skybox texture that I edited.
Screenshot of my Sky, it was exactly the same with both vmts

It should look like:

The first vmt I used was from here
"UnlitGeneric"
{
"$basetexture" "skybox/sky_calore_01lf"
"$nofog" 1
"$ignorez" 1
}
The second I copied off of Valves sky_night_01lf vmt, still stretched.
"UnlitGeneric"
{
"$basetexture" "skybox/sky_calore_01lf"
"$nofog" 1
"$ignorez" 1
"$basetexture" "skybox/sky_calore_01lf"
"$basetexturetransform" "center 0 0 scale 1 2 rotate 0 translate 0 0"
"%keywords" "tf"
}
Now the VDC says a third vmt, that I haven't tried yet, but will soon.
"sky"
{
"$hdrcompressedTexture" "skybox/<filename>"
"$nofog" "1"
"$ignorez" "1"
"$basetexture" "skybox/<filename>"
}
Now I am wondering if I should "merge" all the vmts into:
"sky"
{
"$hdrcompressedTexture" "skybox/<filename>"
"$nofog" "1"
"$ignorez" "1"
"$basetexture" "skybox/<filename>"
"$basetexturetransform" "center 0 0 scale 1 2 rotate 0 translate 0 0"
"%keywords" "tf"
}
Now, I was also thinking it could be a problem with my TGAs but that will be the last thing checked. If anyone has any ideas, or can see any problems, or knows a vmt that should work, and has worked in the past for them. Any help is appreciated.