question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Collada animations, KeyFrameAnimation removed ?

See original GitHub issue
Description of the problem

Hello,

The class KeyFrameAnimation has been removed from the docs and the examples. How am I supposed to animate my collada model when kinematics and skinning methods are not working at all ? How can i use the collada.animations with this latest release ( r86 ) ?

const loader = new ColladaLoader();

loader.load(source, function(collada) 
{
	const obj = collada.scene;
        const animations = collada.animations; // I have to use this.

	obj.traverse(function(child)
	{
		child.castShadow = true;
		child.receiveShadow = true;
	});
});

Thanks for reading.

Three.js version
  • Dev
  • r86
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Mugen87commented, Jun 22, 2017

These two examples are not yet official but they work with ColladaLoader2 in the master branch.

https://yume.human-interactive.org/examples/collada/index.html https://yume.human-interactive.org/examples/collada/multi.html (Heads up! Big collada file)

We currently try to enhance ColladaLoader2 because ColladaLoader allocates a lot of memory. Some users already reported problems in this context (see https://github.com/mrdoob/three.js/issues/10592).

Please be aware, that ColladaLoader2 is not perfect yet. If you encounter problems, just report them and i will look into it.

1reaction
Mugen87commented, Jun 22, 2017

You can use ColladaLoader2 for skeletal animations. Kinematics support is not yet implemented though.

Besides, the following example shows how you can use the old ColladaLoader with skeletal animations and the core animation system.

KeyFrameAnimation, Animation and AnimationHandler have been deprecated for almost two years and were removed from the project with R86. If you depend on these entities, you can still checkout R85.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keyframe animation missing from Collada export
When I export to Collada, all the objects have their keyframes exported except one. This one object's animation is completely absent from the ......
Read more >
Can't update / remove keyframe values from an imported ...
I'm trying to edit keyframes in an existing animation in a .dae file I have imported to Blender 2.68a, however none of the...
Read more >
Problems creating animated Collada DAE files in 3ds Max ...
Export takes a long time and the resulting DAE is not animated in InfraWorks. ... Remove bones animation and use keyframe animation instead....
Read more >
How to get non-rigged keyframe animations using assimp ...
I know how to get the animation and mesh data from .dae files using assimp but how would I use this to animate...
Read more >
How To Export 3D Models With Their Animation From Blender ...
In this tutorial I'll guide you through the process of animating a model in Blender, exporting it with the animation (s), importing it, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found