Playermodel & skin- & shader- & TGA-files


(nUllSkillZ) #1

Hi,

I’m just trying to get a way through the files that are involved in skinning the playermodels.

Me thinks the following:

[ol]
[li]the playermodel-file points to a skin-file[/li][li]the skin-file points to[/li][ul]
[li]a shader-file if one is available[/li][li]a TGA- or a JPG-file if a shader-file is not available[/li][/ul]
[li]the shader-file points to a TGA- or a JPG-file[/li][/ol]
Is this correct?


(Jaquboss) #2

if there is no shader available it creates default shader, which points to a picture file, if no picture is avaiable default shader is created ( orange-black grid )


(nUllSkillZ) #3

Thank you very much Jaquboss.
:drink:


(nUllSkillZ) #4

Does anybody know how is the char-files (“characters/temperate/allied or axis”) are involved?


(Jaquboss) #5

characterDef // file start
{
skin “cvops” // used for skin files, added after model names, like body_cvops

mesh			"models/players/temperate/allied/cvops/body.mdm" // path to body model, etpro loads it on server as well
animationgroup		"animations/human_base.anim" // human_base contains pathes to all animation files used for this character
animationscript		"animations/scripts/human_base.script" // this scripts uses data from above.. both group and script are loaded on server 

undressedCorpseModel	"models/players/temperate/common/naked.mdm" // need to comment these two ones ? :nag:
undressedCorpseSkin	"allied_cvops" // similar to 'skin' one

hudhead			"models/players/hud/head.md3" // also used in thirdperson as well !
hudheadanims		"animations/human/heads/base.anim" // animations for head ( number of frames, start, FPS .. )
hudheadskin		"models/players/hud/allied_cvops.skin" // skin for head model

}// End of file


(nUllSkillZ) #6

Thnx again Jaquboss.
I was more interested in the “skin” line of the “char”-file (haven’t asked it sorry).
So the source code is pointing to a “char”-file.
This “char”-file points to a “skin”-file (named like MESH_PATH_NAME + “_” + SKIN_NAME + “.skin”).
In the above example it would point to:


models/players/temperate/allied/cvops/body_cvops.skin

And rest see above.