2D skybox doesn't stretch downwards?

Huckle

L3: Member
May 31, 2010
149
101
So I've been trying to work on my custom skybox for my art pass map (to make it not look like crap with fog). I've sucessfully gotten it in-game and it while it looks quite bad, the concept seems sound. My problem is that it doesn't scale downwards from the horizon.

The skybox that I've edited and most other skyboxes seem to stretch the bottom-most pixel from the horizon down to the extreme bottom of the skybox. Mine doesn't, instead it creates a duplicate skybox texture that runs from the bottom up to the horizon. I guess one solution would be to just create a square texture and not scale it but it feels a bit cheap.

The only thing that I've changed is the name of the texture itself in the material file which looks like this:
Code:
"sky"
{
	
	"$hdrbasetexture" "skybox/sky_night_fog_01bk"	
	"$nofog" "1"
	"$ignorez" "1"
	"$basetexture" "skybox/sky_night_fog_01bk"
	"$basetexturetransform" "center 0 0 scale 1 2 rotate 0 translate 0 0"
	"%keywords" "tf"
}

Example two moon screenshot:
duplicate.jpg


Any ideas?
 
Nov 14, 2009
1,257
378
Although it looks like you made a box and applied the skybox textures, im sure you didnt. Try removing the:


"$basetexturetransform" "center 0 0 scale 1 2 rotate 0 translate 0 0"
line from the VMF and try again.
 

Huckle

L3: Member
May 31, 2010
149
101
Although it looks like you made a box and applied the skybox textures, im sure you didnt. Try removing the:


"$basetexturetransform" "center 0 0 scale 1 2 rotate 0 translate 0 0"
line from the VMF and try again.

Nah that's just how the skybox looks if your transitions on the edges are absolute crap. I've got some extra room there at the moment to be able to fly out and see the skybox since I'm working on it.

The only difference if I remove the scale parameters is that the skybox doesn't take up half the height (horizon up), instead it takes up the entire height of the skybox. I've already tried that and doing it with "center 0 0 scale 0 0 rotate 0 translate 0 0.5" it's twice as high but it still tiles.