poolvr

Play pool / billiards in WebVR!

Usage no npm install needed!

<script type="module">
  import poolvr from 'https://cdn.skypack.dev/poolvr';
</script>

README

poolvr

Play pool / billiards with your Leap Motion controller in VR, in a web browser!

screenshot

About:

poolvr uses three.js to provide WebGL graphics and Cannon.js to provide real-time physics. VR support is provided by the currently-in-development WebVR API. WebVR Polyfill provides this functionality for those browsers / devices which don't implement native WebVR support. The pool table is defined parametrically via a Python script and exported to three.js-friendly format using three.py.

This project began as an experimental example that I introduced into my fork of Primrose, which was my own starting point for WebVR development. poolvr became my entry into the Leap Motion 3D Jam (at literally the last minute). poolvr is the main WebVR project that I'm working on now. It's been improved since the 3D Jam ended! Some amazing features are planned!

You can try a live version of poolvr which is hosted on the project's GitHub pages.

Acknowledgements:

The following amazing open-source projects have helped make poolvr possible:

JavaScript libraries:

Python packages:

The space nebula cube map background was created with Space 3D.