-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any interaction method feasible? #1
Comments
I am quite sure the Chrome (nor Firefox) APIs doesn't allow controlling the cursor because of security measures. I think a good work around would be to use the NodeJS server OR to build a little application (could still use NodeJS + Electron or something similar), link WebScreenVR & the app with Socket.IO and use that to control the mouse. I am focusing a bit more on the HUD & UX right now but that might be the next step. If you want to work on it or any other suggestions about how this would be possible, would be cool! |
Yes more extensive architecture would work but argh, wish there was a way for trusted extension to simulate clicks directly.
https://developer.mozilla.org/en-US/docs/Web/API/Document/elementFromPoint |
What if we take the values of where the raycaster is intersecting, the dimension of Worth a shot! I'll have a look when I come back on my computer in few hours! |
Something like this from three.js: var intersections = raycaster.intersectObject(screenObj);
var uv = intersections[0].uv;
var x = uv.x * screenResolutionWidth;
var y = (1 - uv.y) * screenResolutionHeight;
document.elementFromPoint(x, y).click();
// again, only would semi-work for clicks, & restricted to web content.. https://threejs.org/docs/index.html#api/core/Raycaster I see can access same from Aframe intersection events. |
Is there any way using Extension API to click on page, etc?
The text was updated successfully, but these errors were encountered: