react-three-fiber中three.js编辑器的Modelviewer环境

Modelviewer environment of three.js editor in react-three-fiber

我正在用 react-three-fiber 做一个小项目。如果我将我的 .gbl 3D 模型加载到场景中,即使我在 canvas 中使用环境光,它也会完全黑暗。但是在 three.js 编辑器中,如果我使用 Modeviewer 环境,它看起来就像我想要的那样。是否可以在某处下载此环境并在我的项目中使用它?

是的,来自drei库的舞台组件https://twitter.com/0xca0a/status/1402975317174726656 all you need is wrap your model into <Stage>. as for models being dark even with ambientlight, this is usually related to wrong materials, for instance metalness=1. take a look here: https://discourse.threejs.org/t/ambient-light-and-gltf-models-not-working-results-in-black-model/7428/5