对于three.js项目,这可能是一个有点古怪的模板/框架。 使用透视相机查看旋转的多维数据集来设置场景。 使用OrbitControls,添加三个js stat跟踪器和dat.gui。 画布设置为与您指定其ID的dom元素的大小匹配,并在调整窗口大小时将调整大小。
跑步:
npm install
watchify index.js -o './build/bundle.js'
npm i http-server
http-server -p <portNumber>
打开位于http://localhost:<portNumber>浏览器
评论0
最新资源