mithi/hello-tiny-box

Arcball References to Read

Closed this issue · 8 comments

mithi commented

Camera Control in Three Dimensions with a TwoDimensional Input Device
Mark A Livingston
Arthur Gregory
and Bruce Culbertson
Hewlett�Packard Laboratories
Department of Computer Science University of North Carolina at Chapel
http://www.cs.unc.edu/~livingst/navigate.pdf

Arcball controller
https://pixeladventuresweb.wordpress.com/2016/10/04/arcball-controller/

Tutorial of Arcball without quaternions
https://braintrekking.wordpress.com/2012/08/21/tutorial-of-arcball-without-quaternions/

learn opengl camera
https://learnopengl.com/Getting-started/Camera

OpenGL - Camera Keyboard Controls
https://www.youtube.com/watch?v=v6RZRPo0O3k
W A S D
Move forward, move backward, strafe left, strafe right
left, right, forward and backward is WRT the camera coordinate frame NOT the world coordinate frame

ARCBALL:
A User Interface for Specifying
Three-Dimensional Orientation Using a Mouse
https://www.talisman.org/~erlkonig/misc/shoemake92-arcball.pdf

3d controls
http://www.cabiatl.com/mricro/obsolete/graphics/3d.html

ArcBall / Quaternions
Elevation and Azimuth

http://www.ece.northwestern.edu/local-apps/matlabhelp/techdoc/visualize/chview2.html

ArcBall / Quaternions

http://rainwarrior.ca/dragon/arcball.html

mithi commented

Screen Shot 2020-08-20 at 2 22 00 PM

Screen Shot 2020-08-20 at 2 22 40 PM

Screen Shot 2020-08-20 at 2 23 12 PM

Screen Shot 2020-08-20 at 2 23 22 PM

Screen Shot 2020-08-20 at 2 23 47 PM

Screen Shot 2020-08-20 at 2 24 16 PM

mithi commented

https://stackoverflow.com/questions/21009821/how-to-implement-a-onmousedown-and-onmouseup-on-a-touch-screen-iphone
https://caniuse.com/#feat=pointer

You might be interested in onpointerup and onpointerdown events which will work on both touch and non touch devices

The equivalent for onmousedown on touchscreen devices is ontouchstart, and the equivalent of onmouseup is ontouchend.
If you would also like to detect dragging, you could use ontouchmove which is fired every time you move your finger after touching the screen.