dataarts / dat.guiVR

A flexible graphical user interface for changing variables within WebVR.
https://workshop.chromeexperiments.com/examples/guiVR/
Apache License 2.0
311 stars 50 forks source link

Laser "wobbles around" while dragging #45

Open customlogic opened 8 years ago

customlogic commented 8 years ago

I'm not sure what's happening here, but you can see it most clearly when you drag a panel. The spot where the laser is hitting moves with a bit of lag.

In this video, the controller has a permanent blue line extending from the controller. You can see how our laser gets out of sync with it. (To check it out yourself, see http://localhost:8000/tests/three_examples/webvr_vive_dragging.html )

ezgif-2319444100

mflux commented 8 years ago

It's probably because the update of DATGUIVR is happening on its own requestAnimationFrame.

This saves the user from having to add another line in their render step (and sometimes may not be possible if they are using a locked in boilerplate).

mflux commented 8 years ago

Or maybe something else dunno! Seems like the gui itself is fine, but the laser is lagging? That's kind of weird.

customlogic commented 8 years ago

Yeah, GUI itself is totally fine, it's just the laser/cursor

mflux commented 7 years ago

We'll probably fix this post-release.