twinklebear / arcball-cpp Goto Github PK
View Code? Open in Web Editor NEWA Shoemake Arcball camera in C++
License: MIT License
A Shoemake Arcball camera in C++
License: MIT License
What I did:
I modified example.cpp as follows:
glm::perspective()
from 65° to 8°.example
What happened:
The moving of the cube is much faster than the moving of the mouse and the center of the cube quickly escapes from the mouse.
What I expect to happen:
Since center is at (0,0,0) and the center of the half cube is also at (0,0,0) I would expect that while panning the center of the cube will remain under the center of the mouse.
Comments:
I've been trying to solve this on my own, but I still haven't understood what exactly is wrong, however, is is bothering me that in your panning routine don't take into account the projection matrix.
If I were to solve this, I will make a pull request, but I would be more than pleased if you can solve this.
Thanks a lot for arc-ball!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.