Missing textures in game....


(Axedup) #1

heres a list of 3 shaders ive been using, the last 2 are working correctly in game, and in the GTK texture browser. The first 1 is viewable in GTK, but not in game, its driving me bonkers!!! :banghead:

textures/axedup/barbwire_new_1
{
qer_editorimage textures/an_objects/an_barbed.tga
surfaceparm alphashadow
cull none
{
map textures/an_objects/an_barbed.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaFunc GT0
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}

textures/axedup/barbwire_new_2
{
qer_editorimage textures/an_objects/an_barbed2.tga
surfaceparm alphashadow
cull none
{
map textures/an_objects/an_barbed2.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaFunc GT0
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}

textures/axedup/barbwire_new_3
{
qer_editorimage textures/an_objects/an_barbed_wire.tga
surfaceparm alphashadow
cull none
{
map textures/an_objects/an_barbed_wire.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaFunc GT0
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}

}

Any ideas?

Thx in advance…

Axedup


(Loffy) #2

hm, I would check the tga “an_barbed.tga”, to see if it is in the right format. maybe you can re-do it? (I mean, there might be something wrong with the alpha channel or so)?
// L.


(Axedup) #3

thx, Well they were all working from before, they have come over froma q3 mod, and its only since I moved it to ET has it all balls’ed up.

The shaders r good, coz ive redone them from new, so I’ll have a look at that…

BRB

Axedup


(Mr_Tickles) #4

Ummm, I’ve used a few custom textures recently and while it’s fresh in my mind, you need to have you’re pics as dimensions in powers of 2. 2^x X 2^y. I.e. 256 X 512, 256 X 256, 64 X 32. My textures also showed up only in radiant but not in game till I found this little gem. But seen as though yours worked elsewhere, that probably isn’t the problem.


(MadJack) #5

Axedup, you might want to check in the console if you see an error message. Sometimes those errors will be far at the top. Scroll to the top of it. It should be easy to spot as errors (all?) are written in red.


(Axedup) #6

cool thx for info, but yeah the dimensions and alpha channels r all ok. I’ll check the console log in a sec

thx…

Axedup


(=DaRk=CrAzY-NuTTeR) #7

puzzler

is there a limit of how many custom textures you can use?


(MadJack) #8

AFAIK there’s a limit of 512 textures in a map. That they be custom or not doesn’t matter I think.


(=DaRk=CrAzY-NuTTeR) #9

wow, that suxs