Page 1 of 1
Custom texture help.
Posted: Wed Jan 04, 2006 9:02 pm
by Classic
I've set up my own custom texture pack like the tutorial an Nemisis says, but when I try to pull them up the textures it loads them but not the shaders.
Here is an example of my shader script. Is anything wrong with it?
textures/mine/darkmarble.tga
{
qer_keyword rock
qer_keyword wall
surfaceparm sand
{
map textures/mine/darkmarble.tga
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}
Posted: Wed Jan 04, 2006 9:27 pm
by At0miC
U can remove '.tga' after darkmarble on the first line. And u can the 'qer_editorimage' key with value 'textures/mine/darkmarble.tga' so it will show an example of the texture in radiant.
Posted: Wed Jan 04, 2006 10:06 pm
by Classic
At0miC wrote:. And u can the 'qer_editorimage' key with value 'textures/mine/darkmarble.tga' so it will show an example of the texture in radiant.
Sorry I don't quite get what you mean, and shouldn't it automaticaly add an example in the texture box? Also it dosn't load the shaders.
Posted: Wed Jan 04, 2006 10:30 pm
by PKM
doesn't he also have an extra "}" bracket at the end. i know textures that are using the alpha get that but regular textures ?
example:
Code: Select all
textures/c_structure/sfront1e3
{
qer_keyword concrete
qer_keyword wall
surfaceparm stone
{
map textures/c_structure/sfront1e3.tga
rgbGen identity
depthWrite
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
depthFunc equal
}
}
textures/c_structure/sfront1e2
{
qer_keyword concrete
qer_keyword wall
surfaceparm stone
{
map textures/c_structure/sfront1e2.tga
rgbGen identity
depthWrite
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
depthFunc equal
}
}
if you take the above, classic , and just insert your texture names, it should work fine.
Posted: Thu Jan 05, 2006 12:17 am
by Classic
So you only need one script? I had one per texture.
Posted: Thu Jan 05, 2006 12:25 am
by bdbodger
You can put all your shaders in to one .shader file and put it in the scripts directory
Posted: Thu Jan 05, 2006 2:57 pm
by Classic
Okay thanks the only problem now is though exerything loaded I can only see 3 of my 7 textures.
Posted: Thu Jan 05, 2006 3:05 pm
by PKM
Classic wrote:Okay thanks the only problem now is though exerything loaded I can only see 3 of my 7 textures.
if you want, zip everything up (script(s) and texture(s) then email it to me
wholesale_phil@yahoo.com
and i'll take a look at it.