opensim-creator
opensim-creator copied to clipboard
A UI for building OpenSim models
OpenSim Creator 
A UI for building OpenSim models
📥 Download the latest release here, ▶️ Watch Introduction Videos Here

OpenSim Creator (osc) is a standalone UI for building and editing
OpenSim models. It is available
as a freestanding all-in-one installer for Windows 10 (or newer),
MacOS Ventura (or newer), and Ubuntu 20 (or newer).
Architecturally, osc is a C++ codebase that is directly integrated against
the OpenSim core C++ API. It otherwise only
uses lightweight open-source libraries that can easily be built from source (e.g. SDL2,
OpenGL, ImGui) to implement the UI on all target platforms. This makes osc fairly easy
to build, integrate, and package.
osc started development in 2021 in the Biomechanical Engineering
department at TU Delft. It is currently funded by the
Chan Zuckerberg Initiative's "Essential Open Source Software for
Science" grant (Chan Zuckerberg Initiative DAF, 2020-218896 (5022)).
| Project Sponsors | |
|
Biomechanical Engineering at TU Delft |
Chan Zuckerberg Initiative |
🚀 Installing
You can download a release from the 📥 releases page. The latest release is 📥 here. Also, OpenSim Creator is regularly built from source using GitHub Actions, so if you want a bleeding-edge--but unreleased--build of OpenSim Creator check ⚡ the actions page (downloading a CI build requires being logged into GitHub; otherwise, you won't see download links).
Windows (10 or newer)
- Download an
exerelease - Run the
.exeinstaller, continue past any security warnings - Follow the familiar
next,next,finishwizard - Run
OpenSimCreatorby typingOpenSimCreatorin your start menu, or browse toC:\Program Files\OpenSimCreator\.
Mac (Ventura or newer)
- Download a
dmgrelease - Double click the
dmgfile to mount it - Drag
oscinto yourApplicationsdirectory. - Browse to the
Applicationsdirectory inFinder - Right-click the
oscapplication, clickopen, continue past any security warnings to runoscfor the first time - After running it the first time, you can boot it as normal (e.g.
Command+Space,osc,Enter)
Ubuntu (20 or newer)
- Download a
debrelease - Double-click the
.debpackage and install it through your package manager UI. - Alternatively, you can install it through the command-line:
apt-get install -yf ./osc-X.X.X_amd64.deb(or similar). - Once installed, the
oscorOpenSim Creatorshortcuts should be available from your desktop, or you can browse to/opt/osc
🏗️ Building
Note: The build instructions here are for general users who just want to build OSC.
Because everyone's C++ build environment is slightly different, there are no catch-all build instructions that will work for everyone. Instead, we recommend reading + running the automated build scripts, or reading some of the basic tips-and-tricks for Visual Studio or QtCreator (below).
Windows
- Get
git:- Download+install it from https://git-scm.com/downloads
- Make sure to add it to the
PATH. Usually, the installer asks if you want this. If it doesn't ask, then you may need to add it manually (google: "Modify windows PATH", add yourgitinstall:C:\Program Files\Git\bin) - Verify it's installed by opening a terminal (
Shift+Right-Click->Open Powershell window here) and rungit
- Get C++20-compatible compiler (
Visual Studio 17 2022):- Download+install it from https://visualstudio.microsoft.com/downloads/
- Make sure to select C/C++ development in the installer wizard when it asks you what parts you would like to install
- Get
cmake:- Download+install it from https://cmake.org/download/
- Make sure to add it to the
PATH. Usually, the installer asks if you want this. If it doesn't ask, then you may need to add it manually (google: "Modify windows PATH", add yourcmakeinstall:C:\Program Files\CMake\bin) - Verify it's installed by opening a terminal (
Shift+Right-Click->Open Powershell window here) and runcmake
- Get
NSIS:- Download+install it from https://nsis.sourceforge.io/Download
- Get
pythonandpip:- Download from https://www.python.org/downloads/
- Make sure
pythonandpipare added to thePATH(the installer usually prompts this) - Verify they are installed by opening a terminal (
Shift+Right-Click->Open Powershell window here) and runpython --helpandpip --help
- Build OpenSim Creator in a PowerShell terminal:
- Open a PowerShell terminal (
Shift+Right-Click->Open Powershell window here) - Clone
opensim-creator:git clone https://github.com/ComputationalBiomechanicsLab/opensim-creator cdinto the source dir:cd opensim-creator- Run the build script:
python .\scripts\build_windows.py(warning: can take a long time)
- Open a PowerShell terminal (
- Done:
- The
osc-builddirectory should contain the built installer
- The
Mac
- Get
brew:- Go to https://brew.sh/ and follow installation instructions
- Get
git:- Can be installed via
brew:brew install git
- Can be installed via
- Get C++20-compatible compiler (e.g.
clangvia brew, or newer XCodes):- OpenSim Creator is a C++20 project, so you'll have to use a more recent XCode (>14), or
install a newer
clangfrom brew (e.g.brew install clang)
- OpenSim Creator is a C++20 project, so you'll have to use a more recent XCode (>14), or
install a newer
- Get
cmake:- Can be installed via
brew:brew install cmake
- Can be installed via
- Get
pythonandpip(optional: you only need this if you want to build documentation):- Can be installed via
brew:brew install python
- Can be installed via
- Build OpenSim Creator in a terminal:
- Clone
opensim-creator:git clone https://github.com/ComputationalBiomechanicsLab/opensim-creator cdinto the source dir:cd opensim-creator- If you have multiple C++ compilers, make sure that the
CCandCXXenvironment variables point to compilers that are compatible with C++20. E.g.export CXX=$(brew --prefix llvm@15)/bin/clang++ - Run the build script:
scripts/build_mac.sh(warning: can take a long time)
- Clone
- Done:
- The
osc-builddirectory should contain the built installer
- The
Linux (Ubuntu)
- Get
git:- Install
gitvia your package manager (e.g.apt-get install git)
- Install
- Get C++20-compatible compiler:
- Install
g++/clang++via your package manager (e.g.apt-get install g++) - Make sure either of them are new enough to compile C++20
- If they aren't new enough, most Linux OSes provide a way to install a newer compiler
toolchain (e.g.
apt-get install g++-11)
- Install
- Get
cmake:- Install
cmakevia your package manager (e.g.apt-get install cmake)
- Install
- Get
pythonandpip(optional: you only need this if you want to build documentation):- Install
python3andpip3via your package manager (e.g.apt-get install python3 pip3)
- Install
- Build OpenSim Creator in a terminal:
- Clone
opensim-creator:git clone https://github.com/ComputationalBiomechanicsLab/opensim-creator cdinto the source dir:cd opensim-creator- If you have multiple C++ compilers, make sure that the
CCandCXXenvironment variables point to compilers that are compatible with C++20. E.g.export CXX=g++-12 - Run the build script:
scripts/build_debian-buster.sh
- Clone
- Done:
- The
osc-builddirectory should contain the built installer
- The
💻 Dev-Environment Setup
These are some generic tips that might be handy when setting up your own development environment.
Visual Studio 2022
- Run build_windows.py --skip-osc (described above) to get a complete build of OSC's dependencies.
- In Visual Studio 2020, open
opensim-creatoras a folder project - Later versions of Visual Studio (i.e. 2017+) should have in-built CMake support that automatically detects that the folder is a CMake project
- Right-click the
CMakeLists.txtfile to edit settings or build the project- You may need to set your configure command arguments to point to the dependencies install (e.g.
-DCMAKE_PREFIX_PATH=$(projectDir)/osc-dependencies-install)
- You may need to set your configure command arguments to point to the dependencies install (e.g.
- Use the
Switch between solutions and available viewsbutton in theSolution Explorerhierarchy tab to switch to theCMake Targets View - Right-click the
oscCMake target andSet As Startup Project, so that pressingF5will then build+runosc.exe - (optional): switch the solution explorer view to a
Folder Viewafter doing this: the CMake view is crap for developing osc - You should now be able to build+run
oscfromVisual Studio - To run tests, open the
Test Explorertab, which should list all of thegoogletesttests in the project
QtCreator
- Run the appropriate (OS-dependent) buildscript (described above)
- Open QtCreator and then open the
opensim-creatorsource directory as a folder - For selecting a "kit", QtCreator usually detects that
osc-buildalready exists (side-effect of running the buildscript). You may need to "import existing kit/build" and then selectosc-build, though - Once QtCreator knows your source dir (
opensim-creator/) and build/kit (opensim-creator/osc-build), it should be good to go
📖 Citing/Acknowledging
OpenSim Creator doesn't have a central written software publication that you can cite (yet 😉). However, if you need to directly cite OpenSim Creator (e.g. because you think it's relevant that you built a model with it), the closest thing you can use is our DOI-ed Zenodo releases (metadata available in this repo: CITATION.cff/codemeta.json):
Kewley, A., Beesel, J., & Seth, A. (2024). OpenSim Creator (0.5.11). Zenodo. https://doi.org/10.5281/zenodo.10930805
If you need a general citation for the simulation/modelling technique, you can directly cite OpenSim via this paper:
Seth A, Hicks JL, Uchida TK, Habib A, Dembia CL, et al. (2018) OpenSim: Simulating musculoskeletal dynamics and neuromuscular control to study human and animal movement. PLOS Computational Biology 14(7): e1006223. https://doi.org/10.1371/journal.pcbi.1006223
🥰 Contributing
If you would like to contribute to OpenSim Creator then thank you 🥰: it's people like you that make open-source awesome! See CONTRIBUTING.md for more details.