Tremulous Forum

Mods => Mod Releases => Non-Gameplay Changing => Topic started by: Plague Bringer on June 27, 2007, 07:26:26 PM

Title: Shaders on Weapons? [Move to Troubleshooting?]
Post by: Plague Bringer on June 27, 2007, 07:26:26 PM
Okay, I want this texture:
(http://xs316.xs.to/xs316/07263/gas.jpg)

On the transparent parts of this skin:
(http://xs316.xs.to/xs316/07263/lcannon.png)
(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".
(http://xs316.xs.to/xs316/07263/FUCK!.JPG)

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!
Title: Shaders on Weapons? [Move to Troubleshooting?]
Post by: .f0rqu3 on June 27, 2007, 07:37:51 PM
adv mara shader
Title: Shaders on Weapons? [Move to Troubleshooting?]
Post by: Plague Bringer on June 27, 2007, 08:04:10 PM
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....
Title: Shaders on Weapons? [Move to Troubleshooting?]
Post by: Paradox 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
Title: Shaders on Weapons? [Move to Troubleshooting?]
Post by: Plague Bringer 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.