Tremulous Forum
Mods => Mod Releases => Non-Gameplay Changing => Topic started 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!
-
adv mara shader
-
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....
-
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
-
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.