Currently, I am working on a 3D building model using Three.JS and Collada loader. My focus right now is on enhancing the interactivity of the system, but I am encountering two main challenges:
1- Whenever I rotate the model within the scene, it rotates on all 3 axes, resulting in it being upside down at times! I am looking to maintain the model's orientation along the horizontal axis while only rotating it along the Y axis (Up).
Check out this live example of the issue. How can I achieve a rotation of the cube solely around the Y Axis (Up)?
2- I am also seeking guidance on how to implement a smoother control system through mouse movements. In larger models, smoothly zooming into a specific object can be quite challenging. How can I adjust the camera settings to enable fluid zooming, panning, and rotation?
Your insights and suggestions would be greatly appreciated. Thank you.