Questions tagged [trackball]

Trackball may refer to either the hardware used to move a mouse (specifically a ball embedded in the mouse which rolls as the mouse is moved) or to the three.js extension TrackballControls, used in web browsers to manipulate 3D objects. It should be used for questions about software specific to a trackball mouse, or questions about the TrackballControls extension.

In terms of computer hardware, a trackball is a physical ball used to capture input for a mouse. It is fairly rare to see a trackball on the bottom of a mouse anymore, but large and well-made ones are commonly used for high precision work or areas where durable hardware is required.

Questions with the tag, in the hardware sense, are usually related to writing software for a trackball, handling its inputs, and other technical questions. Note that actually asking about the trackball itself is probably off topic, since it's related to computer hardware.


In terms of computer software, TrackballControls is an extension to , which is itself used to control 3D objects in a web browser. It allows the camera to move ("track") around the object. It is fairly similar to OrbitControls.

Questions with the tag, in the software sense, are usually related to the use of the extension, including troubleshooting and proper use.

75 questions
2
votes
1 answer

Setting camera position and fov manually with trackball controls (THREEJS)

I set position and fov of my perspective camera manually in THREE.JS. It behaves as expected. However, once I try to interact with the scene later on, through the TrackBall Controls, it just displays a black screen, no errors. JS Fiddle Relevant…
Nicolas
  • 2,191
  • 3
  • 29
  • 49
2
votes
1 answer

TrackballControls - what does the "staticMoving" property do?

In the library module called THREE.TrackballControls there is a property on an instance of the module called staticMoving which seems to be related to a property called dynamicDampingFactor. Unfortunately, I am unable to find any documentation upon…
Kolban
  • 13,794
  • 3
  • 38
  • 60
2
votes
3 answers

Disable trackball click in Android

I've run into some difficulties with implementing a custom progress dialog. Even though an overlay intercepts touch events the user can still operate the trackball and click elements that are supposed to be disabled. Is there any way around…
Kostia Dombrovsky
  • 1,647
  • 2
  • 18
  • 29
2
votes
1 answer

How to handle Android trackball events from a web page?

Is there any DOM event in Webkit associated to trackball events (movement and pressing)? Or is there any other way to handle those events from a webpage?
Jaime Soriano
  • 7,309
  • 2
  • 33
  • 45
2
votes
1 answer

ball tracking using opencv on visual studio 2010 gives unhandled exception

I was working on object tracking using opencv on Visual studio 2010 using an online resource. I was able to get few programs to run, but I'm facing an issue with this one. Error I'm getting The program builds fine and starts running with my web cam…
IAMTubby
  • 1,627
  • 4
  • 28
  • 40
2
votes
1 answer

The mousedown event using Three.js doesn't work unless I click and slightly drag

For some reason, in the code below, the "intersects" variable does not contain any items in the onDocumentMouseDown event handler when I simply click an object. In order for it to detect the object clicked, I have to click and slightly drag the…
marktreece
  • 43
  • 4
2
votes
3 answers

three.js mousedown not working when trackball controls enabled

Trackball works well in my three.js program along with onMouseClick and onMouseUp event listeners. I enable Trackball using the line:- controls = new THREE.TrackballControls( scene01camera02 , DOM_container); But the onMouseDown event listener…
steveOw
  • 879
  • 12
  • 41
2
votes
1 answer

Trackball controls behaving oddly

So i've been using trackball controls, and as of lately i've noticed a weird bug dare i say. If you pan and then zoom out of your new position the controls start acting very oddly, pulling the the direction of the origin (the greater the pan the…
snowskater
  • 23
  • 1
  • 5
1
vote
1 answer

opengl trackball

I am trying to rotate opengl scene using track ball. The problem i am having is i am getting rotations opposite to direction of my swipe on screen. Here is the snippet of code. prevPoint.y = viewPortHeight - prevPoint.y; …
ajay
  • 11
  • 2
1
vote
0 answers

Three.js - rotating a camera around a point

I have my custom Navigation control similar to Trackball but with additional functionality. One of the features I want to implement is the specifying center of rotation of the camera and when we pan a camera, the rotation maintained around the…
Nikolai Arsenov
  • 464
  • 2
  • 10
1
vote
1 answer

Handle left right trackball swipe in blackberry

How do I write code to handle event that are fired when the track ball in a black berry app is swiped left and right?
Jason
  • 1,059
  • 1
  • 13
  • 32
1
vote
1 answer

Blackberry: trackwheel stop motion listener

I'm implementing an app that has a MapField, which I am extending. I'm using navigationMovement(int dx, int dy, int status, int time) to move around this map (besides touchEvent(TouchEvent event) which i dont have a problem with). The problem is…
chekemp
  • 117
  • 1
  • 9
1
vote
2 answers

JavaFX 3D Rotation around Scene Fixed Axes

Creating a Virtual Trackball Using JavaFX I want to create a virtual trackball device where X and Y mouse drag events rotate my virtual trackball in an intuitive way. Intuitive (at least to me) means, with my scene axes being: X increasing left to…
Michael Ellis
  • 243
  • 3
  • 14
1
vote
2 answers

onTrackballEvent not firing on Samsung Moment

I have a list in my app. When a user touches a list item with their finger, the onListItemClick handler fires and I have it opening a new Activity. However, when a user uses the trackball/pad to click, I want to perform some different functionality.…
Andrew
  • 20,756
  • 32
  • 99
  • 177
1
vote
1 answer

Deselect any trackball/trackpad selection

Is there a way to programmatically deselect/wipe whatever the user has selected with the trackball/trackpad? When I hit the back button on an Activity, the Activity it falls back to has a button that is selected as if the user had used the…
Andrew
  • 20,756
  • 32
  • 99
  • 177