I have downloaded a set of files from a site and exported the glb, gltf, and mtl files in blender. I can get the glb or gltf file to display in the react-three-fiber scene, but I am not sure how to get the textures to display properly. I have come across a couple of demos but they seem old and what would not work.
Here is how I load the file.
import desk from '../../assets/desk.gltf'; // or .glb file
const [gltf, set] = useState();
useMemo(() => new GLTFLoader().load(desk, set), []);
return gltf ? <primitive object={gltf.scene} scale={[0.05, 0.05, 0.05]} position={[0,0,1]}
rotation={[Math.PI/2,Math.PI,0]}/> : null