RBVI / LookSee

LookSee molecular viewer for Quest VR headsets
2 stars 0 forks source link

Add option to keep multiple models aligned #18

Closed tomgoddard closed 1 year ago

tomgoddard commented 1 year ago

Currently if multiple models are opened that should be aligned, they are unaligned by the default centering and scaling and also by any motion using the hand-controllers. It would be useful to have an option "Align models" that would keep all models aligned and to their original scales. Phil Cruz at NIAID requested this.

tomgoddard commented 1 year ago

I added a "keep aligned" option that makes all models move as a group in LookSee version 12. This was implemented by moving the parent GameObject. The meeting capability was updated to handle this, so version 12 meetings must have all participants at version 12 or higher. Also if this setting is turned on or off by any participant in a meeting, then all participants have the setting changed to the same state. This is so if say the meeting host wants the models to stay aligned, and some participant joins with keep aligned off, they will not accidentally move the models out of alignment.

I also at an "Original alignment" button. When the keep aligned option is enabled it does not change the current model alignment, which may be different from the initial model positions. Pressing the Original alignment button moves all the models to align and have matching scale to one of the currently shown models (the first one opened). Having the "keep aligned" and "Original alignment" controls allows hand docking one model to another and then keeping that alignment, and then reverting to the original alignment if desired.