You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the default GLTF export feature from Blender to export my model that is at a scale of 18.6 and it seems to not contain any nodes or materials after converting via the gltfjsx conversion. Using react-three-fiber version ^4.0.9.
The following is what I'm seeing. What am I doing wrong?
GLB Code (when I remove spread operator and just assign a variable)
Conversion code
// Auto-generated by https://github.com/react-spring/gltfjsx
import * as THREE from 'three'
import React, { useEffect, useRef } from 'react'
import { useLoader, useFrame } from 'react-three-fiber'
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader'
export default function Model(props) {
const group = useRef()
const { nodes, materials, animations } = useLoader(GLTFLoader, '/models/round-logo.glb')
console.log('nodes', nodes)
return (
<group ref={group} {...props} dispose={null}>
<scene name="Scene">
<mesh
material={materials['Material']}
geometry={nodes['Curve004'].geometry}
name="Curve004"
rotation={[Math.PI / 2, 0, 0]}
scale={[10, 0, 10]}
/>
</scene>
</group>
)
}
The text was updated successfully, but these errors were encountered:
I ran yarn add react-three-fiber@latest and that did the trick. I previously tried using 4.0.12 and that didn't work. Maybe an update to the docs to eliminate confusion? Thanks for the help, loving everything! Nice work!
I'm using the default GLTF export feature from Blender to export my model that is at a scale of
18.6
and it seems to not contain anynodes
ormaterials
after converting via thegltfjsx
conversion. Usingreact-three-fiber
version^4.0.9
.The following is what I'm seeing. What am I doing wrong?
GLB Code (when I remove spread operator and just assign a variable)
Conversion code
The text was updated successfully, but these errors were encountered: