提交 c922e6de 编写于 作者: K Kyle Larson

Mid-Commit

上级 ea70646c
此差异已折叠。
此差异已折叠。
......@@ -36,7 +36,7 @@
<script src="js/curves/NURBSCurve.js"></script>
<script src="js/curves/NURBSUtils.js"></script>
<script src="js/loaders/FBXLoader.js"></script>
<script src="js/loaders/FBXLoader2.js"></script>
<script src="js/Detector.js"></script>
<script src="js/libs/stats.min.js"></script>
......@@ -95,29 +95,30 @@
};
var loader = new THREE.FBXLoader( manager );
loader.load( 'models/fbx/xsi_man_skinning.fbx', function( object ) {
debugger;
loader.load( 'models/fbx/xsi_man.fbx', function( object ) {
object.traverse( function( child ) {
if ( child instanceof THREE.Mesh ) {
// if ( child instanceof THREE.Mesh ) {
// pass
// // pass
}
// }
if ( child instanceof THREE.SkinnedMesh ) {
// if ( child instanceof THREE.SkinnedMesh ) {
if ( child.geometry.animations !== undefined || child.geometry.morphAnimations !== undefined ) {
// if ( child.geometry.animations !== undefined || child.geometry.morphAnimations !== undefined ) {
child.mixer = new THREE.AnimationMixer( child );
mixers.push( child.mixer );
// child.mixer = new THREE.AnimationMixer( child );
// mixers.push( child.mixer );
var action = child.mixer.clipAction( child.geometry.animations[ 0 ] );
action.play();
// var action = child.mixer.clipAction( child.geometry.animations[ 0 ] );
// action.play();
}
// }
}
// }
} );
......
{
"globalDependencies": {
"three": "registry:dt/three#0.0.0+20161228004308"
}
}
此差异已折叠。
{
"resolution": "main",
"tree": {
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/962bd3a27382a5164f5aec29a42e7c5f4f6eca36/three/index.d.ts",
"raw": "registry:dt/three#0.0.0+20161228004308",
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/962bd3a27382a5164f5aec29a42e7c5f4f6eca36/three/index.d.ts"
}
}
/// <reference path="globals/three/index.d.ts" />
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册