Talk:Multiple Skins for a Single Model

From Valve Developer Community
Jump to: navigation, search

Is it possible to modify the exsisting npc models to have multiple skins? There isn't a skin option in the entity properties, but I'm not sure if it's just not added in the fgd file. If it isn't possible, I figure I'll decompile the model and recompile it with a second body group consisting of the same model but with a different skin there - but that just feels really dodgy... - RodeoClown 18:32, 27 Apr 2006 (PDT)

both of your approaches are way off...all you need to do is use the texturegroup skinfamilies syntax to add the skins...use mdldecompiler & fix the eyelashes: (of course you'll want to find what the EXPRESSIONFILE is and put it in there)—ts2do 20:07, 27 Apr 2006 (PDT)
     eyelid  upper_left "EXPRESSIONFILE" lowerer 3 -0.218500 neutral 1 0.166800 raiser 4 0.265000 split -0.1 eyeball lefteye
     eyelid  lower_left "EXPRESSIONFILE" lowerer 1 -0.301000 neutral 0 -0.211900 raiser 2 -0.040300  split -0.1 eyeball lefteye

If you're talking about npcs using them, you can do that by just setting the skin keyvalue...—ts2do 20:07, 27 Apr 2006 (PDT)

OK... I have no idea what you are talking about with the eyelashes... I was looking at NPC_Cscanner and it doesn't have a skin keyvalue listed as being available, which is why I was asking, otherwise I would have just done that. It does, however, have a setBodyGroup command, which is what I was getting at.- RodeoClown 20:25, 27 Apr 2006 (PDT)

SetBodyGroup should only be used for changing the shape of the model...you can use smart edit off to add the skin keyvalue—ts2do 22:06, 27 Apr 2006 (PDT)
I wasn't sure if just adding the keyvalue in would still work. I'll give it a try once I'm off work. Thanks Ts2do :) (btw - is the Ts2do mean anything in particular?) - RodeoClown 22:09, 27 Apr 2006 (PDT)

Is there any way to change a model's skin in code? Just changing the m_nSkin variable doesn't do anything; I'm assuming there's something else I have to do to tell it to actually use the texture specified by m_nSkin, but I can't figure out what that would be. --JKyle 20:02, 21 Jan 2007 (PST)

Augh, never mind. I guess the model I was trying to change hasn't been compiled with multiple skins yet. Just changing m_nSkin does work when I try it with a different model. --JKyle 20:19, 21 Jan 2007 (PST)

It bothers me the mixture of terms here, several times they talk about textures (.vtf) when they should be talking about materials (.vmt), this method allows to change the material of a given model in hammer, using any of the already defined in the qc, but it doesn't allow to change the textures in given materials. --dcalogue 12:18, 14 Aug 2007 (PST)

on/off lights

I can't figure out how to switch between skin 0 and skin 1 when my I/O switchable light source is turned on and off. Surely it is possible ? (Beeswax 20:27, 2 Apr 2008 (PDT))

Skins

What file does one need to edit in order to do what this page says? At first I thought it might be the texture's .vmt ...? Because I do not see it indicated anywhere on the page, or maybe I'm just blind xD Thanks

Merge this with $texturegroup

This page counts as a "Guide" for using $texturegroup. I feel it would be better if we merged this page into $texturegroup, towards the bottom.
currently, users wanting information would need to cross reference two pages, which is a hassle.
Any objections?
--MrFunreal (talk) 06:55, 12 March 2021 (PST)