如何转人物模型?

如何转人物模型?

1、首先要清楚的事情

人物模型的骨骼是遵循valvebip的命名规范的,因此才能被sfm识别成人形骨骼,并且在sfm中表示为红色、绿色(代表左侧和右侧)骨骼,metsrig作用的就是识别valvebip骨骼而生成rig控制点对末端骨骼进行操纵,影响反向骨骼。也就是反向动力学骨骼简称rig。

2、对人物模型转模其实和对物品转模大同小异

仅仅需要做的就是在原有模型的基础上:

1、对模型大小整体进行缩放,blender8小格为肩宽,应用缩放,使缩放比例为1,要保证骨骼和网格都是比例为1。

2、对模型骨骼进行改名,具体可参考以下命名方式

    $definebone函数    |    子级骨骼    |    父级骨骼   

    $definebone "ValveBiped.Bip01_Pelvis" ""

    $definebone "ValveBiped.Bip01_L_Thigh" "ValveBiped.Bip01_Pelvis"

    $definebone "ValveBiped.Bip01_L_Calf" "ValveBiped.Bip01_L_Thigh"

    $definebone "ValveBiped.Bip01_L_Foot" "ValveBiped.Bip01_L_Calf"

    $definebone "ValveBiped.Bip01_L_Toe0" "ValveBiped.Bip01_L_Foot"

    $definebone "ValveBiped.Bip01_R_Thigh" "ValveBiped.Bip01_Pelvis"

    $definebone "ValveBiped.Bip01_R_Calf" "ValveBiped.Bip01_R_Thigh"

    $definebone "ValveBiped.Bip01_R_Foot" "ValveBiped.Bip01_R_Calf"

    $definebone "ValveBiped.Bip01_R_Toe0" "ValveBiped.Bip01_R_Foot"

    $definebone "ValveBiped.Bip01_Spine" "ValveBiped.Bip01_Pelvis"

    $definebone "ValveBiped.Bip01_Spine1" "ValveBiped.Bip01_Spine"

    $definebone "ValveBiped.Bip01_Spine2" "ValveBiped.Bip01_Spine1"

    $definebone "ValveBiped.Bip01_Spine4" "ValveBiped.Bip01_Spine2"

    $definebone "ValveBiped.Bip01_Neck1" "ValveBiped.Bip01_Spine4"

    $definebone "ValveBiped.Bip01_Head1" "ValveBiped.Bip01_Neck1"

    $definebone "ValveBiped.Bip01_L_Clavicle" "ValveBiped.Bip01_Spine4"

    $definebone "ValveBiped.Bip01_L_UpperArm" "ValveBiped.Bip01_L_Clavicle"

    $definebone "ValveBiped.Bip01_L_Forearm" "ValveBiped.Bip01_L_UpperArm"

    $definebone "ValveBiped.Bip01_L_Hand" "ValveBiped.Bip01_L_Forearm"

    $definebone "ValveBiped.Bip01_L_Finger4" "ValveBiped.Bip01_L_Hand"

    $definebone "ValveBiped.Bip01_L_Finger41" "ValveBiped.Bip01_L_Finger4"

    $definebone "ValveBiped.Bip01_L_Finger42" "ValveBiped.Bip01_L_Finger41"

    $definebone "ValveBiped.Bip01_L_Finger3" "ValveBiped.Bip01_L_Hand"

    $definebone "ValveBiped.Bip01_L_Finger31" "ValveBiped.Bip01_L_Finger3"

    $definebone "ValveBiped.Bip01_L_Finger32" "ValveBiped.Bip01_L_Finger31"

    $definebone "ValveBiped.Bip01_L_Finger2" "ValveBiped.Bip01_L_Hand"

    $definebone "ValveBiped.Bip01_L_Finger21" "ValveBiped.Bip01_L_Finger2"

    $definebone "ValveBiped.Bip01_L_Finger22" "ValveBiped.Bip01_L_Finger21"

    $definebone "ValveBiped.Bip01_L_Finger1" "ValveBiped.Bip01_L_Hand"

    $definebone "ValveBiped.Bip01_L_Finger11" "ValveBiped.Bip01_L_Finger1"

    $definebone "ValveBiped.Bip01_L_Finger12" "ValveBiped.Bip01_L_Finger11"

    $definebone "ValveBiped.Bip01_L_Finger0" "ValveBiped.Bip01_L_Hand"

    $definebone "ValveBiped.Bip01_L_Finger01" "ValveBiped.Bip01_L_Finger0"

    $definebone "ValveBiped.Bip01_L_Finger02" "ValveBiped.Bip01_L_Finger01"

    $definebone "ValveBiped.Bip01_R_Clavicle" "ValveBiped.Bip01_Spine4"

    $definebone "ValveBiped.Bip01_R_UpperArm" "ValveBiped.Bip01_R_Clavicle"

    $definebone "ValveBiped.Bip01_R_Forearm" "ValveBiped.Bip01_R_UpperArm"

    $definebone "ValveBiped.Bip01_R_Hand" "ValveBiped.Bip01_R_Forearm"

    $definebone "ValveBiped.Bip01_R_Finger4" "ValveBiped.Bip01_R_Hand"

    $definebone "ValveBiped.Bip01_R_Finger41" "ValveBiped.Bip01_R_Finger4"

    $definebone "ValveBiped.Bip01_R_Finger42" "ValveBiped.Bip01_R_Finger41"

    $definebone "ValveBiped.Bip01_R_Finger3" "ValveBiped.Bip01_R_Hand"

    $definebone "ValveBiped.Bip01_R_Finger31" "ValveBiped.Bip01_R_Finger3"

    $definebone "ValveBiped.Bip01_R_Finger32" "ValveBiped.Bip01_R_Finger31"

    $definebone "ValveBiped.Bip01_R_Finger2" "ValveBiped.Bip01_R_Hand"

    $definebone "ValveBiped.Bip01_R_Finger21" "ValveBiped.Bip01_R_Finger2"

    $definebone "ValveBiped.Bip01_R_Finger22" "ValveBiped.Bip01_R_Finger21"

    $definebone "ValveBiped.Bip01_R_Finger1" "ValveBiped.Bip01_R_Hand"

    $definebone "ValveBiped.Bip01_R_Finger11" "ValveBiped.Bip01_R_Finger1"

    $definebone "ValveBiped.Bip01_R_Finger12" "ValveBiped.Bip01_R_Finger11"

    $definebone "ValveBiped.Bip01_R_Finger0" "ValveBiped.Bip01_R_Hand" 

    $definebone "ValveBiped.Bip01_R_Finger01" "ValveBiped.Bip01_R_Finger0"

    $definebone "ValveBiped.Bip01_R_Finger02" "ValveBiped.Bip01_R_Finger01"

    $definebone "ValveBiped.jiggle_holster" "ValveBiped.Bip01_Pelvis"

    $definebone "ValveBiped.jiggy_hair_ponytail_01" "ValveBiped.Bip01_Head1"

    $definebone "ValveBiped.jiggy_hair_ponytail_02" "ValveBiped.jiggy_hair_ponytail_01"

    $definebone "ValveBiped.jiggy_hair_lsideburn" "ValveBiped.Bip01_Head1"

    $definebone "ValveBiped.jiggy_hair_lbang_01" "ValveBiped.Bip01_Head1"

    $definebone "ValveBiped.jiggy_hair_rbang" "ValveBiped.Bip01_Head1"

    $definebone "ValveBiped.jiggy_hair_rsideburn" "ValveBiped.Bip01_Head1"

    $definebone "ValveBiped.attachment_bandage_armL" "ValveBiped.Bip01_L_Forearm"

    $definebone "ValveBiped.attachment_bandage_legL" "ValveBiped.Bip01_L_Thigh"

    $definebone "ValveBiped.attachment_bandage_legR" "ValveBiped.Bip01_R_Thigh"

    $definebone "ValveBiped.attachment_armL_T" "ValveBiped.Bip01_L_Forearm"

    $definebone "ValveBiped.attachment_armR_T" "ValveBiped.Bip01_R_Forearm"

    $definebone "ValveBiped.weapon_bone" "ValveBiped.Bip01_R_Hand"

    $definebone "ValveBiped.L_weapon_bone" "ValveBiped.Bip01_L_Hand"

    $definebone "ValveBiped.weapon_bone_Clip" "ValveBiped.weapon_bone"

    $definebone "ValveBiped.forward" "ValveBiped.Bip01_Head1"

    $definebone "ValveBiped.Bip01_L_Knee" "ValveBiped.Bip01_L_Thigh"

    $definebone "ValveBiped.hlp_gluteus_L" "ValveBiped.Bip01_L_Thigh"

    $definebone "ValveBiped.Bip01_R_Knee" "ValveBiped.Bip01_R_Thigh"

    $definebone "ValveBiped.Bip01_L_Ulna" "ValveBiped.Bip01_L_Forearm"

    $definebone "ValveBiped.Bip01_L_Wrist" "ValveBiped.Bip01_L_Forearm"

    $definebone "ValveBiped.Bip01_L_Elbow" "ValveBiped.Bip01_L_UpperArm"

    $definebone "ValveBiped.Bip01_L_Bicep" "ValveBiped.Bip01_L_UpperArm"

    $definebone "ValveBiped.Bip01_R_Wrist" "ValveBiped.Bip01_R_Forearm"

    $definebone "ValveBiped.Bip01_R_Ulna" "ValveBiped.Bip01_R_Forearm"

    $definebone "ValveBiped.Bip01_R_Bicep" "ValveBiped.Bip01_R_UpperArm"

    $definebone "ValveBiped.Bip01_R_Elbow" "ValveBiped.Bip01_R_UpperArm"

