king2088 / vue-3d-loader

VueJS and threeJS 3d viewer plugin
https://king2088.github.io/vue-3d-loader-docs
MIT License
226 stars 38 forks source link

移动鼠标,改变模型视角 #11

Closed leeycode closed 1 year ago

leeycode commented 1 year ago

大佬好,请问有有没有可能做成类似腾讯云首页的banner图一样,鼠标移动,模型的视角也改变呢? https://cloud.tencent.com/

king2088 commented 1 year ago

大佬好,请问有有没有可能做成类似腾讯云首页的banner图一样,鼠标移动,模型的视角也改变呢? https://cloud.tencent.com/

由于vue-3d-loader仅是为了加载渲染3D模型而开发的,并不具备此功能。 你可以尝试使用threeJS进行制作,大概理论如下: 1、threeJS获取模型数据 2、设置模型的rotation跟随鼠标在屏幕的位置而旋转模型角度

leeycode commented 1 year ago

感谢解答!