Questions tagged [arcball]

An arcball is a way of making a 3d object interactive, by mapping 2d input coordinates into a 3d vector.

About Arcball

An arcball is an interface for manipulating a 3D world in an intuitive way, and can be thought of as a virtual trackball. This snippet presents a simple arcball library which automatically attaches itself to your sketch and allows you to freely rotate the world in 3D dimensions about a specified point. Extensions to this library might change the way the mouse movements are interpreted, add a zoom control, and so on. This arcball library is adapted from code by Simon Greenwold for Yale's Model Based Design class. The arcball method of interaction was introduced by Ken Shoemake in his 1985 SIGGRAPH paper "Animating rotations with quaternion curves".

More information and examples: http://wiki.processing.org/w/Arcball

26 questions
6
votes
2 answers

How to rotate about the center of screen using quaternions in opengl?

I am trying implement arcball/trackball rotation but I have a problem with the center of rotation. I want the center to be the center of my screen no matter what. Let me explain what I have done so far. I've created a quaterion (rotation…
user228144
5
votes
2 answers

Arcball Rotation with Quaternions (using iOS GLKit)

I'm looking for a simple implementation for arcball rotation on 3D models with quaternions, specifically using GLKit on iOS. So far, I have examined the following sources: Arcball rotation with GLKit How to rotate a 3D object with touches using…
Ricardo RendonCepeda
  • 3,271
  • 4
  • 23
  • 30
4
votes
1 answer

OpenGL ArcBall for rotating mesh

I am using legacy OpenGL to draw a mesh. I am now trying to implement an arcball class to rotate the object with the mouse. However, when i move the mouse, the object either doesn't rotate or rotates by way too big an angle. This is the method that…
4
votes
1 answer

PyOpenGL transforming view coordinates into object coordinates for ArcBall navigation

I am following this tutorial for arcball navigation in 3d: https://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Tutorial_Arcball I managed to perform all the steps and the navigation works but I cant seem to comprehend last step in…
J.J.
  • 129
  • 2
  • 14
4
votes
1 answer

arcball controls with Qt, and OpenGL

I am trying to implement an arcball/trackball controller using Open GL and Qt. However, I am quite new to OpenGL. I am having a terrible, terrible, terrible time getting things to work. I started by following this video:…
MrSynAckSter
  • 1,681
  • 1
  • 18
  • 34
3
votes
1 answer

math java-processing arcball quaternion trig, float rounding error

I am modifying an arcball class to rotate 1 degree each time rollforward() is called. I am having difficulty reading the code, but I believe I need to write an alternative to XY_to_sphere() where; let point 1 = v1, point 2 = v2, such that pi/180 =…
cubesareneat
  • 302
  • 2
  • 14
3
votes
1 answer

Arcball camera inverting at 90 deg azimuth

I'm attempting to implement an arcball style camera. I use glm::lookAt to keep the camera pointed at a target, and then move it around the surface of a sphere using azimuth/inclination angles to rotate the view. I'm running into an issue where the…
Elmo
  • 79
  • 7
3
votes
2 answers

Opengl: Keeping Arcball camera up-vector alligned with y-axis

I'm essentially trying to mimic the way the camera rotates in Maya. The arcball in Maya is always aligned with the with the y-axis. So no matter where the up-vector is pointing, it's still rotated or registered with it's up-vector along the…
Poken1151
  • 570
  • 5
  • 20
2
votes
0 answers

OpenGL - Cannot get cumulative rotation around correct axis and origin

I am implementing an Arcball rotation in an existing project I wrote several years ago, using OpenTK & C#, and have got stuck at the final hurdle. This is 'old-style' non-shader OpenGL. I am confident that the Arcball rotation is working correctly,…
wotnot
  • 261
  • 1
  • 12
2
votes
1 answer

Arcball Rotation at 90 degrees

I have successfully implemented Arcball rotation through quaternions, but am confused at what to do when the direction vector of the camera is parallel to up vector. Currently I am just restricting the rotation along the x-axis (the pitch) when the…
Samaursa
  • 16,527
  • 21
  • 89
  • 160
2
votes
4 answers

Arcball Implementation for Papervision3D

Is there an arcball implementation for Papervision3D? There are many arcball implementations for Flash/ActionScript but none specifically for Papervision3D. Here's an example of an arcball implementation for…
user113476
1
vote
1 answer

Getting correct screen mappings for arcball in opengl

I am trying to implement an arcball interface and it seems that after rotation of 90 degrees the model stops rotating in that specific direction, I suspect that there is a problem with mapping clicks on the screen to the arcball, but it could be…
Jim
  • 13
  • 3
1
vote
1 answer

GLM: How can I keep the clicked point under mouse when rotating?

I am trying to rotate a mesh about its origin using a standard arcball rotation. Whenever I click on the 3D object, I cast a ray from the mouse to find the intersection point. I measure the distance of that intersection point from the 3D object…
Jubei
  • 1,686
  • 1
  • 17
  • 28
1
vote
1 answer

Composing quaternions

I'm currently working on a 3D scene which has to be rotated by dragging the mouse. To do this, I'm utilizing a ArcBall implementation. The used framework, immediately transformed the resulting quaternion into a rotation matrix. Any subsequent…
irundaia
  • 1,720
  • 17
  • 25
0
votes
1 answer

How to change the center of the trackball in its regular implementation?

I have successfully implemented a trackball in java using the below two tutorials: http://nehe.gamedev.net/tutorial/arcball_rotation/19003 http://www.java-tips.org/other-api-tips/jogl/arcball-rotation-nehe-tutorial-jogl-port.html This trackball is…
cooltechnomax
  • 681
  • 3
  • 10
  • 21
1
2