Skybox "blur" problem

Avatar
Askie
7 Posts
Posted Apr 26, 2013
Hey there. I've been hitting my head on this problem for a couple of hours now, and not finding anything about this around (though in my opinion it sounds like a possible common problem), I thought I could ask for it myself.

I've done some mapping before with the Hammer Editor, but this is the very first time making a 2D skybox. My problem is that though everything looks ok into the editor, when running the map in the game the skybox doesn't show, leaving instead this blurry stuff.

http://i.imgur.com/4hoB5fr.jpg

I've tried following three different tutorials for this, checking all the details on the Developer Wiki, following all the steps as they are explained, and even just restarting both the editor and the computer (when you're out of ideas...). Do you have any idea what may cause this?

Advertisement
Registered users don’t see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Apr 26, 2013
Replied 2 hours later
Very odd, I've never seen that before. Could you post a VMF?
Avatar
Lpfreaky90
2,842 Posts
Posted Apr 27, 2013
Replied 8 hours later
what texture did you use?
Is it tools/skybox and did you set the correct skybox?

If you did; is it a custom texture?
Did you download it from the interwebs?
Check the vmt files. Portal 2 has a broken sky material ;
make it an unlitgeneric:

unlitgeneric
{
$basetexture "skybox/stars01"
}

Is what you need to have; make sure to change your $basetexture to the proper texture :wink:

Avatar
Askie
7 Posts
Posted Apr 27, 2013
Replied 38 minutes later
I used the tools/toolsskybox texture, and no, the sky I tried to use is simply the sky_day01_01 one. I also tried a couple of other ones, but they give the same problem.

I'm a little in a hurry right now, but later I will try that and let you know, thanks!

Avatar
josepezdj
2,386 Posts
Posted Apr 27, 2013
Replied 27 minutes later
That blur looks like a leak in your map
Avatar
Askie
7 Posts
Posted Apr 27, 2013
Replied 1 hour later

josepezdj wrote:
That blur looks like a leak in your map

I don't really think so. As a test I tried making the simpliest map possible, a classic hollowed out cube, and still I have that problem.

Anyway, I've had a look into the pak01_dir.vpk file with GCFScape, and didn't find the textures I tried to use in the Skybox directory. There were indeed just a few ones, like sky_black_nofog, sky_fog, sky_white. I tried to use one of those, and it does work, though the sky just being a solid color. Is there any way I can get to use one of the skies listed on the Developer Wiki?

Avatar
josepezdj
2,386 Posts
Posted Apr 27, 2013
Replied 50 minutes later

Askie wrote:
Is there any way I can get to use one of the skies listed on the Developer Wiki?

Of course. If for example you want that sky you mentioned, sky_day01_01, all you need is HL2 or maybe Portal, as the wiki says this skybox belongs to those :biggrin: Open the "source materials.gcf" and extract your skybox from the /skybox folder.

Now you only have to place the files into your portal 2/portal2/materials/skybox folder and add the name of the desired skybox in your map's properties.

Also you might have to change a bit the .vmt files as Lp said above... check out into them and if they say "sky" at the top, change it by "UnlitGeneric"; then delete all lines except the one for the $basetexture and you'll be done.

Avatar
Askie
7 Posts
Posted Apr 27, 2013
Replied 30 minutes later
Ah, I see! :biggrin: I probably misunderstood that part of the Wiki, then. Unfortunately I do not own HL2, but I can check if Portal has that one (I think so, considering the ending of the game not being a separated movie). Anyway, would HL2: Lost Coast or Deathmatch be ok as well for this purpose? About the files, I think I understood how to work with them while searching solution to my problem, hehe. Thank you for the answer!
Avatar
FelixGriffin
2,680 Posts
Posted Apr 27, 2013
Replied 5 hours later
Any game that gets you the Source SDK will work, including Portal, Left 4 Dead, or Team Fortress 2.

But I think I have a version of that sky already patched for Portal 2, it was part of a mod that never took off. I'll see if I can find it.

Avatar
Askie
7 Posts
Posted Apr 28, 2013
Replied 15 hours later

I finally managed to make the skybox work! But there's a new problem. When it didn't work, the game worked normally though; now, with the skybox working, this happens:

http://i.imgur.com/EGP20qZ.jpg

The character is floating in the air, with no possibility to move, and the ground looks lacking of textures. I tried a few things, but still nothing. Any idea how to solve this thing? Sometimes I feel like I'm the only one having so many problems doing something so simple. :biggrin:

Avatar
FelixGriffin
2,680 Posts
Posted Apr 28, 2013
Replied 1 hour later
Did you patch the Sky shader to UnlitGeneric, and did you change $ignorez from 1 to 0?
Avatar
josepezdj
2,386 Posts
Posted Apr 28, 2013
Replied 21 minutes later
Yeah, that is because of the parameter $ignorez 1. Just delete it and it won't make your skybox to be rendered in first plane.
Advertisement
Registered users don’t see ads! Register now!
Avatar
Askie
7 Posts
Posted Apr 28, 2013
Replied 11 minutes later
Fixed that too. :razz: Thank you guys, it's perfectly working now! I really appreciate your help.