Skip to content

VR pool simulator written in Python (using pyopenvr)

License

Notifications You must be signed in to change notification settings

jzitelli/poolvr.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poolvr.py

VR pool simulator written in Python (using pyopenvr)

screenshot

REQUIREMENTS:

Optional dependencies:

Developer dependencies:

INSTALLING poolvr.py:

  1. Install the required dependencies. You can probably install most of the required packages via pip with the following exceptions:

    ode: If pip install ode fails, you may try building the package yourself::

    1. 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
    
    1. Open the generated solution in Visual Studio and follow any upgrade suggestions that your version of Visual Studio makes.

    2. Compile a Release build for your target architecture (I believe this should match your version of Python, e.g. x64 or x86).

    3. Copy the built library ode.dll to a location in your PATH.

    4. 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
    
  2. Build and install the poolvr package:

cd <poolvr.py root dir>
python setup.py install

STARTING poolvr.py:

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

RUNNING THE TESTS:

cd <poolvr.py root dir>/test
pytest

To see all available test command-line options:

pytest -h