v_weapon_flash.mdc Transparency ? help needed


(Hewster) #1

Hi,

I’m re-making the weapons for our WildWest mod, and have decided to
try and get a solution to this problem, which first time round, I just
circumvented.

The problem is this… When trying to create my own ‘flash’ weapon
model, I cannot get the model to display the transparency of the
texture, even if I simply import and export the original model, and use the
original texture, transparent areas of the texture show up as black :frowning:

I have used several different 3D apps, converters and exporters,
all with the same result.

Anyone got any ideas how to overcome this issue ?

Much obliged,

Hewster

Screenies can be supplied
(Wish this forum could accept image attachments)


(digibob) #2

To make it actually transparent, you need a shader, check the texture path is pointing to a shader, and if it still doesnt work, post the shader up here and we can see what’s going wrong, if not, find the shader!


(Hewster) #3

Thanx djbob,

I rember trying to make a shader first time round, and after looking at
the flash.mdc file mistakenly concluded that since it was referencing
a .tga directly, using the alpha channel for its transparency.

Thanx to your conformation that it is a shader, I have found the original
wolf one in the models shader, contained within the pak0.pk3:

models/weapons2/machinegun/f_machinegun
{
	nofog
	sort additive
	cull disable
	{
		animMap 2 models/weapons2/machinegun/f_machinegun.tga models/weapons2/machinegun/f_machinegun1.tga	
	blendfunc GL_ONE GL_ONE
	}
}

I’ve copied and re-named the .tga’s into my own folder, and created
a suitable shader from the above, and now it all works OK :slight_smile:

Cheers

Hewster

New 1947 Colt Dragoon model for WildWest: