VR pool simulator written in Python (using pyopenvr)
- pyopenvr for VR
- ode: Python-bindings to the Open Dynamics Engine which provides a time-stepped pool physics simulation (rather than the internal event-based simulation)
- sounddevice and soundfile for sound
- pytest and matplotlib
-
Install the required dependencies. You can probably install most of the required packages via
pip
with the following exceptions:ode
: Ifpip install ode
fails, you may try building the package yourself::- Clone and generate a Visual Studio solution (
.sln
) for building the library:
git clone https://github.com/jzitelli/ode.git cd ode/build premake4.exe --only-shared --only-double --platform=x64 vs2010
-
Open the generated solution in Visual Studio and follow any upgrade suggestions that your version of Visual Studio makes.
-
Compile a Release build for your target architecture (I believe this should match your version of Python, e.g. x64 or x86).
-
Copy the built library
ode.dll
to a location in your PATH. -
Build the Python bindings by running from the Visual Studio Native Tools command-line:
cd <ode root directory>/bindings/python python setup.py build_ext install
- Clone and generate a Visual Studio solution (
-
Build and install the
poolvr
package:
cd <poolvr.py root dir>
python setup.py install
To start poolvr
in VR-mode, run from command-line:
poolvr
To run without VR:
poolvr --novr
To see all available command-line options:
poolvr -h
cd <poolvr.py root dir>/test
pytest
To see all available test command-line options:
pytest -h