3 Shader Questions

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

3 Shader Questions

Post by xandaxs »

Hello folks!
Long time since I've last posted on this part of the forum, hehe.

SOLVED
Spoiler: show
For some reason, the skybox I have in Lotr stopped working, although it did work before. Now it shows up as if there's no texture in it. I can't recall if I did change the shader but I don't think I did.
Here it is:

Code: Select all

textures/lotr_textures/skybox
{
qer_editorimage env/lotr_sky/grimmnight_ft.tga

   q3map_lightsubdivide 768
   q3map_backsplash 0 0

   q3map_sunEXT .192 .191 .181 25 0 23 3 16
   q3map_skylight 100 3
   q3map_lightmapFilterRadius 0 8

   q3map_noFog
   
   surfaceparm sky
   surfaceparm noimpact
   surfaceparm nolightmap
   surfaceparm nodlight
   
   skyparms env/lotr_sky/grimmnight - -
   
   nopicmip
   nomipmaps
     {
      map env/lotr_sky/clouds.tga
      tcMod scale 4 4
      tcMod scroll 0.012 0.012
      blendFunc GL_ONE GL_ONE
   }
     {
      animMap .15 textures/lotr_textures/black.tga env/lotr_sky/thunderbolt_1.tga textures/lotr_textures/black.tga
textures/lotr_textures/black.tga textures/lotr_textures/black.tga textures/lotr_textures/black.tga env/lotr_sky/thunderbolt_2.tga env/lotr_sky/thunderbolt_3.tga
      blendFunc add
      rgbGen identity
      rgbGen wave Sin 0 1 0 1.1
   }
}


Is there anything wrong?




Okay, second question. I've a glass shader, but the way you see the glass doesn't change with your movement, giving it that nice effect.
I tried to modify the shader just so I could make it work but for some reason it didn't, so I went back to using the old one.

Here it is:

Code: Select all

textures/elevator/glass_clear
{
qer_editorimage textures/lotr_textures/glass.tga
qer_trans 0.3
surfaceparm trans
surfaceparm nodamage
cull none
{
map textures/lotr_textures/glass.tga
blendfunc GL_ONE GL_ONE
rgbGen const ( 0.1 0.1 0.1 )
}
}



SOLVED
Spoiler: show
And now for tHe 3rd question, I've a series of advertising banners on my map, but there must be something wrong wit hthe shader as they don't show up in game, appears as if there's no texture.
Here's the shader:

Code: Select all

textures/lotr_textures/urtjumpers
{
   qer_editorimage textures/lotr_textures/urtjumpers.jpg
        cull none
        surfaceparm nolightmap
        surfaceparm alphashadow
       tessSize 64
       deformVertexes wave 100 sin 0 3 0 .7
        //deformVertexes normal 0.2 2
      nopicmic
      nomipmaps
        {
                map textures/lotr_textures/urtjumpers.jpg
                blendfunc gl_src_alpha gl_one_minus_src_alpha
                alphaFunc GE128
                rgbGen vertex
         }
}




Lastly I'd like to ask for help.
There's something wrong with lotr or my gtk. There are several things that work and then the next compile they stop working. Brushes that were there and visible and then disappear like if they were caulked.
I had a lift that used to work and now the trigger doesn't work, I don't know why and I don't know how to solve it.
Any ideas?

Cheers, xandaxs
[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

Post Reply