Coder Social home page Coder Social logo

Comments (3)

javagl avatar javagl commented on July 17, 2024

Just to confirm: The Image 18b contains the computation

         ( 0.5,  0.5,  0.0)
+ 1.0  * ( 1.0,  1.0,  0.0)
+ 0.25 * (-1.0,  1.0,  0.0)
=        ( 1.25, 1.75, 0.0)

and the question is where the factors 1.0 and 0.25 come from, is that correct?

I agree that it could make sense to swap the rows + 1.0... and + 0.25... (and I'm not sure why I wrote them in this order right now...). Do you think that this could be sufficient to avoid the confusion?

Otherwise, some details could be added. Maybe by some additional statement in the preceding text, roughly like that:

At the time stamp 1.25, the weights for the morph targets are computed by the animation sampler (maybe link to https://github.com/KhronosGroup/glTF-Tutorials/blob/master/gltfTutorial/gltfTutorial_007_Animations.md#animation-samplers here) as follows:
The weight for morph tarrget 0 (red) is (0.0 + 0.25 * (1.0 - 0.0)) = 0.25
The weight for morph tarrget 1 (green) is (1.0 + 0.25 * (1.0 - 1.0)) = 1.0

But that might be a bit too much detail here (and therefore, potentially confusing), given that the concept of computing animated values with a sampler is already explained with an example in the linked section.

from gltf-tutorials.

tim-rex avatar tim-rex commented on July 17, 2024

Thanks Marco. I think it’s probably sufficient to swap the two rows. While it took me longer than I care to admit to realise this was the source of my confusion, once I realised everything made perfect sense.

from gltf-tutorials.

javagl avatar javagl commented on July 17, 2024

I created a PR at #74 , swapping the rows and adding a short explanation for the values.

from gltf-tutorials.

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.