🎡MixamoのリグキャラクターをThree.js上で動かす glTFとfbxの違い
https://tympanus.net/codrops/2019/10/14/how-to-create-an-interactive-3d-character-with-three-js/
(function() {
// Set our main variables
let scene,
renderer,
camera,
model, // Our character
neck, // Reference to the neck bone in the skeleton
waist, // Reference to the waist bone in the skeleton
possibleAnims, // Animations found in our file
mixer, // THREE.js animations mixer
idle, // Idle, the default state our character returns to
clock = new THREE.Clock(), // Used for anims, which run to a clock instead of frame rate
currentlyAnimating = false, // Used to check whether characters neck is being used in another anim
raycaster = new THREE.Raycaster(), // Used to detect the click on our character
loaderAnim = document.getElementById('js-loader');
})(); // Don't add anything below this line
init()関数の冒頭で、キャンバスを参照する前に、モデルファイルを参照します。Three.jsは様々な3Dモデルフォーマットをサポートしていますが、このglbフォーマットを推奨しています。依存関係にあるGLTFLoaderを使用して、このモデルをシーンにロードします。
BlenderでFBXエクスポートしてmaximoへ、 ExportはglTFにしてThree.jsへ
お願い致します