# Blendeer MB-Lab 建模流程
###### tags: `Blender` `MB-Lab` `ADD-ON`
MB-Lab 網頁與下載位址:
https://mb-lab-community.github.io/MB-Lab.github.io/
MB-Lab 說明文件
https://mb-lab-docs.readthedocs.io/en/latest/index.html
---
建造流程:
首先開啟新的Blender檔案,把場景中所有物件全部刪除,然後儲存檔案。
### 一.選取人類類型

姓別:Female 女性/ Male 男性
真實人種:
> | 英文| 中文 |
> | -------- | -------- |
> | Afro | 非洲人 |
> | Asian | 亞洲人 |
> | Caucasian | 高加索人 |
> | Latino | 拉丁人 |
虛擬人物:
> | 英文| 中文 |
> | -------- | -------- |
> | Anime | 動漫人物 |
> | Realistic Anime | 仿真動漫人物 |
> | elf | 精靈族 |
> | dwarf | 矮人族 |
---
### 二.人物場景設定

> | 英文| 中文 |
> | -------- | -------- |
> |Use Incerse Kinematic | 設定使用 [IK逆向關節運動](https://mb-lab-docs.readthedocs.io/en/latest/pose.html#inverse-kinematics)骨架|
> |Use basic miscles | 設定使用[基礎肌肉系統](https://mb-lab-docs.readthedocs.io/en/latest/pose.html#muscle-base-system)|
> |Use Cycles engine | 設定使用 Cycle 渲染引擎|
> |Use EEVVE engine | 設定使用 EEVEE 渲染引擎|
> |Use Portrait studio lights | 設定場景燈光|
<font color="red">**當選用 Use Incerse Kinematic 時,Rest Post 和Pose And Animation 將無法使用**
**Cycle/EEVEE 只能任選一種,但可事後變更**</font>
選好之後按 Create character 稍等一下人形會建立在3D視窗。
---
### 三.人物細節設定

#### 1.[CHARACTER SHAPE](https://mb-lab-docs.readthedocs.io/en/latest/creation_tools.html#meta-parameters) 角色外型,
>拉動滑桿可調省age(年齡)、mass(胖瘦)、tone(肌肉緊緻或鬆弛)
<Font color="red">若對於以下各個項目的調整不滿意,可按下 Reset character 還原角色到原始樣子。</Font>
#### 2.CHARACTER SET-UP 角色設定
.Character Library 角色庫
> 這個項目屬於後段設計。
需先在下方 Others 的 Finalize Tools 點進去,
按 Save Images and backup character 儲存影像,
然後按 Finalize with textures and backup 完成材質和備份,然後才能進行後段的設計。

以下為角色庫內容:
> | 英文| 中文 |
> | -------- | -------- |
> | Special type Hero | 特殊類型英雄|
> | Type athletic | 運動類型 |
> | type Common | 常見類型 |
> | Type Extreme Body Builder | 極限健美 |
> | Type Extreme Body Overweight | 極端體重 |
> | Type Extreme Body Underweight | 極端體重不足 |
> | Type Fitness Model | 健身模範 |
> | Type Giant | 巨人 |
> | Type Giant Muscled | 肌肉形巨人 |
> | Type Heavy body | 肥重 |
> | Type Hourglass | 沙漏型 |
> | Type Ideal Fashion | 理想時尚 |
> | Type Ideal Shapely |理想外型 |
> | Type Light body | 瘦弱 |
> | Type normobody | 正常體型 |
> | Type pear | 梨型 |
> | Type Rectangle | 矩形 |
> | Type Slender | 苗條 |
> | Type Stocky | 厚實 |
> | Type Triangle | 三角形 |
> | Type Vigorous | 壯盛 |
.Random Generator 隨機產生器。
可依選取的項目隨機生成角色的外觀,有時會產生奇怪的人形。
> | 英文| 中文 |
> | -------- | -------- |
> | Light | 燈光 |
> | Realistic | 現實 |
> | Noticeable | 明顯 |
> | Caricture | 動漫 |
> | Extreme | 極端 |
> Use Fixed tone and mass values 使用固定肥瘦與鬆弛緊緻
> | 英文| 中文 |
> | -------- | -------- |
> |Body Mass | 體格肥瘦 |
> |Body Tone | 體格鬆弛緊緻 |
> Preserve: 保留不變的項目
> | 英文| 中文 |
> | -------- | -------- |
> |Mass |肥瘦|
> |Height |身高|
> |Tone |鬆緊度|
> |Body |軀體|
> |Face |臉|
> |Phenotype |表型|
> |Fantasy |幻想|
.Automodelling Tools 自動化工具
> | 英文| 中文 |
> | -------- | -------- |
> |Auto Modelling | 自動造型|
> |Averaged Auto Modelling | 平均自動造型|
#### 3.CHARACTER DESIGN 角色設計
.Body Measures 依據需求設定角色個別部位,此項目下有很多分類項目[點我](https://hackmd.io/6zDwfJc3RMyemEeUvMn1cA)看詳細內容。

.Rest Pose [靜止姿勢](https://mb-lab-docs.readthedocs.io/en/latest/pose.html#rest-poses)
此項目於選用 Use Inverse Kinematic 反向運動的情況下不可用
> | 英文| 中文 |
> | -------- | -------- |
> | a-pose | A 姿勢|
> | ii-pose | 立正姿勢|
> | lambda-pose | 入 姿勢|
> | standard | 標準姿勢|
> | star-poae | 星形姿勢|
> | t-post | T 姿勢|
.Skin Editor 外貌編輯

> | 英文| 中文 |
> | -------- | -------- |
> |[eyes_hue](https://mb-lab-docs.readthedocs.io/en/latest/skin_editor.html#eye-and-iris-shader) | 虹膜的色相 |
> | eyes_iris_Mix | 眼睛反射 |
> | eyes_saturation | 控制虹膜的飽和度 |
> | eyes_Value | 控制虹膜的值或眼睛明亮度 |
> | nails_mix | 指甲顏色 |
> | [skin_blush](https://mb-lab-docs.readthedocs.io/en/latest/skin_editor.html#skin-blush) | 皮膚紅暈效果 |
> | [skin_bump](https://mb-lab-docs.readthedocs.io/en/latest/skin_editor.html#skin-bump) | 凹凸/位移控制,皮膚皺紋,數值愈高老化皺紋愈深(註:1) |
> | [skin_Complexion](https://mb-lab-docs.readthedocs.io/en/latest/skin_editor.html#skin-complexion) | 膚色(左邊黃種人到右邊黑人) |
> | [skin_Freckles](https://mb-lab-docs.readthedocs.io/en/latest/skin_editor.html#skin-freckles) | 雀斑 |
> | [skin_Oil](https://mb-lab-docs.readthedocs.io/en/latest/skin_editor.html#skin-oil) | 皮膚油脂效果 |
> | skin_rounghness | 皮膚粗糙度 |
> | [skin_sss](https://mb-lab-docs.readthedocs.io/en/latest/skin_editor.html#skin-sss) | 次表面散射度 |
> | [skin_veins](https://mb-lab-docs.readthedocs.io/en/latest/skin_editor.html#skin-veins) | 靜脈效果 |
註:1
凹凸控制需在Others進入Display Option 裡面
點下啟用 Enable displacement preview
#### 4.OTHERS 其他

.Finalize Tool
>角色設計完成後,一定要進入這個項目點選
Save Images and backup character 以儲存影像
然後按下 Finalize with textures and backup
稍等一下之後,MB-Lab 會將剛才設定的貼圖材質儲存到你Blender檔案的目錄下。
.File Tools 材質的匯入匯出
.Display Options 顯示的相關選項

> Enable/Disable displacement preview 啟用/停用凹凸預覽
> Enable/Disable subdivision preview 啟用/停用細分預覽
> Enable/Disable corrective smooth 啟用/停用修正平滑
---
### 四、AFTER-CREATION TOOLS 創建表情、衣服和頭髮和姿勢

#### .[Face Rig](https://mb-lab-docs.readthedocs.io/en/latest/face_rig.html#face-rig) 臉部表情綁定,

>按 Create Face Rig 以綁定
>按 Delete Face Rig 以刪除
>Import FACES Rig 創建表情滑塊(物件模式才能使用)
----
#### .Face Expression 表情外型鍵(需自己建立)
----
#### .ASSETS AND HAIR 資產與頭髮,可從外部資產庫讀入服裝、鞋子、首飾。

1.Mesh Assets資產庫
>Library Folder 資產的儲存目錄,包含髮型和服裝鞋子都放在這裡,可自訂目錄位置。
Assets model 模型資產的名稱,點兩下選用資產,然後到下面Proxy Fiting點選Fit Proxy 來套用。
2.Hair 從這項目下可建立粒子頭髮。
> | 英文| 中文 |
> | -------- | -------- |
> |Color Select | 頭髮顏色 |
> |Particle Hair | 直接建立粒子毛髮 |
> |Hair From Selected | 從選取的部分(進編輯模式選取)建立粒子毛髮 |
> |Change Color | 變更毛髮顏色(選取發射的物件再按) |
Save Hair Color 儲存毛髮顏色此處可輸入毛髮顏色名稱後點按以下項目:
> | 英文| 中文 |
> | -------- | -------- |
> |add Preset |增加預設的顏色|
> |Delete Preset |刪除預設的顏色|
> |Undo Delete Preset |還原刪除的預設顏色|
----
#### .Proxy Fiting 代理合身,
將 Mesh Assets資產庫選取的服裝資產應用在體型並符合骨架,使用時先到Library Folder選取服裝資產,然後點一下 Fit Proxy 來套用,Remove Fitting 則可以移除。

----
#### .Pose And Animation 姿勢與動畫
必須先完成 Finalize with textures and backup 才可進行此作業。
紅框處點進去會以更多細項。
<font color="red">此項目於選用 Use Inverse Kinematic 反向運動的情況下不可用</font>

> | 英文| 中文 |
> | -------- | -------- |
> |Load pose |載入姿勢 |
> |Save Pose |儲存姿勢 |
> |Reset pose |恢復姿勢 |
> |Load Animation(BVH) |載入動作 BVH |
> |Humanoid Rotations |人形旋轉 |
> |Delete Humanoid Rotations |刪除人形旋轉 |
Female pose:(女性 姿勢)
> | 英文| 中文 |
> | -------- | -------- |
> |Capture | 被俘虜|
> |Flying | 飛行|
> |Glamour | 迷人|
> |Gym | 健身|
> |Pinup | 性感|
> |Shojo Classic | 少女經典|
> |Sit Basic | 基礎坐勢|
> |Sit Meditation | 冥想坐勢|
> |Sit Sex | 性感坐勢|
> |Sorceress | 魔女|
> |Standing | 立勢|
> |Standing Basic | 基本立勢|
> |Standing Fitness Competition | 健美立勢|
> |Standing in Lab | 實驗立勢|
> |Standing Old People | 老人立勢|
> |Standing Symmetric | 對稱站立|
male pose:(男性 姿勢)
> | 英文| 中文 |
> | -------- | -------- |
> |Capture | 被俘虜|
> |Evil Beast | 卑鄙的畜生|
> |Evil Explains | 卑鄙的辯解|
> |Evil Waiting Orders | 卑鄙的等待指令|
> |Flying | 飛行|
> |Gym | 健身|
> |Sit Basic | 基礎坐勢|
> |Sit Meditation | 冥想坐勢 |
> |Standing Basic | 基本立勢|
> |Standing Fitness Competition | 健美立勢|
> |Standing in Lab | 實驗立勢|
> |Standing Old People | 老人立勢|
> |Standing Symmetric | 對稱站立|
#### .UTILITIES 工具
此項目下Choose a proxy reference 可於 Select 選擇一個樣本體型,以建立自己的服裝資產,體型樣本有真實或動漫男性女性可選,點一下 Import template即可匯入樣本。

自建服裝資產可參考:https://www.youtube.com/watch?v=hXUSwf4SSNQ
資產建立重點過程:
>1.從 select 選擇服裝所需要的人形,按Import Template。
>2.建立或匯入服裝,盡可能讓服裝大小符合人形體態的大小。
>3.調整細部,如果服裝局部有被人形吃掉的部分可進雕刻模式慢慢調整到沒有被吃掉,直到滿意為止。
>4.僅保留服裝物件,刪除人形及所有物件和Collection。
>5.將服裝物件命名並獨立成一個 Collection,將 Collection 名稱改為與服裝物件一致。
>6.儲存到 Mesh Assets 資產庫目錄中,檔名與服裝物件一樣。
Bones rot. offset 骨骼旋轉偏移,可儲存調整過的骨骼或儲存/載入BVH 骨骼動態設定檔。