News:

Come Chat with us live! Learn how HERE!

Main Menu

Shaders on Weapons? [Move to Troubleshooting?]

Started by Plague Bringer, June 27, 2007, 07:26:26 PM

Plague Bringer

Okay, I want this texture:


On the transparent parts of this skin:

(Pic is .png for transparency, skin is .tga)


I want it scrolling like the Flamethrower gas, so I copied a bit out of it's shader:
models/weapons/flamer/gas
{
sort additive
cull disable
{
map models/weapons/flamer/gas.jpg
blendfunc GL_ONE GL_ONE
tcMod scroll 0.04 0.02
}
}


And edited it for the lcannon:
models/weapons/lcannon/gas
{
sort additive
cull disable
{
map models/weapons/lcannon/gas.jpg
blendfunc GL_ONE GL_ONE
tcMod scroll 0.04 0.02
}
}




I have a folder called zz-new, the same as my mod's .pk3. lcannon.tga, gas.jpg, flash.jpg, and lcannon.md3 are all in the zz-new/models/weapons/lcannon folder.

lcannon.shader is in my zz-new/scripts folder.

When I open up the model in Misfit 3D, I see my model, but no blue "gas".


I opened up the flamer just to see if it'd work there, and it does.

I double and triple checked flamer.tga and flamer.jpg to see if there was the gas texture there, but there isn't.

So, how do I get my shader on the lcannon model?

Thanks in advance!
U R A Q T


Plague Bringer

lcannon.shader in tremulous/zz-new/scripts
models/weapons/lcannon
{    
 {
   map models/weapons/lcannon/lvl2_fx.tga
   blendFunc GL_ONE GL_ZERO
   tcmod scale 7 7
   tcMod scroll 5 -5
   tcmod rotate 360
   rgbGen identity
 }


contents of tremulous/zz-new/models/lcannon:
flash.jpg
lcannon.tga
lvl2_fx.tga
lcannon.md3

Nope....
U R A Q T

Paradox

Just overwrite the gas.tga or whatever with your new one.
Presto.
And how do you open md3 in misfit? I cant get it to work, only md2

∧OMG ENTROPY∧

Plague Bringer

I put gas.tga in the models/lcannon folder and pointed the shader to it, but that didn't work.

In Misfit I see white, not transparent, parts.
U R A Q T