Problems with new weapon shader

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
vinny
Posts: 57
Joined: Sun Feb 20, 2011 12:25 pm

Problems with new weapon shader

Post by vinny »

I just created a new weapon model and exported to MD3 using Misfit Model 3D. The tags are OK and everything works, just the material that is not applied. It appears perfectly on Misfit Model 3D. My texture is called mg_DIF.tga and is stored in the same folder as the model, machinegun.md3. I have created a shader with the following contents:

Code: Select all

models/weapons2/machinegun/mg_DIF
{
	sort additive
	cull disable
	{
		map	models/weapons2/machinegun/mg_DIF.tga
		blendfunc GL_ONE GL_ONE
	}
}
However, the model still has no texture. Anyone has any ideas of what might be wrong? Using a hex editor, the MD3 file has the correct texture name: mg_DIF.tga. But it does not have the full path (models/weapons2/machinegun/)... is this correct? Does the group name have anything to do with the texture?
Post Reply