schrodinger / pymol-open-source

Open-source foundation of the user-sponsored PyMOL molecular visualization system.
https://pymol.org/
Other
1.2k stars 281 forks source link

Transforming Volumes Results in Strange Behaviour #311

Open Finnem opened 1 year ago

Finnem commented 1 year ago

Hey, I found that when applying transformations to volumetric representations, they do not keep their coloring but seem to update in a seemingly nonsensical way: grafik Which shows the same volume, just transformed using cmd.set_object_ttt.

It would be nice for the volume to consistently keep its color and for the coloring to be transformed according to the given transformation matrix :)

I've attached the script that was used to generate the visuals: basic_volume.zip

JarrettSJohnson commented 1 year ago

Hi Finnem, I'll investigate why this was done; but I agree that the TTT matrix should have no affect on the volume coloring. For now, can you try this setting:

set volume_mode, 0

This turns off pre-integrated volume rendering, but I can observe different orientations of the same colored volumes with this.

Finnem commented 1 year ago

Thanks! This is a good workaround for now.