使用 NPM 和 Three.js 加载 PCD 文件
我是 Three.js 的新手,我正在努力将 PCD 文件导入场景,如果可能的话,我需要一些帮助。
我正在使用 node.module 并使用 npm 安装了“pcd-format”。
这是我的工作空间的图片: 在此处输入图像描述
我想一开始就使用尽可能简单的代码,而不需要使用一些复杂的包来理解原理。
谢谢
I am new with Three.js and I'm struggling to import a PCD file into the scene and I would need some help if possible.
I'm using node.module and I've installed "pcd-format" using npm.
Here is an image of my workspace:
enter image description here
I would like to go with as simple code as possible for the beginning, without using some complex packages in order to understand the principles.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我会回答我的问题,因为我在其他平台上得到了类似问题的帮助。这是我所做的:
npm create vite
,安装“Vanilla”框架,初始化一个新项目“my-project”。npm install Three
和npm运行 dev
在 localhost:3000 上为我的应用程序提供服务现在它可以工作了,只是当我调试时应用程序崩溃了,并且它说 DevTools 已与页面断开连接......
Well, I'll answer to my question since I got help on similar issue on the other platform. Here's what I've done:
npm create vite
, installed "Vanilla" framework, initialized a new project "my-project".npm install three
andnpm run dev
to serve my app on localhost:3000It now works except that the app crashes when I debug and it says that DevTools was disconnected from the page....