|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?)
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.
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.
I’ve found a workaround to the NODE_SKINNED_MESH_NON_ROOT warning.
In Blender remove the parenting of the armature to the mesh (Properties > Relations > Parent).
If you clear the parent from the outliner by dragging it (Drop to clear parent) make sure that the Armature modifier is still present in the mesh (if not add it again).
When you export in gltf/glb everything should work fine (armatures, shapekeys, etc. with no warnings).
Blender version 3.6 tested in https://gltf-viewer.donmccurdy.com/
Hope this helps.