Page 1 of 2

Shader Problem - Skybox

Posted: Fri Dec 16, 2011 10:47 pm
by xandaxs
What's wrong with this? It doesnt work but idk what i can do.

Code: Select all

textures/amappingtennis/calm_sea
{
   qer_editorimage textures/askies/calm_sea.jpg
   surfaceparm sky
   surfaceparm noimpact
   surfaceparm nolightmap
   surfaceparm nomarks
   q3map_globaltexture
   q3map_surfacelight 200
   surfaceparm sky

        nopicmip
        nomipmaps

   q3map_sunExt 1 0.9 0.84 100 290 45
   skyparms textures/askies/calm_sea - -
}


textures/amappingtennis/distant_sunset
{
   qer_editorimage textures/askies/distant_sunset.jpg
   surfaceparm sky
   surfaceparm noimpact
   surfaceparm nolightmap
   surfaceparm nomarks
   q3map_globaltexture
   q3map_surfacelight 200
   surfaceparm sky

        nopicmip
        nomipmaps

   q3map_sunExt 1 0.9 0.84 100 290 45
   skyparms textures/askies/distant_sunset - -
}

Re: Shader Problem - Skybox

Posted: Fri Dec 16, 2011 10:49 pm
by Rayne
Why do you have 2 sunExt's in there.

Re: Shader Problem - Skybox

Posted: Fri Dec 16, 2011 11:02 pm
by xandaxs
Updated Shader, Still not working..

Code: Select all

textures/amappingtennis/calm_sea
{
   qer_editorimage textures/askies/calm_sea_bk.jpg
   surfaceparm sky
   surfaceparm noimpact
   surfaceparm nolightmap
   q3map_globaltexture
   surfaceparm sky

        nopicmip
        nomipmaps

   q3map_sunExt 1 0.9 0.84 100 290 45
   skyparms textures/askies/calm_sea - -
}


Code: Select all

textures/amappingtennis/distant_sunset
{
   qer_editorimage textures/askies/distant_sunset_bk.jpg
   surfaceparm sky
   surfaceparm noimpact
   surfaceparm nolightmap
   q3map_globaltexture
   surfaceparm sky

        nopicmip
        nomipmaps

   q3map_sunExt 1 0.9 0.84 100 290 45
   skyparms textures/askies/distant_sunset - -
}


Should I add { and } before and after nopicmip and nomipmaps?

Re: Shader Problem - Skybox

Posted: Sat Dec 17, 2011 1:00 am
by Delirium
define not working...

Re: Shader Problem - Skybox

Posted: Sat Dec 17, 2011 9:58 am
by xandaxs
well, nothing shows up in Radiant. No square I can select to texture the sky..

Re: Shader Problem - Skybox

Posted: Sat Dec 17, 2011 10:06 am
by DagF
Have you added the shader file name that these skyboxes are scritped in in the shaderlist?

Re: Shader Problem - Skybox

Posted: Sat Dec 17, 2011 10:07 am
by xandaxs
yea I have

Re: Shader Problem - Skybox

Posted: Sat Dec 17, 2011 10:22 am
by KroniK
Just to be sure.... the name of the shader file is "amappingtennis" right?? Cause I have made that mistake before.... ;)

Re: Shader Problem - Skybox

Posted: Sat Dec 17, 2011 10:24 am
by xandaxs
yeah, it is

Re: Shader Problem - Skybox

Posted: Sat Dec 17, 2011 10:50 am
by KroniK
Well, because nothing at all is showing up in radiant, this says that something is wrong with the filename, shaderlist, location of the shader/texture or possibly the name of the texture. Most of the time you can have something totally wrong with the shader code, but it will still show up in radiant.