simularium / simularium-planning

Apache License 2.0
0 stars 0 forks source link

Auto-position/scale camera and data during conversion or creation step #191

Open ShrimpCryptid opened 1 month ago

ShrimpCryptid commented 1 month ago

Extension of issue https://github.com/simularium/simularium-viewer/issues/330, a bug where the initial camera view was too far zoomed out.

I implemented a fix that does some smart camera positioning to keep the bounding sphere at a certain % of the screen, but we determined that the camera distance was already part of the file's default camera settings and there was no way to respect it while doing the smart positioning.

Alli mentioned that doing auto-positioning/scaling could be useful during the data generation or conversion step, though, as these are otherwise very fiddly settings.

See potentially useful code in https://github.com/simularium/simularium-viewer/pull/383.