简体   繁体   English

three.js OrbitControl替代

[英]three.js OrbitControl alternative

So i tried to use Orbit but in the end i can not. 所以我尝试使用Orbit,但最终我不能使用。 The related post is How to use Three.js OrbitControl on multiple objects and apparently you can not reuse it on multiple objects. 相关文章是如何在多个对象上使用Three.js OrbitControl ,显然您不能在多个对象上重用它。

In the end i will have 4 3D objects on 1 page. 最后,我将在一页上显示4个3D对象。 1 OBJ & 3 PLY objects. 1个OBJ和3个PLY对象。 Is there a library or does anyone know of a way to rotate & pan each individual object? 有图书馆吗,或者没有人知道旋转和平移每个对象的方法吗? I have zooming working on an object by object basis, but could use some direction with rotating and panning. 我可以逐个对象地进行缩放,但是可以在旋转和平移时使用某些方向。

Thanks! 谢谢!

EDIT: 编辑:

There is also the trackball library, but i am guessing it is bound to a single object as well and can not work on multiple objects on a single page? 还有跟踪球库,但我想它也绑定到单个对象,并且不能在单个页面上处理多个对象吗?

通过指定dom元素,它已解决了该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM