How can I add a skin to an existing model?

How can I add a skin to an existing model?

Re: How can I add a skin to an existing model? Posted by Liquid_55 on Thu May 26th 2005 at 10:19pm
Liquid_55
7 posts
Posted 2005-05-26 10:19pm
7 posts 1 snarkmarks Registered: May 9th 2005 Location: USA
How can I change the handrail color for models/props_c17/Handrail04_long.mdl and related handrails from white to yellow?

I've got Gimp and GCFScape downloded already.
Re: How can I add a skin to an existing model? Posted by Carcase on Fri May 27th 2005 at 12:55am
Carcase
145 posts
Posted 2005-05-27 12:55am
Carcase
member
145 posts 15 snarkmarks Registered: Nov 15th 2003 Location: Northern Virginia
hmm, i know you can do it with brush entities, im not sure about props. If changing the color is all you want to do, you could switch the render mode to color, then chose a render color and set the render amount to 255. but then again that might only work with brush entities.
Re: How can I add a skin to an existing model? Posted by rs6 on Fri May 27th 2005 at 1:31am
rs6
640 posts
Posted 2005-05-27 1:31am
rs6
member
640 posts 94 snarkmarks Registered: Dec 31st 2004 Occupation: koledge Location: New Jersey, USA
decompile the model, make your own skin, recompile.

I don't know much more than that. Might want to ask somebody who knows how to model.
Re: How can I add a skin to an existing model? Posted by Liquid_55 on Fri May 27th 2005 at 1:42am
Liquid_55
7 posts
Posted 2005-05-27 1:42am
7 posts 1 snarkmarks Registered: May 9th 2005 Location: USA
Specifically, how do i make my own skin and recompile?
Re: How can I add a skin to an existing model? Posted by ReNo on Fri May 27th 2005 at 1:53am
ReNo
5457 posts
Posted 2005-05-27 1:53am
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
I'm afraid I don't know full specifics having never done it myself, but
I'll at least try and give the basic process that I imagine you'll have
to go through...

First of all you will need to decompile the model/(s). This should give
you the .smd files used to edit the model itself (not what you are
interested in), and the .qc file used to compile the model (what you
ARE interested in). Now open up the original skin of the model (you
should be able to find it by getting the path and filename out of the
.qc file I'd imagine) in some VMT/VTF tool, and decompile that to get
the .tga or .bmp file from it. Edit away at this to change its colour
or whatever. Now use the VMT/VTF tool you have to compile a new
material using your edited skin - you should be able to just use the
same compile options that the material you decompiled used (eg.
whatever shaders it used and what have you). You will now have to edit
the .qc file you got by decompiling the model to point the skin details
to your new skin material. Once you have done this, recompile the model
(under a different file name - DON'T replace the existing one even
though you are just wanting to add a skin to it) and you should have it
looking exactly the same but using your brand new skin.

So yeah, bit of a long process, but I can't see there being a quicker
route I'm afraid. As I mentioned, I advise you save the result as a new
model file as opposed to replacing the standard one.
[img]http://card.mygamercard.net/sig/Default/reno84.png[/img]
Designer @ Haiku Interactive | ReNo-vation.net
Re: How can I add a skin to an existing model? Posted by Liquid_55 on Fri May 27th 2005 at 1:58am
Liquid_55
7 posts
Posted 2005-05-27 1:58am
7 posts 1 snarkmarks Registered: May 9th 2005 Location: USA
Thanks Reno, I will try that. My Windows XP crashed and I had to reformat, so i have plenty of normal architecture to redo. That should keep me busy for a while.
Re: How can I add a skin to an existing model? Posted by fishy on Fri May 27th 2005 at 12:49pm
fishy
2623 posts
Posted 2005-05-27 12:49pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
close ReNo, but no cigar. :razz:

an important point is that the qc file only points to the folder that the texture (vmt) is in, and doesn't reference the actual skin at all. (the material name gets embedded in the reference smd when it's exported from the model editor.)

