Comments (3)
Hi @ElectricEye89 ,
I don't think there is an easy way to adjust mouse sensitivity. The orbit speed is relative to screen coordinates of the mouse pointer or touch location, so with big touch screens it will go slower. You'll have to find where this is defined in the core files, and adjust the function that transfers the screen coordinates to trackball position. Another option would be to make a mini trackball, similar to the mini light trackball as seen in this application. Again, you'll need to adjust the code, in order to make it control the view direction rather than light direction.
But I'm just a user and perhaps the developers have a better solution I'm not aware of.
Edit: check this related issue, with some hints. Here they indeed suggest to modify one of the core files (spidergl.js).
from 3dhop.
Hi @ElectricEye89 ,
if you want to modify the mapping of dragging interactions (rotation and pan) in 3DHOP, you just need to edit the numeric values at the end of lines 2683/4 in 3DHOP 4.2 (or lines 2604/5 in current 3DHOP DEVELOPMENT version) in the "presenter.js" file:
if(ui.dragDeltaX(button) != 0) this.x += (ui.cursorDeltaX/500);
if(ui.dragDeltaY(button) != 0) this.y += (ui.cursorDeltaY/500);
If you substitute 500 with lower values, you will get a "more responsive" interaction...
Warning: this change will act on every kind of interaction (mouse + touch) and (of course) on all the devices. So, it is ok if you are working on a closed kiosk, but probably it is not the better option if your app is online.
In the latter case, please check the issue mentioned by @TJRL (by the way, thanks for your answer!), it will require you some more effort, but, at the same time, it will allow you to edit just the touch mapping.
from 3dhop.
Thank you both for the quick response. Since we only needed this to reflect in our Kiosk, we were able to adjust that 500 value down in the presenter.js file, and it works like a charm!
Thanks again!
from 3dhop.
Related Issues (20)
- Touch control HOT 2
- Deformed model when changing trackball position [trackballs paradigm] HOT 3
- Resizing after full screen view in Firefox not working properly HOT 5
- keyboard input disabled HOT 2
- adding loading masks to the canvas HOT 2
- bump/normal etc HOT 1
- loading many nxs files [dynamic scene declaration] HOT 13
- Objects have limited rotation angle in certain axes (usually Y and Z) [trackballs setup] HOT 2
- Implementing 3DHOP in Rails HOT 5
- Implementing 3DHOP in Drupal HOT 3
- Setting tabindex on canvas messes with focus in Firefox HOT 2
- jQuery no-conflict mode + docker + implementing 3DHOP in Clowder HOT 51
- Allow configurable selectors HOT 1
- Data/LODs stop loading in (after using viewer for a few minutes) [nexus setup] HOT 3
- [Feature requests] Screenshot resolution multiplier; rotate plane section tool HOT 3
- Textured objects are not displayed on iOS HOT 1
- Trackballs dragging speed option HOT 3
- Input data for "animateToTrackballPosition"
- Best Tools for Rendering Very Large Meshes with Millions of Vertices/Faces in Browser
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 3dhop.