← All projects

ThreeOrbitControlsGizmo

by @Fennec-hub

Archived 116

Blender like orientation gizmo for Three.js OrbitControls

About this project

⚠️ DEPRECATED ⚠️ 🚀 New Repository: We've replaced this version with a modernized one. Please check out three-viewport-gizmo for the latest updates and improvements. 📢 Why the change? We've upgraded to a more advanced version to provide a better experience and enhanced features. Please use the new repository for all future usage and contributions. 🙏 Thanks for your consideration! We appreciate your support. If you have any questions or need assistance, don't hesitate to reach out. Three Orbit Controls Gizmo This library is the continuation of jrj2211's work, a lightweight Blender like orientation gizmo for Three.js using an internal HTML5 Canvas, adapted here to work in tandem with a slightly modified version of THREE.OrbitControls, it follow the orbit controls changes and you can now change the camera angle by dragging the gizmo or select an axis by clicking on it. Live Demo THREE.OrbitControls modifications : In order to programmatically change the OrbitControls camera sphere angles (spherical.theta , spherical.phi) I had to access these two methods (rotateLeft, rotateUp), since they are internal functions I simply exposed them by adding these two lines : Usage

From the project README on GitHub

Stars
116
Forks
17
License
MIT
Last push
16 Apr 2024

Add this badge to your README

Show that your project is listed on Made in Algeria.

Made in Algeria
[![Made in Algeria](https://www.madeinalgeria.dev/badge/threeorbitcontrolsgizmo.svg)](https://www.madeinalgeria.dev/projects/threeorbitcontrolsgizmo)

Related projects