GithubHelp home page GithubHelp logo

Comments (4)

rodionstepanov avatar rodionstepanov commented on May 27, 2024 2

@ProjectPhysX I took mouse_sensitivity = 0.01. It looks like the reaction is getting slower but I still cannot control a view angle properly.

from fluidx3d.

ProjectPhysX avatar ProjectPhysX commented on May 27, 2024

Hi @rodionstepanov,

thanks for reporting this. It's the age-old poor design choice of Microsoft's SetCursorPos itself triggering a WM_MOUSEMOVE event, when setting the cursor back to the center of the screen. Usually in my implementation this is not an issue, as screen_width/2 ad screen_height/2 are subtracted and the resulting movement upon cursor centering is 0/0.

However, in another poor design choice by Microsoft, when the remote screen resolution is different and/or off-set compared to the client screen resolution, SetCursorPos(width/2, height/2) works on client and the reported position from WM_MOUSEMOVE is on remote, and when they mismatch, it adds the off-set mouse movement 60 times a second and rotates the camera very fast.

I have now changed the mouse input routine on Windows to avoid WM_MOUSEMOVE alltogether. Please test this new version on your remote setup and tell me if it resolves the bug!

Kind regards,
Moritz

from fluidx3d.

rodionstepanov avatar rodionstepanov commented on May 27, 2024

I'm sorry but it does not resolve the bug. I've test with setup for 3D Taylor-Green vortices; Looks like sensitivity is very high.

from fluidx3d.

ProjectPhysX avatar ProjectPhysX commented on May 27, 2024

@rodionstepanov can you try if reducing the mouse_sensitivity constant helps?

from fluidx3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.