Can mouselook be smoother?
Posted: Fri Feb 08, 2019 3:26 pm
Is there a way to get the mouse-controlled camera movements to be smoother? If one uses a key to rotate the camera, the result is very smooth. However, using the mouse to do the same rotation has a super choppy result.
In ShipController.cpp, I see a comment about possibly making something configurable, in this bit:
If I were to change that double accel value and recompile the game, what would be the effect? Is it a more fundamental case of how often the mouse is polled, or something else? It's definitely not a hardware setting on my system, as I've changed the mouse DPI, pointer speed, etc., but nothing changed the amount of "jump" between one camera position and the next when using the mouse.
The reason I ask is that I have set up a head-tracking device and got it to work in Pioneer! I have one program that causes a button press on my controller to act as a "hold middle mouse button" toggle, then the head-tracking software converting my head movements to mouse movements (and also mapping the same toggle button as a "reset camera" position so the movements always start with my head "centered"). Pretty cool... but really choppy. If there's a way to get the graphics engine to move smoothly from one position the mouse requests to the next, that would be awesome.
In ShipController.cpp, I see a comment about possibly making something configurable, in this bit:
Code: Select all
MoveableCameraController *mcc = static_cast<MoveableCameraController *>(Pi::game->GetWorldView()->GetCameraController());
const double accel = 0.01; // XXX configurable?
mcc->RotateLeft(mouseMotion[0] * accel);
mcc->RotateUp(mouseMotion[1] * accel);
The reason I ask is that I have set up a head-tracking device and got it to work in Pioneer! I have one program that causes a button press on my controller to act as a "hold middle mouse button" toggle, then the head-tracking software converting my head movements to mouse movements (and also mapping the same toggle button as a "reset camera" position so the movements always start with my head "centered"). Pretty cool... but really choppy. If there's a way to get the graphics engine to move smoothly from one position the mouse requests to the next, that would be awesome.