Focus mode zoom in current RC is broken
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.
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.
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 🤔
Question in dev meeting: does this cause any error messages in the log?
Question in dev meeting: does this cause any error messages in the log?
No, I don't see any error messages
Still is a bug, I can confirm.
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.
still present in master Overte-159-fe0f074 so switching to V8 did not fix it, not that I think anyone expected it to.
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.
Zooming in and out with W and S works as expected, only the scroll wheel is broken.