我有一个 3D .glb 模型,我想将其转换为 JSX 文件,我在那里聚集了 gltfjsx 库,但是当我运行命令时: npx gltfjsx /path/model.glb我收到错误; node:internal/errors:490 ErrorCaptureStackTrace(err); ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'read-pkg-up' imported from /Users/xyz/.npm...
First you run your model through gltfjsx.npxallows you to use npm packages without installing them. npx gltfjsx model.gltf --transform This will create aModel.jsxfile that plots out all of the assets contents. /*auto-generated by: https://github.com/pmdrs/gltfjsxauthor: abcdef (https:/...