Code Monkey home page Code Monkey logo

Comments (2)

c-morten avatar c-morten commented on September 26, 2024

Hi @DC2009. Which host asset are you using? The default behavior of the BABYLON.SceneLoader.LoadAssetContainerAsync method which we use in our example is to automatically play the animation contained in the file being loaded. For all host assets we provide in our repository other than Wes and Fiona, we have a single animation in the character glTF file called bindPoseOffset. The purpose of this animation is to be played additively on top of all other animations so that the animations we exported from the Wes and Fiona rigs can be shared across all male and female hosts. Inside the loadCharacter method, you'll seeing following line that converts that animation to additive format: BABYLON.AnimationGroup.MakeAnimationAdditive(bindPoseOffset);. Since you're commenting out all of the host code, this line will result in an additive format animation being played as override, which would result in the host disappearing since the scale values would be set to (0,0,0). You don't actually want that animation to play anyway since you're trying to avoid playing animations, so try replacing that line with the following: bindPoseOffset.stop();

from amazon-sumerian-hosts.

DC2009 avatar DC2009 commented on September 26, 2024

Hi @c-morten. Thanks for your quick answer. Your solution worked perfectly! I tested only Grace. I missed that line as I concentrated on the createHost function...

from amazon-sumerian-hosts.

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.