Author Topic: Shaders on Weapons? [Move to Troubleshooting?]  (Read 6766 times)

Plague Bringer

  • Posts: 3815
  • Turrets: +147/-187
Shaders on Weapons? [Move to Troubleshooting?]
« on: June 27, 2007, 07:26:26 pm »
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:
Code: [Select]
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:
Code: [Select]
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

.f0rqu3

  • Guest
Shaders on Weapons? [Move to Troubleshooting?]
« Reply #1 on: June 27, 2007, 07:37:51 pm »
adv mara shader

Plague Bringer

  • Posts: 3815
  • Turrets: +147/-187
Shaders on Weapons? [Move to Troubleshooting?]
« Reply #2 on: June 27, 2007, 08:04:10 pm »
lcannon.shader in tremulous/zz-new/scripts
Code: [Select]
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

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Shaders on Weapons? [Move to Troubleshooting?]
« Reply #3 on: June 27, 2007, 08:31:34 pm »
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

  • Posts: 3815
  • Turrets: +147/-187
Shaders on Weapons? [Move to Troubleshooting?]
« Reply #4 on: June 27, 2007, 08:38:27 pm »
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