dwqdaiwenqi / react-3d-viewer

A 3D model viewer component based on react.js 一个基于react.js的组件化3d模型查看工具
167 stars 64 forks source link

THREE.GLTFLoader: Unknown extension "KHR_texture_transform" #21

Open ElvisWong opened 3 years ago

ElvisWong commented 3 years ago

Thank you for building this. It helps a lot on easier display on 3d model.

Will there be any support on using extension "KHR_texture_transform" with gltf file on react-3d-viewer?? I want to display my jacket .gltf file but those tile image was missing.

https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_transform

ElvisWong commented 3 years ago

Just find a solution for this: https://github.com/mrdoob/three.js/pull/13831/commits/951ab07daae4db0373029be47161822e42b9ff62

what you need to do is to update the src/loader.js to support this extensions. I had forked this repo for further implementation. https://github.com/sensible-lab/react-3d-viewer/commits/master