使用 React 将渲染结果渲染到三.js 画布中。
这个项目基本上已经冻结了,而 React-three-renderer-fiber 项目的进展速度非常缓慢。如果您想为 React + Three 桥接生态系统做出贡献,请查看如何参与更活跃的 https://github.com/drcmda/react-three-fiber 项目。
这仍然是一个实验性的项目,请自行承担风险!
目前支持的 React 版本为 15.5.3 (在如此接近太阳时,事情会很快崩溃) 这个项目维护和开发相对缓慢。 目前我们正在努力恢复与 React 16 - 光纤版本的兼容性! 请查看 https://github.com/toxicFork/react-three-renderer-fiber. 中的工作进展。 预计完成时间: 未知。 安装 ============== npm install --save [email protected] [email protected] [email protected] npm install --save react-three-renderer 使用 ===== 模块的默认输出是一个 React 组件。 安装后,其所有子元素都将被放置到 three.js 环境中。 以下是一个简单的示例,实现了 三.js 的入门场景。 ```
…
将此仓库分叉并克隆,然后执行 npm install。``` npm run compile ``` 会在 'lib' 目录中生成与 ES5 兼容的代码。如果您想尝试使用 [npm link](https://docs.npmjs.com/cli/link) 或 [本地 npm install](http://stackoverflow.com/questions/8088795/installing-a-local-module-using-npm),可以这样做。
[](https://travis-ci.org/toxicFork/react-three-renderer)暂无开放 Issues,或尚未同步最近议题。