Tremulous Forum

Media => Mapping Center => Topic started by: Shifty on January 18, 2011, 07:09:55 am

Title: Why doesn't this shader show up in radiant?
Post by: Shifty on January 18, 2011, 07:09:55 am
I am trying to make a shader which appears as a solid object, and the player cant move through, and is effected by light, but doesn't cast a shadow. If this is not possible, then it can be unaffected by light and cast no shadow.

I am trying to use this shader, but it wont show up in radiant even though others from the shader file do:
Quote
textures/vantage/grey_filler_nolight
{
   qer_editorimage textures/vantage/Grey_filler.jpg
   surfaceparm nonsolid
   surfaceparm playerclip
   {
      map $lightmap
      rgbGen identity
      tcGen lightmap
   }
   {
      map textures/vantage/Grey_filler.jpg
      blendfunc filter
      rgbGen identity
   }
}

Can someone tell me what I have done wrong?

Thanks
Title: Re: Why doesn't this shader show up in radiant?
Post by: CATAHA on January 18, 2011, 12:09:06 pm
ur shader file in correct pk3 placed in correct directory? /base/scripts/shaderlist.txt have line with ur shader file (vantage) name?
Title: Re: Why doesn't this shader show up in radiant?
Post by: Shifty on January 19, 2011, 12:49:01 am
Yeah, shaders from the same vantage.shader file show up..but not this one.
Title: Re: Why doesn't this shader show up in radiant?
Post by: CATAHA on January 19, 2011, 01:24:35 am
shader image missing or shader missing?
if shader image missing then check this:

qer_editorimage textures/vantage/Grey_filler.jpg

jpeg should be uncompessed and size should be a power of two (64x64, 128x256, etc)
Title: Re: Why doesn't this shader show up in radiant?
Post by: Odin on January 19, 2011, 08:56:46 pm
Try specifying it manually in the surface inspector(press S when selecting a surface). Just type it in the text field up top and press Enter and see what happens.