Tremulous Forum

Media => Mapping Center => Topic started by: X-20 on December 16, 2007, 06:44:26 am

Title: Shader image? i want textures :(
Post by: X-20 on December 16, 2007, 06:44:26 am
Alright i got a simple problem i put my .jps/.tga's in tremulous/base/textures/(mapname) and they load up in gtk.. but they dont show the actual texture in the texture box.. it just says shader image. Any suggestions here?
Title: Re: Shader image? i want textures :(
Post by: Odin on December 16, 2007, 07:43:58 am
All "textures" in Quake 3 are seen as shaders. Loading a simple texture means it gets loaded as the most basic shader of all:
Code: [Select]
textures/(mapname)/(texture)
{
    qer_shaderimage textures/(mapname)/(texture).(extension)
    {
        map textures/(mapname)/(texture).(extension)
        rgbGen identity
    }
    {
        map $lightmap
        blendFunc filter
    }
}
When you select a texture(with no shader) in GtkRadiant, the extension is cut off, because it is a shader of its own.
Add (mapname) to the end of shaderlist.txt, found in scripts/ so you can see your own textures and shaders.
Title: Re: Shader image? i want textures :(
Post by: X-20 on December 16, 2007, 07:33:29 pm
 :D it worked, thanks :P