Tremulous Forum

Media => Modeling Center => Topic started by: LowHP on November 19, 2009, 04:02:48 am

Title: Weapon model textureless.
Post by: LowHP on November 19, 2009, 04:02:48 am
Alright. So. I'm trying to replace the rifle with an m16, for a mod I'm helping with. However, it isn't going too smoothly. I got it ingame no problems, but it's untextured. =/

http://img695.imageshack.us/img695/2927/38091327.jpg

In 3ds max (6) I'm just applying the map (and that works fine), and then just exporting it as a .md3, but ingame it's untextured? Also, when I import the .md3 back into max, it's untextured. |: The console shows no errors, and I'm really lost for ideas at the moment. Can anyone help?

edit: ah fuck, sorry, didn't see the child board. Could a mod please move this?
Title: Re: Weapon model textureless.
Post by: gimhael on November 19, 2009, 06:54:06 am
.md3 files do not contain any textures, they contain only the texture names. So you have to copy the texture(s) into the game manually.
Title: Re: Weapon model textureless.
Post by: LowHP on November 19, 2009, 08:11:23 am
How do you mean? As in, I need to have the textures in the weapons/rifle folder in the .pk3? I already do, if that was indeed what you meant to say.
Title: Re: Weapon model textureless.
Post by: n.o.s.brain on November 19, 2009, 07:09:41 pm
somehow your material paths are borked... I know how to get textures to work in blender and gmax, not sure about 3dsmax though
Title: Re: Weapon model textureless.
Post by: LowHP on November 20, 2009, 02:46:29 am
Ah right, thanks for that. I'll try with Gmax, see if that helps. :)

Edit: Airight, that worked; sort of. They're textured ingame, but I have a very odd issue. The weapon is invisible, but it flashes visible (textured visible) at random times. I took a screenie but it probably isn't much help considering the nature of the error.
http://img684.imageshack.us/img684/4668/hmmj.jpg
At first I thought it had something to do with the rifle_hand.md3 file, but opening it I only found a tag_weapon, and so dismissed that idea. Does anyone have any clue at all what's up with it?
Title: Re: Weapon model textureless.
Post by: m4gnificent_b4st4rd on November 20, 2009, 02:42:13 pm
any chance you could host the md3 somewhere so I could take a look at it?
Title: Re: Weapon model textureless.
Post by: UniqPhoeniX on November 20, 2009, 08:04:43 pm
I bet the model is missing a bounding box (not the usual bbox) and is only visible when origin is on screen. Try /cg_gunX 20 in devmap (places the gun forwards from its usual place, so origin is probably on screen the whole time).
Title: Re: Weapon model textureless.
Post by: Repatition on November 21, 2009, 08:40:31 pm
not bad...i like the shape
Title: Re: Weapon model textureless.
Post by: LowHP on November 22, 2009, 01:35:33 am
any chance you could host the md3 somewhere so I could take a look at it?
http://www.filefront.com/14969891/rifle.md3 :)

I bet the model is missing a bounding box (not the usual bbox) and is only visible when origin is on screen. Try /cg_gunX 20 in devmap (places the gun forwards from its usual place, so origin is probably on screen the whole time).
Yerp, I tried that and it isn't disappearing anymore, but I obviously can't play like that. :P So what's the problem? A missing bounding box? I...have no idea what that means. >.< Sorry for being such a pain guys, your help is much appreciated.
Title: Re: Weapon model textureless.
Post by: LowHP on November 22, 2009, 09:37:59 am
Sorry for the double post but I can't edit.

Are you sure it would have to do with the bounding boxes? I don't know much about all this but it was showing up perfectly when it was untextured, so...

Thanks guys. :)
Title: Re: Weapon model textureless.
Post by: m4gnificent_b4st4rd on November 22, 2009, 02:20:06 pm
I took a look at the md3 model.

My first thought was that maybe you had duplicated faces leading to some kind of z-fighting (http://en.wikipedia.org/wiki/Z-fighting) effect, but that doesn't seem to be the case. I tried using W - 6 (remove duplicated), but there were no duplicated verts to remove. I grabbed random verts and dragged them around in case there were faces close enough to cause z-fighting without actually having duplicated vertices, but every time I moved a vertex there was nothing being left behind, so it's not z-fighting.

The fact that it shows up in the correct place when it's visible implies there is nothing wrong with the model's origin point, but I imported the tremulous blaster for comparison anyway. They had the same model origin and lined up pretty well location wise, so there's no problem there.

I'm really not sure what your problem is, but I can't see anything wrong with your model.

Title: Re: Weapon model textureless.
Post by: Bissig on November 23, 2009, 01:29:40 am
Sorry for the double post but I can't edit.

Are you sure it would have to do with the bounding boxes? I don't know much about all this but it was showing up perfectly when it was untextured, so...

Thanks guys. :)

The button is confusingly labeled "Modify".
Title: Re: Weapon model textureless.
Post by: LowHP on November 23, 2009, 05:15:06 am
Sorry for the double post but I can't edit.

Are you sure it would have to do with the bounding boxes? I don't know much about all this but it was showing up perfectly when it was untextured, so...

Thanks guys. :)

The button is confusingly labeled "Modify".
Unfortunately you didn't find the Post Reply button quite so hard to find. :)

m4gnificent_b4st4rd, thanks. I'll probably just add cg_gunx 5 to the autogen, if that's possible, 'cause it looks about right that way and it doesn't disappear at all. Thanks guys. :)
Title: Re: Weapon model textureless.
Post by: Hindenburg on June 03, 2010, 07:32:43 am
This is a bit of a necro post, but it's relevant. I was having a little fun with the las gun model and I ended up with a weapon that looked very similar to an XM8. I'm having problems with the texture though. It shows up when I look at it in the modeling program I'm using, but not when I test it in the game.

http://tremulous.net/forum/index.php?topic=12929.0 (http://tremulous.net/forum/index.php?topic=12929.0)

This is a topic I made about it. I'm going to scrap my attempt with the massdriver. It's not good and has a habit of glitching itself. Any help at all would be great.