Lightsaber?


(WingWong) #1

Hi guys.

I have done model for lightsaber - knife.

It all works nicely etc etc, but can anyone make me shader which would make one current texture GLOW ?
Preferably colored glow, or atlleast give away some light like lamps do in some certain rooms on maps for example, just cant figure out that shader file myself :frowning:


(carnage) #2

its posiblt to make the glowing bit not be effected by lighting so it would aprea bright

but to make the glowing effect that needs doom3 engine technology, you could try get round it by making a set of polloys around the lightsaber then give then a semi transparnt texture to mimic the glow


(Jaquboss) #3

maybe some autosprite can make it working…


(jaybird) #4

Is he perhaps talking about dlights?


(LION) #5

no i think this causes to write a mod for this weapon?!


(Cheeezy) #6

i have actually been working on a lightsaber of my own in a starwars mod maybe i could help

what you want is a hilt model with many saber blade meshes on the top that are semi transparent. the top of the model would look like this

the red is your saber blade mesh which would be transparent and the green would be your blade while the blue is the hilt.

you would make the blade transparent by making a shader
here is the shader command you would use.

{
	qer_editorimage models/weapons2/saber/saberblade.tga
	cull disable
	{
		map models/weapons2/saber/saberblade.tga
		blendfunc add
		rgbGen wave sin 0.3 0.1 0 0.1 
	}
}

this will also make the texture pulsate which is a nice effect on a lightsaber

here is what your finished product would look like