overte icon indicating copy to clipboard operation
overte copied to clipboard

Focus mode zoom in current RC is broken

Open SilverfishVR opened this issue 3 years ago • 9 comments

Not sure where it broke but I have tested current Windows RC (Overte-92-098ce15) and PR-134 and they are both broken so for once I don't think the scripting PR is to blame 😄

Normally, when in create mode with an entity selected, pressing "F" will center on, and zoom to that entity, you can pan around it by holding right mouse button and zoom in/out with the scroll wheel, pressing "F" again should reset the zoom.

In current RC any action of the scroll wheel just puts the camera way off in the distance, like 1.4km away

As an example, focusing on an entity at 0.0.0 at the the default distance of 0.5m (in X direction) gives me:

JSON.stringify(Camera.position)
{"x":0.499993234872818,"y":-0.002452115062624216,"z":0.0009180307388305664}

After moving the scroll wheel I get:

JSON.stringify(Camera.position)
{"x":13999.810546875,"y":-68.65922546386719,"z":25.70486068725586}

You can also zoom by holding right mouse button and pressing "W" or "S" and oddly that still works 🤷‍♂️

To test. Open create menu and click create->shape, then press "F" to enter focus mode, scroll wheel should zoom in/out on the created cube.

SilverfishVR avatar Sep 09 '22 22:09 SilverfishVR

There is an alternative way by double-clicking on the entity in the list. SInce the 54, it seems to be impossible to exit the focus without close the app. So this is not the shortcut be something in the action.

AleziaKurdis avatar Sep 09 '22 22:09 AleziaKurdis

oh I did not know that, yet another undocumented feature. well there is still "esc" but that brings you all the way back to away mode so, not that intuitive 🤔

SilverfishVR avatar Sep 09 '22 22:09 SilverfishVR

Question in dev meeting: does this cause any error messages in the log?

daleglass avatar Sep 10 '22 20:09 daleglass

Question in dev meeting: does this cause any error messages in the log?

No, I don't see any error messages

SilverfishVR avatar Sep 12 '22 20:09 SilverfishVR

Still is a bug, I can confirm.

Basinsky avatar Oct 29 '22 19:10 Basinsky

This is probably related to QT. When I use this code to check for the Delta value: Controller.wheelEvent.connect(function (event) { print(JSON.stringify(event.delta)); }); I get -1118797840 it should be 120 or -120.

Basinsky avatar Dec 11 '22 16:12 Basinsky

still present in master Overte-159-fe0f074 so switching to V8 did not fix it, not that I think anyone expected it to.

SilverfishVR avatar Jun 03 '23 19:06 SilverfishVR

After testing it on the current release candidate on Arch appimage (20240519PR964), this issue seems to have been partially resolved. I have only encountered a few issues.

  • Can not zoom out using scroll wheel, only in.
  • "F" hotkey works only once, to zoom into the object.
  • Double clicking does not focus the entity
    • I remember this being a feature but I think it broke recently.

I was not able to replicate the camera launching far away than what was intended.

Armored-Dragon avatar Jun 06 '24 21:06 Armored-Dragon

Zooming in and out with W and S works as expected, only the scroll wheel is broken.

ada-tv avatar Mar 20 '25 01:03 ada-tv