2D skybox doesn't stretch downwards?

Discussion in 'Mapping Questions & Discussion' started by Huckle, Aug 10, 2010.

  1. Huckle

    Huckle L4: Comfortable Member

    Messages:
    150
    Positive Ratings:
    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:
    [​IMG]

    Any ideas?
     
  2. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    What happens if you translate it upwards?
     
  3. Huckle

    Huckle L4: Comfortable Member

    Messages:
    150
    Positive Ratings:
    101
    Great question. Unfortunately, pretty much what you'd expect. It still wraps around, only starts at another point.

    [​IMG]
     
  4. Grim Tuesday

    aa Grim Tuesday

    Messages:
    1,257
    Positive Ratings:
    376
    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.
     
  5. Huckle

    Huckle L4: Comfortable Member

    Messages:
    150
    Positive Ratings:
    101
    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.