# jbikker/tinybvh

Single-header dependency-free BVH construction and traversal library.

Repository: https://github.com/jbikker/tinybvh
Canonical: https://ross.abutalabs.com/products/tinybvh
Homepage: https://jacco.ompf2.com/2025/01/24/tinybvh-manual-basic-use/
Language: C++
License: MIT
License Family: permissive
Topics: bvh, raytracing, rendering
Last push: 2026-08-31T14:53:48+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 100, release rhythm 35, longevity 48
- inputs: {"age_days": 673, "days_push": 2, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1170, forks 79 (observed 2026-09-01T02:14:03.196633+00:00)

## What it is
TinyBVH is a single-header, dependency-free C++ library for fast Bounding Volume Hierarchy (BVH) construction and ray traversal on CPU and GPU. It includes TinyOCL, an optional single-header OpenCL helper for GPU ray tracing examples.

## Use cases
- build BVHs for ray tracing scenes
- trace rays against triangle meshes quickly
- accelerate ray-scene intersection queries
- run GPU ray traversal via OpenCL or compute shaders
- benchmark BVH builders against Embree

## When to choose
- you need a fast, dependency-free BVH for a renderer or ray tracer
- you want single-header integration in a C++ project
- you need fast single-ray traversal or fast SAH BVH construction

## When to avoid
- you need highly optimized any-hit (shadow ray) performance where Embree excels
- you need a full rendering framework rather than a BVH library

## Facets
- artifact type: library
- maturity: active
- function: graphics, simulation, math
- domain: graphics, computer-vision
- platform: cpp, cross-platform
- tags: bvh, ray-tracing, single-header, rendering, opencl, collision-detection, game-development, gpu

## Member repositories
- jbikker/tinybvh (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-09-01T02:14:03.196633+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:28:31.804510+00:00, confidence not recorded.
  - readme: https://github.com/jbikker/tinybvh (fetched 2026-09-01T02:14:03.196633+00:00, sha a2e740dd9c4c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
