PDA

View Full Version : Quick Shader Question...


Marker0077
03-10-2003, 05:35 AM
I have a model that i want to hide the default skin from. There are actually 3 default skins for this model (as well as blue & red) (1 is ANH, ESB, & RotJ), but the thing is I don't want the same skin showing up twice on the player model select menu, so what I want to do is use a shader to make the icon (from another image not using an icon_whatever name) instead of an actual icon jpg.

Currently I have the shader like...
models/players/player_model/icon_default
{
qer_editorimage models/players/player_model/icon_default
{
animMap 0.0077 models/players/player_model/player_model_icon
blendFunc GL_ONE GL_ZERO
}
}
I don't know anything about shaders really & I normally use this to do slideshow images for certain icons. This is working, however, in low detail the avatar icon is fuzzy & I was curious if perhaps there was a better way to do this.

Wudan
03-10-2003, 09:09 AM
In the top level, under
qer_editorimage models/players/player_model/icon_default
put either
nopicmip
or
nomipmap

... maybe both - but that should do it for ya. It prevents the graphics card from making 'low-res' versions of that image if you have the graphics settings turned way down.

Marker0077
03-11-2003, 04:12 AM
I tried using both & it's not working. I'm sure it's something simple, but again, I do not know much about shaders. Can you please tell me exactly how I should have this entered in?