Comments (3)
I'm not aware of any way to send/receive UDP packets from web client javascript, except for WebRTC which is a particular UDP protocol. I see several options for getting events from the chair into neuroglancer:
- Create a server (e.g. in Python) that proxies between the chair and neuroglancer by talking to the chair over UDP and to neuroglancer over websockets (which works over TCP).
- If you are on Linux, create a program that talks to the chair over UDP and creates a regular linux input device via uinput into which it injects key/mouse events that are translated from whatever is sent from the chair. That way neuroglancer will get the events through the browser as regular input events and they can be handled normally. The translation might prove annoying, but maybe it could be made to work, and it might be more efficient than the websockets approach.
from neuroglancer.
Does Neuroglancer support joystick input? Because I would like to have the chair in parallel with the mouse and keyboard, as a "third hand" so to speak. So I'd need up to 4 additional (unused) axes. If I could somehow access mouse axes beyond x,y, and scrollwheel would be ideal, but I have not encountered any instance of this anywhere yet. However, e.g. the 2 analog sticks of a gamepad would work instead.
I am running Windows now (thanks for the bug fix!). But the chair is actually connected through an mbed LPC 1768 and I have an HID connector through which I can simulate joystick/gamepad output (or standard mouse, or keyboard outputs).
I think using a TCP connection over WebSockets is cleaner from an implementation point of view. But it may not be ideal for compatibility and performance, especially when used over a remote server?
from neuroglancer.
Neuroglancer doesn't itself have any joystick support, but it looks like the Web Gamepad API already supported by most browsers will do exactly what you need:
https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API
from neuroglancer.
Related Issues (20)
- How to customize annotation for adding a bounding box
- Running neuroglancer behind nginx with another server HOT 6
- How to use the segment_split_merge_tool
- Expose `bind_port` in python server arguments HOT 1
- Zstandard support? HOT 1
- Support for datasets in authenticated S3-compatible private buckets HOT 6
- N5 now supports Zstandard HOT 2
- "StarredSegments" object has no attribute "_visible" on release 2.37
- Consider using SolidJS HOT 1
- Use FinalizationRegistry to manage inter-worker object mappings without reference counting
- undock layer side panel HOT 1
- Set matrix transform for ImageLayer via Python HOT 2
- Hiding yellow border for images? HOT 3
- neuroglancer default framebuffer size artificially limits resolution HOT 7
- MAX_DRAW_BUFFERS limit error with shader in Safari
- Spatial dimensions, xy, is rendering in the 'zy' plane instead of the 'xy' plane when using the zarr format HOT 3
- Annotation coloring by random seed
- Loading of precomputed data stalls HOT 2
- Import annotation from csv feature, is it still available? HOT 5
- precomputed annotation format related ID lookup HOT 2
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 neuroglancer.