pmndrs / three-stdlib

📚 Stand-alone library of threejs examples designed to run without transpilation in node & browser
https://npmjs.com/three-stdlib
MIT License
704 stars 117 forks source link

useGLTF with KTX2Loader #354

Closed KallkaGo closed 1 month ago

KallkaGo commented 5 months ago

i use gltfpack to compression model and Texture ,so i use useGLTF to load it this is my code : image but i got an error image Interestingly using the KTX2Loader from three/example it works fine. Is my usage wrong? Or is there something wrong with the KTX2Loader of three-stdlib?

version: @react-three/drei: "9.105.3", @react-three/fiber: "^8.16.2", three: "^0.161.0", three-stdlib: "2.29.6",

CodyJasonBennett commented 5 months ago

This looks like a bug, nothing wrong on your part. I'll take a closer look.

jereloh commented 5 months ago

i use gltfpack to compression model and Texture ,so i use useGLTF to load it this is my code : image but i got an error image Interestingly using the KTX2Loader from three/example it works fine. Is my usage wrong? Or is there something wrong with the KTX2Loader of three-stdlib?

version: @react-three/drei: "9.105.3", @react-three/fiber: "^8.16.2", three: "^0.161.0", three-stdlib: "2.29.6",

Having same issue using:

"@react-three/drei": "^9.105.4", "@react-three/fiber": "^8.16.2", "three": "^0.163.0", "three-stdlib": "^2.29.6",

CodyJasonBennett commented 1 month ago

Fixed with #374.