-
Notifications
You must be signed in to change notification settings - Fork 291
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
[WIP] Allow atom selection via VR controllers #399
base: master
Are you sure you want to change the base?
Conversation
Applying a vertical offset to the picking projection parameters seems to solve the issue (see commit 43ab48e). The change does not seem to influence other VR interactions (i.e. with the menu or the sequence viewer). Before the change (the purple color of the laser indicates that an atom is being pointed at, which shouldn't be the case here)This is a band-aid solution, I assume the correct approach would be to update the following parameters: pymol-open-source/contrib/vr/OpenVRStub.cpp Lines 137 to 150 in 9d3061c
But I do not know how they were first extrapolated, nor if they are tied to a specific VR headset (I'm testing the changes on a Meta Quest 3). |
Thanks for submitting this. I see that this is still WIP. Would you still want to work on this, or have the changes committed? We could have some value that we pass in at compile time to tweak this offset. I haven't looked too much into it, but I feel like projection values from VR is probably meant to come from a calibrated headset. |
This allows the user to select atoms by pointing the laser and pressing the button mapped to
Action1
(typically the trigger), as requested in #378.Some problems are still present:
cRange
inlayer1/ScenePicking.cpp
does not seem to improve the situation by much.Possible improvements:
Additional notes:
openvr_cut_laser
to be set totrue
inlayer1/SettingInfo.h
;#include <thread>
tocontrib/vr/OpenVRControllerModel.cpp
(change not included in the commit). Not sure if it's a configuration issue on my end.