This repository contains the modified SPlisHSPlasH version required for my Gymnasium pouring environment (https://github.com/carosto/RL-Water-Pouring). The modifications make it possible to take single steps in the simulator.
Parameters set: -DCMAKE_BUILD_TYPE=Release -DUSE_PYTHON_BINDINGS=On -DUSE_AVX=Off -DUSE_OpenMP=On -DUSE_IMGUI=On
We had to turn AVX off because it caused issues that made the particles disappear.
For Linux: see https://splishsplash.readthedocs.io/en/latest/build_from_source.html, following these steps should be enough, just use this repository instead of the original one.
For Windows:
- Make sure that the folder path to the repository is not too deep, otherwise it cannot be found by the C compiler
- Configure + generate the project (using cmake-gui) (set parameters from above)
- Run “cmake --build . --config Release” in build directory
- Run “python setup.py bdist_wheel” in Splishsplash folder
- Run “pip install build/dist/{wheel_name}” (might have to rename the wheel to “pySPlisHSPlasH-2.12.2-cp37-none-any.whl”)
- Update pip if there are issues