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

Three.js default rotation with trackball control

I have a scene with several meshes in three.js The distance between the meshes is fixed. The problem is that the whole group is upside down. My first thought would be to rotate the camera over the z-axis with pi. This does't work because the…
SeeDoubleYou
  • 1,253
  • 2
  • 15
  • 25
0
votes
1 answer

WPF 3D camera position

I need to reset my 3D camera position in a WPF 3D viewport. I'm using the trackball decorator from 3Dtools. Hacking around I've found I can clear the camera's transformations using : Transform3DGroup group = camera.Transform as…
mrbencowell
  • 155
  • 1
  • 3
  • 10
0
votes
2 answers

How to control trackball behaviour in Android Views?

I have a FrameLayout view which contains one (MapView-like) control and some additional buttons overlaying it. (the layout xml is below). I want to allow the user to pan/scroll the main view using not only touch but also the Trackball. The problem…
reflog
  • 7,587
  • 1
  • 42
  • 47
0
votes
1 answer

Android - Trackball, ListView Visibility Gone Error

I have a listview that displays a list of profiles added by a user. If no profiles exist, I set the listview visibility to "gone". I have a context menu on the listview that allows a user to delete a profile. When doing this, I display a dialog…
Chris
  • 91
  • 2
  • 7
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
0
votes
1 answer

Ubuntu 22.04 Xinput settings partially changing when change with ~/.profile file

This type of questions are all over the stackoverflow. I know it and I've searching this for almost 2 days. I started to look xinput configs that needed for my trackball. Than I found and configured but when I restart the PC, poof nothing persist.…
strafor
  • 61
  • 4
0
votes
1 answer

Google Map View on Non Touch-Screen Phones

I have implemented Google Map view in my app with a number of custom markers. I am testing in the emulator and everything works fine if I treat the emulator like a touch screen phone - I can click on the custom markers and navigate and move the map…
GuybrushThreepwood
  • 5,598
  • 9
  • 55
  • 113
0
votes
1 answer

Receiving trackball events with an Android NativeActivity

I have a NativeActivity-based application that wants to receive trackball events. According to the (sketchy) documentation, I should be receiving these via the struct android_app's onInputEvent() callback, the same as I do for key and motion events.…
David Given
  • 13,277
  • 9
  • 76
  • 123
0
votes
2 answers

Select and check the checkboxes in Android listview using device trackball

In my Android application I have used a Listview and in each element in the listview have two checkboxes. The problem is, the user can not select those checkboxes using the device trackball. It highlights the entire element when move to select the…
JibW
  • 4,538
  • 17
  • 66
  • 101
0
votes
1 answer

Peculiar behavior of TrackballControls.target in Three.js

I am trying to create a simulation of 3D distribution of galaxies. The galaxies are points. question1.htm uses galaxydata1.txt to calculate and load the galaxy positions: rawFile.open("GET", "galaxydata1.txt", false); var parts =…
Ritesh Singh
  • 279
  • 1
  • 4
  • 19
0
votes
3 answers

Mapview onTap not firing for OverlayItem onTap

I have a mapview in my app, and everything is working fabulously with touchEvents. However to maximize usership of the App, I have been trying to add trackBall interface functionality as well and am running into a problem. The trackball properly…
user756212
  • 522
  • 5
  • 16
0
votes
1 answer

How can I zoom with mouse scroll on WPF TrackballDecorator (3dTools)?

Currently I can zoom using right click. Is there a simple method to do it with mouse scroll ? Thanks.
Ionica
  • 139
  • 3
  • 13
0
votes
0 answers

How to use TrackballControls.js and Projector.js together in Three.js

I have a scene which have several objects, and i want to click and select an object, and rotate and zoom the scene. For zoom, rotate and pan the scene, i use TrackballControl.js. For click and select and object, i use Projector.js. They work…
Şeyma Yaman
  • 111
  • 1
  • 3
  • 11
0
votes
1 answer

TrackballControls with Collada kfAnimation Three JS

Hi guys I am working with kfAnimation animation from a Collada model. I want to include a trackball controls but when I do I exceed the size stack I dont know why my code is the following function init() { …
Marco Feregrino
  • 665
  • 5
  • 15
0
votes
1 answer

THREE.js Limit Zooming in mousewheel event

Can anyone please tell me how to limit zooming in and out of an model in three.js. I came across trackball controls but there is no function or property to limit zooming.Tried using orbit controls also but when using along with trackball controls i…
Aasha joney
  • 508
  • 5
  • 23