Giter VIP home page Giter VIP logo

Comments (9)

rainyt avatar rainyt commented on May 25, 2024
loader = new Loader3D();
		loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, (event) -> {
			view3d.scene.addChild(loader);
			loader.scale(300);
			loader.y += 100;
			animator = new SkeletonAnimator(animationSet, skeleton);
			mesh.animator = animator;
			animator.play("node_0");
			animator.autoUpdate = true;
		});

I used this layer of code, but there is no animation, even the picture is distorted.

image

from away3d.

player-03 avatar player-03 commented on May 25, 2024

I started digging into this and fixing bugs. I haven't fixed everything yet, but I've successfully gotten an animation to play. Try pull request #40 and see if it helps.

from away3d.

rainyt avatar rainyt commented on May 25, 2024

I started digging into this and fixing bugs. I haven't fixed everything yet, but I've successfully gotten an animation to play. Try pull request #40 and see if it helps.

@player-03 This doesn't seem to help, is there no bones for loading dae? parentPose is null.

Error:

TypeError: Cannot read property 'orientation' of null
    at away3d_animators_SkeletonAnimator.localToGlobalPose (AtalsRender.js:7492)
    at away3d_animators_SkeletonAnimator.updateGlobalProperties (AtalsRender.js:7232)
    at away3d_animators_SkeletonAnimator.setRenderState (AtalsRender.js:7172)
    at away3d_materials_passes_DepthMapPass.updateAnimationState (AtalsRender.js:43722)
    at away3d_materials_TextureMaterial.renderDepth (AtalsRender.js:36706)
    at away3d_core_render_DepthRenderer.drawRenderables (AtalsRender.js:21737)
    at away3d_core_render_DepthRenderer.draw (AtalsRender.js:21705)
    at away3d_core_render_DepthRenderer.executeRender (AtalsRender.js:21359)
    at away3d_core_render_DepthRenderer.render (AtalsRender.js:21320)
    at away3d_lights_shadowmaps_DirectionalShadowMapper.drawDepthMap (AtalsRender.js:25104)

Later, even if I fixed the error, it seems that only part of the bones will be animated.

from away3d.

rainyt avatar rainyt commented on May 25, 2024

cat2.dae.zip
Error DAE file.

from away3d.

player-03 avatar player-03 commented on May 25, 2024

Thanks for the example file! I don't have time to look at this right now, but I definitely want to get to it.

from away3d.

rainyt avatar rainyt commented on May 25, 2024

Thanks, if you have any news, please let me know.

from away3d.

rainyt avatar rainyt commented on May 25, 2024

video.zip
This is the performance of animation.

from away3d.

rainyt avatar rainyt commented on May 25, 2024

image

Good news! The current check is that the id of all animations is always empty characters, which causes an error.

from away3d.

rainyt avatar rainyt commented on May 25, 2024

image
Animate is ok now! @player-03
I created a pull request:#42

from away3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.