以上代码删减自l4d2的人物模型qc,要注意的是:模型qc中并不需要手写骨骼函数,mdlstudio、crowbar会在编译时读取骨骼六轴位置并自动生成

3、人物的多部分贴图问题

1、在你收集的模型贴图文件夹看一看,哪些贴图对应身体的哪一部分,此步也可通过查看3d软件的材质

球、材质节点等来查看路径以确定贴图对应关系。

2、在确认关系后,对模型的材质重新命名,命名方式怎么好记怎么来即可。

3、在对模型进行打包以后,就要开始对vmt、vtf的铺路操作,先手动搭建立模型qc中cdmaterials所示的材质文件夹,在其中新建vmt材质文件,基础操作后(详情参考快速转模篇),对贴图文件进行vtf转格式操作,放在vmt的basetexture的读取路径下(当然也可同一文件夹,注意路径的materials根目录要省略)

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 213,254评论 6 492
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,875评论 3 387
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 158,682评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,896评论 1 285
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 66,015评论 6 385
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 50,152评论 1 291
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,208评论 3 412
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,962评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,388评论 1 304
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,700评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,867评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,551评论 4 335
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,186评论 3 317
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,901评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,142评论 1 267
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,689评论 2 362
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,757评论 2 351

推荐阅读更多精彩内容