Browse Source

sea3d revision 2

Jean Carlo Deconto 10 years ago
parent
commit
2f72d9c9d6

+ 1 - 2
examples/js/loaders/sea3d/SEA3DLoader.js

@@ -395,8 +395,7 @@ THREE.SEA3D.AnimationHandler = {
 			mesh.previousAnimation.weight = 1 - mesh.currentAnimation.weight;
 
 		}
-
-		THREE.AnimationHandler.update( dt );
+		
 		SEA3D.AnimationHandler.update( dt ); 
 
 	},

+ 5 - 2
examples/webgl_loader_sea3d.html

@@ -169,9 +169,12 @@
 				
 				requestAnimationFrame( animate );
 
-				// update Three.JS+SEA3D animation
+				// Update SEA3D Animations
 				THREE.SEA3D.AnimationHandler.update( delta );
-				
+
+				// Update Three.JS Animations
+				THREE.AnimationHandler.update( delta );
+
 				controls.update();
 
 				render( delta );

+ 2 - 2
examples/webgl_loader_sea3d_hierarchy.html

@@ -177,9 +177,9 @@
 				
 				requestAnimationFrame( animate );
 
-				// update Three.JS+SEA3D animation
+				// Update SEA3D Animations
 				THREE.SEA3D.AnimationHandler.update( delta );
-				
+
 				controls.update();
 
 				render( delta );

+ 2 - 2
examples/webgl_loader_sea3d_keyframe.html

@@ -286,9 +286,9 @@
 				
 				requestAnimationFrame( animate );
 
-				// update Three.JS+SEA3D animation
+				// Update SEA3D Animations
 				THREE.SEA3D.AnimationHandler.update( delta );
-				
+
 				controls.update();
 
 				render( delta );

+ 4 - 1
examples/webgl_loader_sea3d_skinning.html

@@ -201,9 +201,12 @@
 				
 				requestAnimationFrame( animate );
 
-				// update Three.JS+SEA3D animation
+				// Update SEA3D Animations
 				THREE.SEA3D.AnimationHandler.update( delta );
 				
+				// Update Three.JS Animations
+				THREE.AnimationHandler.update( delta ); 
+				
 				controls.update();
 
 				render( delta );

+ 5 - 5
examples/webgl_loader_sea3d_sound.html

@@ -438,13 +438,13 @@
 				// Sound3D Spatial Transform Update
 				loader.audioListener.position.copy( audioPos.setFromMatrixPosition( camera.matrixWorld ) );
 				loader.audioListener.rotation.copy( audioRot.setFromRotationMatrix( camera.matrixWorld ) );
-				
+
 				// Update sound filter from raycaster intersecting				
 				updateSoundFilter( collisionArea, soundArea );
-				
-				// SEA3D Keyframe Update		
-				SEA3D.AnimationHandler.update( delta ); 
-				
+
+				// Update SEA3D Animations
+				THREE.SEA3D.AnimationHandler.update( delta );				
+
 				render( delta );
 
 				stats.update();