allen-cell-animated / agave

Other
34 stars 6 forks source link

Feature/flip volume #184

Closed toloudis closed 4 months ago

toloudis commented 5 months ago

Estimated time to review: ~15 min ? A lot of code changes but all small.

Allows users to flip (mirror / invert) each of the three x,y,z axes for the volume.

AGAVE 1 6 0 2024-05-02 11-27-13

The internal storage uses -1 for a flipped axis, and 1 for an unflipped one.

The volume sampling shader has to switch its sampling wrap mode to "REPEAT" to make this work.

When adding a new feature like this, we need to make sure the feature is implemented in json save files (serialization), python script output, as well as client/server communication (aka Commands).

In order to make it easier to add new serialized variables, without having to bump versions, I had to upgrade the json library I am using. Disregard changes to json.hpp as it is a third party file.