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
0
votes
0 answers

LibGDX: Wrong arcball camera rotation

I am currently trying to implement an Arcball camera in LibGDX. Unfortunately, this does not work correctly because the rotation feels very unintuitive and does not rotate as you move the mouse. This is a demonstration of the implementation: demo I…
0
votes
1 answer

OpenGl: Problem with Arcball Camera Rotation

i need to implement arcball camera. I got something similar, but it works very crookedly (the angle changes sharply, when turning to the right / left, the camera raises up / down strongly). Here is my source code, can you tell me where I went…
user14205063
0
votes
1 answer

Arcball Camera: how to obtain right, direction and up

I'm trying to implement a camera that follows a moving object. I've implemented these functions: void Camera::espheric_yaw(float degrees, glm::vec3 center_point) { float lim_yaw = glm::radians(89.0f); float radians = glm::radians(degrees); …
ero.rom
  • 43
  • 5
0
votes
0 answers

Arcball Rotation Problem with Scale and Translation

I've recently implemented the arcball guide here: https://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Tutorial_Arcball in a project of mine and I'm having some problems with scaling and translation of objects. Problem: When scaling and…
SenselessCoder
  • 1,139
  • 12
  • 27
0
votes
1 answer

How glm::perspective() and glm::lookAt() work together?

I am trying to figure out exactly how lookAt and perspective functions work. I would like to change the value of glm::lookAt (in particular the z value of the camera position) and I have noticed that If that value is different from the value of…
cphtr
  • 1
  • 2
0
votes
2 answers

OpenGL ES arcball transformation problem

I've ported the arcball classes I've been using from vb.net to the iPhone using objective C++, but now I'm having a problem. When I rotate my object, everything is fine. As soon as I pan the view, my center of rotation is no longer at the center of…
Davido
  • 2,913
  • 24
  • 38
0
votes
1 answer

Implementing arcball rotation axis without projection matrix?

I have a question about implementing the arcball in opengl es, using Android Studio. After calculating the rotation axis, I should reverse the axis through the rendering pipeline back to the object space, so that the rotation could be applied in the…
migodaet
  • 51
  • 4
0
votes
1 answer

Arcball Implementation Dependency on View Plane

I have a perfectly working fine Arcball implementation. Usually in opengl the standard camera is facing -Z, meaning XY plane is parallel to the viewing plane. glm::vec3 Arcball::_plane2sphere(glm::vec2 &v) { glm::vec2 f = v; glm::vec3 …
Rathnavel
  • 85
  • 1
  • 15
0
votes
1 answer

Arcball camera locked when parallel to up vector

I'm currently in the process of finishing the implementation for a camera that functions in the same way as the camera in Maya. The part I'm stuck in the tumble functionality. The problem is the following: the tumble feature works fine so long as…
Mauricio
  • 123
  • 5
0
votes
1 answer

How to keep the rotation center stationary while moving objects with an arcball in Directx?

The Internet has some information about using arcballs with OpenGL, but not much for DirectX. I am using a version of the arcball function from the Microsoft DirectX SDK. It shifts the position of objects by altering its translation matrix by the…
Eric
  • 121
  • 5
0
votes
1 answer

OpenGL - restricting Arcball rotation

I have a simple red rectangle rendered in a window, and I created an arcball in order to rotate it in any direction. I was following the code from NeHe's Arcball Rotation tutorial. The problem is that once the rectangle is rendered and the left…
Eagle
  • 1,187
  • 5
  • 22
  • 40
1
2