luoxuhai / pcl.js

☁️ ⚡ Point Cloud Library (PCL) for browser, powered by WebAssembly.|在浏览器运行的点云库 (PCL),由 WebAssembly 提供支持。
https://pcl.js.org
MIT License
453 stars 38 forks source link

Uncaught ReferenceError: OrbitControls is not defined #70

Closed luoxuhai closed 2 years ago

luoxuhai commented 2 years ago

Is there an existing issue for this?

Package Version

1.13.0

Current Behavior

image

Expected Behavior

No response

Steps To Reproduce

<script src="https://cdn.jsdelivr.net/npm/three/build/three.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three/examples/js/loaders/PCDLoader.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three/examples/js/controls/OrbitControls.js"></script>
<script src="https://cdn.jsdelivr.net/npm/pcl.js/dist/pcl.js"></script>
<script src="https://cdn.jsdelivr.net/npm/pcl.js/dist/visualization/PointCloudViewer.js"></script>

No response

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

No response