11-26-2012, 03:38 PM
They all use the same model, it's a simple plane with skin file to tell engine which texture to use. To create a new one all you need (besides creating the actual texture) is a text editor, you don't need to mess around with 3d editors and such. It's very simple (!).
Without going into details, for reference:
All necessary files are in data/models/items or data/models/weapons.
someitem.md3 - the existing 3d model used in game
someitem_simple.iqm - the plane model, they are all the same, you can copy any existing one and rename to something else as long as it matches an existing item (ie: someitem.md3 --> someitem_simple.iqm).
someitem_simple.iqm_0.skin - this file tells which texture to use, simply copy/rename an existing one then edit in text editor to point to a new texture (without extension iirc).
someitem_simple.tga - the texture that the .skin file points to.
So, someitem.md3 --> someitem_simple.iqm --> someitem_simple.iqm_0.skin --> someitem_simple.tga
Simple items also need to be added to shaders, look in script/simpleitems.shader, again copy/paste an existing one and edit model/texture name to what you want. It has been months so I might be wrong but iirc I added all items to shaders file already, I just didn't have placeholder textures for all of them. So you might not even have to add shaders.
glhf
Without going into details, for reference:
All necessary files are in data/models/items or data/models/weapons.
someitem.md3 - the existing 3d model used in game
someitem_simple.iqm - the plane model, they are all the same, you can copy any existing one and rename to something else as long as it matches an existing item (ie: someitem.md3 --> someitem_simple.iqm).
someitem_simple.iqm_0.skin - this file tells which texture to use, simply copy/rename an existing one then edit in text editor to point to a new texture (without extension iirc).
someitem_simple.tga - the texture that the .skin file points to.
So, someitem.md3 --> someitem_simple.iqm --> someitem_simple.iqm_0.skin --> someitem_simple.tga
Simple items also need to be added to shaders, look in script/simpleitems.shader, again copy/paste an existing one and edit model/texture name to what you want. It has been months so I might be wrong but iirc I added all items to shaders file already, I just didn't have placeholder textures for all of them. So you might not even have to add shaders.
glhf