Skybox glitch
Quote from GameBurger on April 21, 2015, 12:43 amI tried to port skybox textures from CSS level cs_militia (called "militia_hdr") and use it in Portal 2. Copied all the textures with GFCscape and put them in the Portal 2 skybox folder. Set default skybox texture to use in the map properties, made a test map and launched.
Sky works correctly (with the light_environment) but every time you look at it (skybox textures) all the level disappears and you can only see the sky around you. Once you look away it changes back.
Has anyone encountered this and knows a possible solution?
Thanks!
I tried to port skybox textures from CSS level cs_militia (called "militia_hdr") and use it in Portal 2. Copied all the textures with GFCscape and put them in the Portal 2 skybox folder. Set default skybox texture to use in the map properties, made a test map and launched.
Sky works correctly (with the light_environment) but every time you look at it (skybox textures) all the level disappears and you can only see the sky around you. Once you look away it changes back.
Has anyone encountered this and knows a possible solution?
Thanks!
Quote from josepezdj on April 21, 2015, 2:47 amThat happens because into the VMT material files there's this parameter:
Just erase it, erase that line.
In Portal, also make sure that you are using the shader "UnlitGeneric" instead of the "Sky" one.
Your typical material files should look like this:
- Code: Select all
"UnlitGeneric"
{
$basetexture "skybox/whateverFT"
$nofog 1
}Make sure that you have all the 6 VMT files looking similar to that one (each one with its own "$basetexture" though)
That happens because into the VMT material files there's this parameter:
Just erase it, erase that line.
In Portal, also make sure that you are using the shader "UnlitGeneric" instead of the "Sky" one.
Your typical material files should look like this:
- Code: Select all
"UnlitGeneric"
{
$basetexture "skybox/whateverFT"
$nofog 1
}
Make sure that you have all the 6 VMT files looking similar to that one (each one with its own "$basetexture" though)
Quote from GameBurger on April 21, 2015, 8:10 amThanks a lot!
Thanks a lot!