so to use that method you would need to use the same name for the new material as the original had, but it should be in a different folder. it's this folder that you should change the qc to point to.
i eat paint
Re: How can I add a skin to an existing model? Posted by Liquid_55 on Sat May 28th 2005 at 1:30am
Liquid_55
7 posts
Posted 2005-05-28 1:30am
7 posts 1 snarkmarks Registered: May 9th 2005 Location: USA
I have the completed vtf and vmt files, but where do i put them? And how do I get the model to reference them?
Re: How can I add a skin to an existing model? Posted by fishy on Sat May 28th 2005 at 3:46am
fishy
2623 posts
Posted 2005-05-28 3:46am
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
hmm, it's easier than the explaination sounds. in fact, even though i know exactly what's needed, i'm still getting confused thinking about how to explain it.

i uploaded a .zip a while ago that contained all the smd files for a car, and instructions on how reskin and compile it. there's a readme that should explain what you need to know about where to put everything, and if i remember right, the .qc (which opens as a text file) has instructions contained that explain how to reference where you put the texture. i don't know if i got everything right in it as no-one gave any feedback on it, but i think if you give it a try it should help you do what you're doing.

http://www.quantum-physics.co.uk/files/carskinthing.zip
i eat paint
Re: How can I add a skin to an existing model? Posted by Orpheus on Sat May 28th 2005 at 3:52am
Orpheus
13860 posts
Posted 2005-05-28 3:52am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
fishy said:
close ReNo, but no cigar. :razz:
I think we need to forward all model questions to Fish.. Or better yet, create a new Model forum and make him Mod for it.

All in favor, say "AYE"

The best things in life, aren't things.
Re: How can I add a skin to an existing model? Posted by habboi on Sat May 28th 2005 at 12:58pm
habboi
782 posts
Posted 2005-05-28 12:58pm
habboi
The Spammer of Snarkpit
member
782 posts 178 snarkmarks Registered: Dec 11th 2004 Location: United Kingdom
"AYE"
Re: How can I add a skin to an existing model? Posted by fishy on Sat May 28th 2005 at 2:00pm
fishy
2623 posts
Posted 2005-05-28 2:00pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
nay
i eat paint
Re: How can I add a skin to an existing model? Posted by Orpheus on Sat May 28th 2005 at 2:36pm
Orpheus
13860 posts
Posted 2005-05-28 2:36pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
fishy said:
nay
The lamb doesn't get a say-so when its offered as a sacrifice.

/runs giggling

The best things in life, aren't things.
Re: How can I add a skin to an existing model? Posted by Liquid_55 on Sat May 28th 2005 at 4:53pm
Liquid_55
7 posts
Posted 2005-05-28 4:53pm
7 posts 1 snarkmarks Registered: May 9th 2005 Location: USA
Thanks fishy, that helped a lot. But how do I get the .qc file from the models/props_c17 Handrail04_long.mdl model?

man, why is everything a file embedded in a file embedded in a flie?
Re: How can I add a skin to an existing model? Posted by habboi on Sat May 28th 2005 at 5:17pm
habboi
782 posts
Posted 2005-05-28 5:17pm
habboi
The Spammer of Snarkpit
member
782 posts 178 snarkmarks Registered: Dec 11th 2004 Location: United Kingdom
Cause Valve love to get people annoyed!

I say kill them ALL!
Re: How can I add a skin to an existing model? Posted by fishy on Sat May 28th 2005 at 5:37pm
fishy
2623 posts
Posted 2005-05-28 5:37pm
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
<DIV class=quote>
<DIV class=quotetitle>? quoting Liquid_55</DIV>
<DIV class=quotetext>Thanks fishy, that helped a lot. But how do I get the .qc file from the models/props_c17 Handrail04_long.mdl model?

man, why is everything a file embedded in a file embedded in a flie?

</DIV></DIV>

decompile the original model with cannonfodders decompiler, and that will give you the .smd's and the .qc file that you need.

http://www.chaosincarnate.net/cannonfodder/cftools.htm
the only downside to decompiling, is that none of the smoothing groups are preserved, which can cause some bad lighting effects on some models. i don't see handrails being a problem though.
habboi said:
Cause Valve love to get people annoyed!
I say kill them ALL!
by wanting to kill them ALL, it seems that Valves desire to get people annoyed is working well on you. you could fight against their evil plan and send them all flowers and happy messages, and they would know that you are too clever for them, and maybe they will stop.
i eat paint