Quake3World.com Forums
     Level Editing & Modeling
        Problems with new weapon shader


Post new topicReply to topic
Login | Profile | | FAQ | Search | IRC




Print view Previous topic | Next topic 
Topic Starter Topic: Problems with new weapon shader

Grunt
Grunt
Joined: 20 Feb 2011
Posts: 57
PostPosted: 03-12-2014 01:23 PM           Profile Send private message  E-mail  Edit post Reply with quote


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:
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?




Top
                 
Quake3World.com | Forum Index | Level Editing & Modeling


Post new topic Reply to topic


cron
Quake3World.com
© ZeniMax. Zenimax, QUAKE III ARENA, Id Software and associated trademarks are trademarks of the ZeniMax group of companies. All rights reserved.
This is an unofficial fan website without any affiliation with or endorsement by ZeniMax.
All views and opinions expressed are those of the author.