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
1
vote
0 answers

Detecting round shapes among contours

I have a code, which gives me a lot of contours suspected to be a ball, In order to minimize the list and find the real ball among them, I have used a couple of classifiers. First Circularity, I use a formula which shows how round are the…
2D3D
  • 353
  • 1
  • 6
  • 22
1
vote
1 answer

Android trackball events while screen is off

I'm looking for a way to grab trackball events while the screen is off, preferrably on a N1. I'm building my own music player and would love to add the feature to skip songs by trackball press, without having to unlock my device everytime. I've…
stolksdorf
  • 199
  • 1
  • 10
1
vote
0 answers

Set negative minDistance on Trackball? (or, combining PointerLock and Trackball)

Perhaps that's no the way to approach it, but I'm looking for a sort of a combination of PointerLock and Trackball controls - I want to be able to move the dolly endlessly in and out with scrolling like PointerLock, but be able to drag around and…
Guy Jang
  • 11
  • 1
1
vote
0 answers

Python code to track ball - using OpenCV 2.4.11

I am using Python (OpenCV 2.4.11) 2.7 to track a red ball.It is based on color detection. So if there is another non-round object with the same color the program looses the ball sometimes. Hence I would like the program to be more robust by adding…
raghu rajappa
  • 81
  • 1
  • 11
1
vote
1 answer

Three,js Trackball rotate only one object

I am new to three.js and computer graphics. So I am facing quite simple problem. I want to rotate only cube and axes set static. How to achieve it, because now cube and axes are rotating? Maybe I have to use another type of rotation? My…
Rokas.ma
  • 191
  • 1
  • 12
1
vote
3 answers

How to rotate object in three.js(r66) not use trackball which is control the camera

When rotating an Object, I think there are two ways[focus on rotate the object, not use camera]: 1.rotate the object directly in render(), just like(canvas_geometry_cube.html) cube.rotation.y += ( targetRotationY - cube.rotation.y ) * 0.05; …
yongnan
  • 405
  • 7
  • 20
1
vote
1 answer

Do (any) trackballs allow to retrieve the rotation around the Z axis?

The question might be a bit weird, especially because trackballs are not so common these days. But i have a kensington expert mouse here, and since i'm creating a graphic tool, i was wondering whether there is any way to retrieve from the driver or…
Pa_
  • 641
  • 1
  • 5
  • 17
1
vote
2 answers

Rotate the object not camera using three.js

I want to rotate object when the mouse down event occur, but right now the problem is that when i click left mouse down the object is rotated across the camera...I do not understand where is the issue.. Below is the code …
Pratik
  • 171
  • 1
  • 5
  • 19
1
vote
1 answer

Is it possible to rotate an object with TrackballControls?

Is it possible to rotate an object – instead of the camera – with TrackballControls? http://threejs.org/examples/js/controls/TrackballControls.js
imbrizi
  • 3,788
  • 1
  • 25
  • 26
1
vote
1 answer

Is there any reason why a camera's matrixworldinverse won't update when using trackball controls?

I'm viewing a scene using threejs and the trackball camera. I try to get the view matrix from the camera, but its matrixworldinverse isn't updating. I do call updateMatrixWorld in my render function. The matrixworld is updating, just not the…
rclark
  • 301
  • 3
  • 13
1
vote
0 answers

Add 360 horizontal rotation with OBJLoader and Three.js

So I have an object loaded through OBJLoader.js, and want it to be able to rotate 360 degrees horizontally around its center. I've been looking at both TrackballControls and Canvas Cube example, but I cannot seem to implement it together with each…
fsma
  • 11
  • 2
1
vote
0 answers

silverlight trackball

For days now, I've been looking for a way to show the values of a silverlight toolkit line series on a static location. I found a lot of examples using Telerik, however I don't have that software package :| An excellent example of what I am looking…
Jeffrey
  • 1,766
  • 2
  • 24
  • 44
1
vote
1 answer

Android Trackball on Custom Dialog

I have a custom dialog which extends the Dialog class and a simple custom layout like the one from below:
Laura
  • 2,653
  • 7
  • 37
  • 59
1
vote
0 answers

no trackball click with ICS/JB Android emulator

I have a problem, with ICS and JB emulators (but NOT with emulators with older version of Android, for example API 10 = Android 2.3.3.) : I do not manage to click when in trackball mode ([F6] or [del]), even in home screens. In…
Prokaryo
  • 11
  • 1
1
vote
1 answer

Detect when BlackBerry trackball/pad is being pressed?

I would like to be able to do a "push-to-activate" style interaction with the trackball. That is, I would like an event notification at the beginning and end of the push. At the moment, using the code below, I can only get an event when the…
Matt
  • 9,068
  • 12
  • 64
  • 84