Re: Adding skins to existing models
Posted by Dark Tree on
Mon Nov 10th 2008 at 5:23am
646 posts
264 snarkmarks
Registered:
Apr 30th 2004
Occupation: DigiPen student
Location: USA
How do you add a skin to an existing model? What I am trying to do is have an alternate skin for the explosive barrel. I have already made the skin, converted it to vtf, created the vmt.... but how do I refer to it in Hammer? Looking at the Valve wiki, it says I have to edit to .qc file, which I think is an uncompiled model work file. If this is so, is it not possible to add a skin to an already compiled model?
the model in question is the oildrum001_explosive.mdl found in the props_city17 folder. I would just re-skin the texture and have it on top of the older texture, if I just straight up wanted to replace it, but I want to use both textures in-game. I opened up oildrum001.mdl (an oil drum with 7 alternate skins) in a text editor, and saw where it specified all the other textures. I tried opening up oildrum001_explosive.mdl in the text editor and manually typing in the name of the other texture, but that obviously didn't work.
Do I need a modeling program? Is there an editor where I can just edit the line where I add another model to the skin list?
Re: Adding skins to existing models
Posted by Dark Tree on
Thu Nov 20th 2008 at 7:08am
646 posts
264 snarkmarks
Registered:
Apr 30th 2004
Occupation: DigiPen student
Location: USA
I will Aaron. I'll try it when I get a chance and let u know!
Re: Adding skins to existing models
Posted by G4MER on
Thu Nov 20th 2008 at 4:39pm
G4MER
floaty snark rage
member
2460 posts
360 snarkmarks
Registered:
Sep 6th 2003
Location: USA
Aaron nice tut man.. I also like your site!
Re: Adding skins to existing models
Posted by fishy on
Thu Nov 20th 2008 at 5:19pm
fishy
member
2623 posts
1476 snarkmarks
Registered:
Sep 7th 2003
Location: glasgow
The output directory and the model name should be edited so as not to clash or overwrite the original.
Both are cited in the $modelname line of the qc file, so in this case I'd use something like;
$modelname props_fishy/fish_soda.mdl
This will place the model, named fish_soda.mdl, in the models/props_fishy folder. You neeed to create any custom folders before compiling the model, or the compile will fail.