Shader Problem - Skybox

Having a problem with a shader or texture
User avatar
xandaxs
Posts: 959
Joined: Wed Aug 17, 2011 5:22 pm
Location: Oeiras, Portugal

Shader Problem - Skybox

Post 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 - -
}
[12:25] <JohnnyEnglish> morning Nounou
[12:25] <JohnnyEnglish> wotcha doing?
[12:25] <Nounou> hello
[12:26] <Nounou> nothing much, i've nothing to do at work so
[12:26] <Nounou> modeling woman
[12:26] <JohnnyEnglish> woo
[12:26] <JohnnyEnglish> real women?
[12:26] <Nounou> realistic yes, on maya

Image

User avatar
Rayne
Site Admin
Posts: 624
Joined: Wed Aug 17, 2011 5:22 pm

Re: Shader Problem - Skybox

Post by Rayne »

Why do you have 2 sunExt's in there.

User avatar
xandaxs
Posts: 959
Joined: Wed Aug 17, 2011 5:22 pm
Location: Oeiras, Portugal

Re: Shader Problem - Skybox

Post 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?
[12:25] <JohnnyEnglish> morning Nounou
[12:25] <JohnnyEnglish> wotcha doing?
[12:25] <Nounou> hello
[12:26] <Nounou> nothing much, i've nothing to do at work so
[12:26] <Nounou> modeling woman
[12:26] <JohnnyEnglish> woo
[12:26] <JohnnyEnglish> real women?
[12:26] <Nounou> realistic yes, on maya

Image

User avatar
Delirium
Posts: 366
Joined: Sat Aug 27, 2011 8:37 am
Location: Auckland, New Zealand

Re: Shader Problem - Skybox

Post by Delirium »

define not working...
Image

User avatar
xandaxs
Posts: 959
Joined: Wed Aug 17, 2011 5:22 pm
Location: Oeiras, Portugal

Re: Shader Problem - Skybox

Post by xandaxs »

well, nothing shows up in Radiant. No square I can select to texture the sky..
[12:25] <JohnnyEnglish> morning Nounou
[12:25] <JohnnyEnglish> wotcha doing?
[12:25] <Nounou> hello
[12:26] <Nounou> nothing much, i've nothing to do at work so
[12:26] <Nounou> modeling woman
[12:26] <JohnnyEnglish> woo
[12:26] <JohnnyEnglish> real women?
[12:26] <Nounou> realistic yes, on maya

Image

User avatar
DagF
Posts: 277
Joined: Thu Aug 18, 2011 8:40 am
Location: Norway
Contact:

Re: Shader Problem - Skybox

Post by DagF »

Have you added the shader file name that these skyboxes are scritped in in the shaderlist?
Image

User avatar
xandaxs
Posts: 959
Joined: Wed Aug 17, 2011 5:22 pm
Location: Oeiras, Portugal

Re: Shader Problem - Skybox

Post by xandaxs »

yea I have
[12:25] <JohnnyEnglish> morning Nounou
[12:25] <JohnnyEnglish> wotcha doing?
[12:25] <Nounou> hello
[12:26] <Nounou> nothing much, i've nothing to do at work so
[12:26] <Nounou> modeling woman
[12:26] <JohnnyEnglish> woo
[12:26] <JohnnyEnglish> real women?
[12:26] <Nounou> realistic yes, on maya

Image

User avatar
KroniK
Posts: 169
Joined: Tue Dec 06, 2011 9:44 pm
Location: Fairbanks, Alaska, USA

Re: Shader Problem - Skybox

Post by KroniK »

Just to be sure.... the name of the shader file is "amappingtennis" right?? Cause I have made that mistake before.... ;)
"I still miss my ex girlfriend, but my aim is improving."

User avatar
xandaxs
Posts: 959
Joined: Wed Aug 17, 2011 5:22 pm
Location: Oeiras, Portugal

Re: Shader Problem - Skybox

Post by xandaxs »

yeah, it is
[12:25] <JohnnyEnglish> morning Nounou
[12:25] <JohnnyEnglish> wotcha doing?
[12:25] <Nounou> hello
[12:26] <Nounou> nothing much, i've nothing to do at work so
[12:26] <Nounou> modeling woman
[12:26] <JohnnyEnglish> woo
[12:26] <JohnnyEnglish> real women?
[12:26] <Nounou> realistic yes, on maya

Image

User avatar
KroniK
Posts: 169
Joined: Tue Dec 06, 2011 9:44 pm
Location: Fairbanks, Alaska, USA

Re: Shader Problem - Skybox

Post 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.
"I still miss my ex girlfriend, but my aim is improving."

Post Reply