Shader Issue (User Issue)


(shazmax) #1

I get the black and orange texture missing on compile. Trying to create a transparent image of a railing…etc which isn’t showing up. I’m sure its a user issue as I’m not any bit of a script genuis. Here’s my shader (named shaz_rail.shader):

textures/shaz_gothic/shaz_rail
{
qer_editorimage textures/shaz_gothic/gothic_rail.tga
nomipmaps
nopicmip
surfaceparm nomarks
surfaceparm nonsolid
surfaceparm alphashadow
surfaceparm pointlight
surfaceparm trans
implicitMask -
}

What I’ve done:

Verfied that shaz_rail.shader is in the shaderlist
Verified that the .tga has an alpha channel
Verified that the textures/shaz_gothic/gothic_rail.tga is in the correct directory
I also have the directory shaz_gothic in the shaderlist to see it in gtkradiant textures
The image shows up in gtkradiant (which I know has no real bearings on the issue)

Still seeing orange and black. I humbly come before you for two heads are better than one. I’m assuming you can do an implicit mask as I’m using ET but go figure. Let me know if anything is awry.


(Ifurita) #2

what error messages are you getting? After the map loads, drop the console and scroll up a bit and you’ll see error messages in red or yellow. Is your texture a power of 2 on all sides?


(Mr_Tickles) #3

Also, when the image shows up in the editor, does it have a white square around it in the textures window?


(Moonkey) #4

I think the problem is that you’re using implicitMask, but your shader and texture are called different things.

Try changing the shader block to
textures/shaz_gothic/gothic_rail


(shazmax) #5

We’re in business! Thnx for the help!

You know how it goes…you know everything is correct, or so you think it is. I checked my image because I knew it was a power of two. Nope it was 256 x 62. A small mistake…but that wasn’t the issue because it was still showing up as orange and black. But still thnx its good to double check your stuff even though you think you have it right. The main issue was that I needed it to be named gothic_rail in the shader name because of the implicit mask. I must of renamed my .tga several times and had to change it again in the shader. I must not have changed it again. Oh to be coding late at night. Much thanks to the community - and keep up the support.

I honestly didn’t want to ask (out of pride) - but I’m glad I did.


(shazmax) #6

BTW - its my first home made alpha texture. I was having issues with photoshop 7.0 not creating an alpha channel…got that fixed. Then on to other issues of course because there’s a lot of different ways for creating alpha shaders and to find the right one that’s updated for ET. Finally! Now to create a map entirely out of alpha channeled images (j/k).