What is wrong with this GLB file? How do I export it correctly?

With the pmnd gltfjsx viewer I can’t see anything: https://gltf.pmnd.rs
With this viewer I see and I get a warning: https://gltf-viewer.donmccurdy.com

|NODE_SKINNED_MESH_NON_ROOT|Node with a skinned mesh is not root. Parent transforms will not affect a skinned mesh.|/nodes/168|

I just want to show the Model and maybe Play those 3 animations…


    import React, { useRef, useEffect,useState } from 'react';
    import { useFrame, useLoader } from '@react-three/fiber';
    import { useAnimations, useGLTF } from '@react-three/drei';
    import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader';
    import * as THREE from "three"
    function Dummy() {

        const { scene, nodes, animations } = useGLTF("/model/dummy/Dummy.glb");
        return <primitive object={scene} />
    }
    
    export default Dummy

Any ideas what I am doing wrong while exporting from Blender? (Do I have to select just the Body or also the Armature or export everything visible or just the whole Blender scene into the GLB?)

CompressedWebp-transformed.glb (1.5 MB)

I wouldn’t worry too much about the NODE_SKINNED_MESH_NON_ROOT warning, if the model looks as you expect in the viewer and in your own code. Animation playback in the viewer seems OK too.

In my code I don’t see the model - In the end it is the same code as in https://gltf.pmnd.rs - try it.

For me https://gltf.pmnd.rs fails to load with an error about not being able to download the Draco decoder. That is a problem with the viewer, not the model.

If your own code has different errors in the console, I’d recommend sharing a demo, code, and any errors you see.