Git Product home page Git Product logo

Comments (11)

stig-atle avatar stig-atle commented on June 3, 2024 1

Here you go:
from_gltf_export_skinned_cylinder.zip

from ogre_gltf.

Ybalrid avatar Ybalrid commented on June 3, 2024

I'm going to install the Blender addon and export that object and see what's going on.
(you can also give me the exact gltf/glb file that was exported on your side here; just in case 😉 )

from ogre_gltf.

Ybalrid avatar Ybalrid commented on June 3, 2024

Going to step through the skeleton reading with a debugger and look at the raw data in the json, see if nothing stupid is going on

from ogre_gltf.

Ybalrid avatar Ybalrid commented on June 3, 2024

Indeed, the "root" node used here is 2, while the list of joints are the nodes 3 to 6 in the gltf hierarchy

from ogre_gltf.

Ybalrid avatar Ybalrid commented on June 3, 2024

Okay, I think I found the "bug". The sample object that I was using while testing is using the same node index for it's "skeleton" object as for the first joint in it's array of joints. This seems that it's generally not the case.

As far as I can tell, the root bone is the first joint inside the skin object. After that, each of them define their list of children, so we can recurse through that...

from ogre_gltf.

Ybalrid avatar Ybalrid commented on June 3, 2024

@stig-atle Can you confirm you don't have the original issue anymore with the latests commits on master?

from ogre_gltf.

stig-atle avatar stig-atle commented on June 3, 2024

It does not crash - all though I cannot see the geometry in the viewport either. I have to test some more to be sure things are in order.

from ogre_gltf.

Ybalrid avatar Ybalrid commented on June 3, 2024

I actually haven't checked for the geometry. It may be just a matter of moving the camera inside the main in the test program, or changing the position/scale of the scene node

from ogre_gltf.

Ybalrid avatar Ybalrid commented on June 3, 2024

The issue is a bit more complex that I thought originally, I'm trying to understand what exactly should be the transform to apply to the root bone/all the bones based on theses discussions and standard texts

https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#joint-hierarchy

This whole twitter thread with Crashy https://twitter.com/LMCrashy/status/1015632363907403781

This issue with on the GLTF repository KhronosGroup/glTF#1270

from ogre_gltf.

Ybalrid avatar Ybalrid commented on June 3, 2024

@stig-atle Can you check with current master branch? Lots of fixes with the bone parsing were implemented. Including some bone indices that where messed-up

from ogre_gltf.

Ybalrid avatar Ybalrid commented on June 3, 2024

I consider this fixed.

from ogre_gltf.

Related Issues (17)

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.