Conversation
dsehnal
left a comment
There was a problem hiding this comment.
What would be a good way to make this available in MolViewSpec? Could be a "custom extension" -- but should this be on "representation" node?
| } | ||
|
|
||
| class StructureProceduralAnimation extends PurePluginUIComponent<{}, StructureProceduralAnimationState> { | ||
| state: StructureProceduralAnimationState = { busy: false }; |
There was a problem hiding this comment.
This should likely come from the PluginContext is busy too, no?
There was a problem hiding this comment.
it follows the same pattern as in QuickStyles UI
| const options = this.plugin.managers.structure.component.state.options; | ||
| await this.plugin.managers.structure.component.setOptions({ | ||
| ...options, | ||
| animation: { |
There was a problem hiding this comment.
Let's be explicit here that this is proceduralAnimation?
yes, we animate vertex positions without knowledge of atom connectivity. In 'position' mode things generally stay reasonably together because noise is position-based. In 'group' mode the noise is group based which can look better for some representations but will rip different groups apart. For bond cylinder imposter geometry the gaps are due to differently tilts of each bond half. If you disable impostors they will stay connected. When wiggle by uncertainty the wiggle amplitude changes per group (atom) which will inevitable "rip" geometry corresponding to different groups apart. |

Description
Adds procedural animation to wiggle (move atoms) and tumble (rotate chains). It runs on the GPU, is very cheap and has absolutely no regard for physics or chemistry - might still be useful to convey dynamics or highlight uncertainty.
viewer: https://molstar.org/dev/anim/
me: https://molstar.org/dev/anim/me/
easiest way to activate is with the new panels
Examples
28LU_camera-rock.1.mp4
Wiggle atoms based on B-factor
PSF.EXT.CMAP_camera-rock.4.mp4
Convey dynamics for a simulation system
CELLPACK_MODEL_camera-rock.1.mp4
Mesoscale model dynamics
Actions
[Unreleased]section ofCHANGELOG.mdpackage.json'scontributorsdocs