This repository contains example 3D scenes created with Polygonjs, showcasing how using BVH, developed by Garrett Johnson, speeds up many operations.
You can open every scene in the node-based editor (no coding required!):
The scenes in this repository can also be accessed online:
-
- Highlighling large objects: https://polygonjs.com/gui/bvh_demo_highlight_large_objects/edit
-
- Sending multiple rays: https://polygonjs.com/gui/bvh_demo_multiple_rays/edit
-
- First person controls: https://polygonjs.com/gui/bvh_demo_fps_controls/edit
-
- Create points inside an object: https://polygonjs.com/gui/bvh_demo_delete_inside_object/edit
-
- Heightfield: https://polygonjs.com/gui/bvh_demo_heightfield/edit
-
- Pathtracing: https://polygonjs.com/gui/bvh_demo_pathtracing/edit
-
- Raymarching SDF: https://polygonjs.com/gui/bvh_demo_sdf/edit
- 1: install dependencies, with
yarn
ornpm install
- 2: run:
yarn polygon
ornpm run polygon
- 3: open your browser on
http://localhost:8091
If you have any trouble installing it, the docs may be able to help: https://polygonjs.com/docs/