dwqdaiwenqi / react-3d-viewer

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

How to use Gltf viewer #7

Open chloesun opened 5 years ago

chloesun commented 5 years ago

I was following the example below to render a GLTF asset: https://dwqdaiwenqi.github.io/react-3d-viewer/site/#/GLTF

It works well if the GLTF only contains a .gltf file, but when I try to render a GLTF folder contains .gltf file .png for material, and .bin file, and I use the `src="../abc.gltf", "An error happened", how to properly reference the GLTF asset with multiple files. Can you provide an example?

Thank you!

chquiej commented 4 years ago

Lo pudiste solucionar? me he topado con el mismo problema... gracias.