Skip to content
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

Scene View camera receives small input values even when editor is not focussed #29

Closed
hybridherbst opened this issue Jul 12, 2021 · 7 comments

Comments

@hybridherbst
Copy link
Contributor

Describe the bug
When focussing away from the editor, the scene view moves ever so slightly, to the point that when focussing the editor again after ~30 minutes the camera is somewhere totally else.
While I generally like that functionality (using the space mouse while editor is in the background) it should be optional, and I think the slow "drift" is a bug nonetheless.

To Reproduce
Steps to reproduce the behavior:

  1. install package
  2. click into scene view
  3. focus another window
  4. note that scene view moves slightly
  5. wait for 30 min
  6. focus Unity
  7. note that scene view has wandered off

Expected behavior

  1. no wandering off
  2. moving the scene view camera when Unity is not focussed should be optional (and off by default)

Desktop (please complete the following information):

  • OS: [e.g. Windows, MacOS]
  • SpaceNavigator Driver version [e.g. 2.0.0-beta.7]
@PatHightree
Copy link
Owner

Thanks for the report, I've seen some drift now and then. Good to know it builds up over time

@PatHightree
Copy link
Owner

Unmistakably seeing this issue now on U2021.2.0b3, never saw it like this on U2020.3.3f1 and earlier.
What Unity version did you see it on ?

@hybridherbst
Copy link
Contributor Author

It's also there on 2020.3, but much slower; in 2021.2 the degradation is pretty rapid.

@bikusta
Copy link
Contributor

bikusta commented Jan 3, 2022

Hi. I can confirm the issue. Just installed driver version 2.0.0-beta.7 from Git in Unity 2020.3.25f on Windows 10. The scene view is moving constantly, when focused or not.

Video showing the movement:
https://youtu.be/J_x5xuZRAW8

bikusta added a commit to bikusta/SpaceNavigator that referenced this issue Jan 4, 2022
@mkoehmst
Copy link

Could the problem be the lack of a deadzone? Maybe previous version were doing some kind of automatic smoothing that would zero out very small translations. A deadzone customization in the SpaceNavigator options window could be useful for this. I'm experiencing constant drift as well with a SpaceNavigator.

@fpga68k
Copy link

fpga68k commented Jul 11, 2022

I also noticed the missing (re-)calibration and that there is no sufficient dead zone. The fix from @bikusta works well for the dead zone. Thanks!

@PatHightree
Copy link
Owner

Thanks @bikusta for the fix, I merged it into /main.
I changed the epsilon settings to deadzone sliders for clarity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants