|
102 | 102 | new THREE.GLTFLoader().load('model.glb', object => { |
103 | 103 | model = object.scene; |
104 | 104 |
|
105 | | - rig = new Rig(model, { |
106 | | - boneMappings: { |
107 | | - /* Hips: 'J_Bip_C_Hips', |
108 | | - Spine: 'J_Bip_C_Spine', |
109 | | - Chest: 'J_Bip_C_UpperChest', |
110 | | - Neck: 'J_Bip_C_Neck', |
111 | | - Head: 'J_Bip_C_Head', |
112 | | - Eye_L: 'J_Adj_L_FaceEyeSet', |
113 | | - Eye_R: 'J_Adj_R_FaceEyeSet', |
114 | | -
|
115 | | - Left_shoulder: 'J_Bip_L_Shoulder', |
116 | | - Left_arm: 'J_Bip_L_UpperArm', |
117 | | - Left_elbow: 'J_Bip_L_LowerArm', |
118 | | - Left_wrist: 'J_Bip_L_Hand', |
119 | | - Left_leg: 'J_Bip_L_UpperLeg', |
120 | | - Left_knee: 'J_Bip_L_LowerLeg', |
121 | | - Left_ankle: 'J_Bip_L_Foot', |
122 | | -
|
123 | | - Right_shoulder: 'J_Bip_R_Shoulder', |
124 | | - Right_arm: 'J_Bip_R_UpperArm', |
125 | | - Right_elbow: 'J_Bip_R_LowerArm', |
126 | | - Right_wrist: 'J_Bip_R_Hand', |
127 | | - Right_leg: 'J_Bip_R_UpperLeg', |
128 | | - Right_knee: 'J_Bip_R_LowerLeg', |
129 | | - Right_ankle: 'J_Bip_R_Foot', */ |
130 | | - |
131 | | - /* Hips: 'Hips', |
132 | | - Spine: 'Spine', |
133 | | - Chest: 'Chest', |
134 | | - Neck: 'Neck', |
135 | | - Head: 'Head', |
136 | | - Eye_L: 'Eye_L', |
137 | | - Eye_R: 'Eye_R', |
138 | | -
|
139 | | - Left_shoulder: 'Left_shoulder', |
140 | | - Left_arm: 'Left_arm', |
141 | | - Left_elbow: 'Left_elbow', |
142 | | - Left_wrist: 'Left_wrist', |
143 | | - Left_leg: 'Left_leg', |
144 | | - Left_knee: 'Left_knee', |
145 | | - Left_ankle: 'Left_ankle', |
146 | | -
|
147 | | - Right_shoulder: 'Right_shoulder', |
148 | | - Right_arm: 'Right_arm', |
149 | | - Right_elbow: 'Right_elbow', |
150 | | - Right_wrist: 'Right_wrist', |
151 | | - Right_leg: 'Right_leg', |
152 | | - Right_knee: 'Right_knee', |
153 | | - Right_ankle: 'Right_ankle', */ |
154 | | - }, |
155 | | - }); |
| 105 | + rig = new Rig(model); |
156 | 106 | /* for (const k in setups) { |
157 | 107 | setups[k] = setups[k].toArray(); |
158 | 108 | } |
|
0 commit comments