789 B
789 B
osim-magnum-viewer
Read-only OpenSim viewer built with OpenSim, Magnum, SDL2, and ImGui.
Build
cmake -S . -B build -DOpenSim_DIR=/home/crosstyan/Code/opensim-core-build/install/lib/cmake/OpenSim
cmake --build build -j
Run
./build/bin/osim-magnum-viewer /path/to/model.osim /path/to/motion.mot
Optional flags:
./build/bin/osim-magnum-viewer model.osim motion.mot --geometry-dir /path/to/Geometry --speed 0.5 --start-paused
The repo vendors a Geometry/ directory and searches it automatically at runtime.
Sample run:
./build/bin/osim-magnum-viewer \
/home/crosstyan/Code/opensim-core/OpenSim/Moco/Test/walk_gait1018_subject01.osim \
/home/crosstyan/Code/opensim-core/OpenSim/Moco/Test/walk_gait1018_state_reference.mot