Giter Club home page Giter Club logo

Comments (4)

warrenm avatar warrenm commented on July 29, 2024

This may be a usage error. In lines 43–49 of ContentView.swift, you iterate over the skinned nodes of the dino model and apply the skeleton of a different hierarchy ("head") as the skeleton of these nodes. The framework already applies skeletons to the SceneKit node/skinner pairs it generates, so this seems extremely odd to me. If I remove line 47, the model looks the same regardless of which model I load.

from gltfkit2.

daninils avatar daninils commented on July 29, 2024

Thanks for the fast reply!

Sorry for the confusion.
The reason why I'm applying the skeleton to a different hierarchy is to be able to build a "avatar" with different skins/assets and then run a animation for the character.

So the head.glb is the main file where we build the avatar with different skins (like t-shirt or hoodies etc).

I don't know if this "temperance" bone direction is possible to do in this lib or if it's more towards something that cgltf can do? What do you think?😊

from gltfkit2.

warrenm avatar warrenm commented on July 29, 2024

There is no such concept as "Temperance" or any other variation on joint pose in the glTF format. These are just heuristics used by modeling packages to map from whatever their internal format is to glTF. This should be apparent because if you load either model and don't change its skeleton, it displays correctly. If you want to compose multiple scenes together, you are responsible for ensuring that the coordinate spaces of the joint hierarchies are consistent among them. This is a data problem, not a library problem.

from gltfkit2.

warrenm avatar warrenm commented on July 29, 2024

This issue will be closed as completed in 7 days if no further response is received.

from gltfkit2.

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.