Ray-tracing BVH forKBVETinyBVH
An Unreal Engine wrapper for TinyBVH 1.8.0 — a single-header BVH (bounding volume hierarchy) construction and traversal library. Its <code>FKBVEBvhScene</code> builds a tree over the vertex and index arrays a procedural world generates, so line of sight, placement and grounding queries run without a physics body, a cook, or the game thread.
Queries off the game thread
Queries on a built FKBVEBvhScene are const and may run on any thread. Building while querying is not safe. Categorized as a Third Party plugin, not enabled by default.
- Upstream — jbikker/tinybvh, single-header.
- Platforms — Win64, Linux, Mac.
What it gives you
Features
FKBVEBvhScene
Build over an indexed list or a triangle soup, optional SetHighQuality for geometry queried far more than rebuilt, then Raycast, IsOccluded and OverlapsSphere. Positions are copied in as floats, so build in chunk-local space for large worlds.
Safe tiny_bvh.h include
KBVETinyBVHLibrary.h is the one place the raw header is included; it hides PLATFORM_LINUX so Mac builds do not compile TinyBVH's Linux thread-pinning path.
Runtime third-party module
Categorized as a Third Party plugin, loaded at the Default phase and not enabled by default.
Cross-platform
Builds for Win64, Linux, and Mac on Unreal Engine 5.4 and newer.
Questions
Frequently asked
What is the KBVETinyBVH plugin?
KBVETinyBVH is an Unreal Engine wrapper for TinyBVH, a single-header BVH (bounding volume hierarchy) construction and traversal library. On top of it, FKBVEBvhScene builds a BVH straight from generated vertex and index arrays and answers raycast, occlusion and sphere-overlap queries without a physics body or cook.
What version of TinyBVH does it wrap?
The vendored tiny_bvh.h and the plugin VersionName are TinyBVH 1.8.0. The upstream OpenCL and compute traversal kernels sit beside it under ThirdParty/tinybvh but are not used by the module.
Which Unreal versions and platforms are supported?
KBVETinyBVH targets Unreal Engine 5.4 and newer and builds for Win64, Linux, and Mac. It is a runtime module and is not enabled by default.
Discuss on the forum
Questions, fixes and notes on this page live in the KBVE forum.