r/GraphicsProgramming • u/ZephirFX • 13d ago
Video Building a random-access compressed volumetric data engine with on-demand rendering
Hey everyone!
I've been developing VQField, a compression and runtime engine for sparse volumetric data, in my spare time over the past year.
The video shows a comparison against a traditional OpenVDB rendering workflow, with some pretty exciting results:
- ~30x compression on disk
- ~10x lower RAM usage during rendering
- On-demand decompression of individual 8³ voxel blocks
- CPU-based decoding using a custom C++ codec
The interesting part isn't necessarily the compression ratio, but the ability to render directly from compressed data, without reconstructing the entire volume beforehand.
Under the hood, VQField uses a deterministic codec random-access indexing. The renderer can query individual blocks as needed, with caching to avoid redundant decompression.
The main issue with compressed format is acting on those compressed values without the need to decompress the entire volume, the file format deviated a lot from what OpenVDB provides (Tree structure), and instead uses flat indexing and spacial chunking so that accessing any chunk is an O(1) operation. This allows for voxel level lookup in 3 steps, with each of them being close in memory. There's a tradeoff here, where ideally spacial chunking shouldn't be part of the file format as it limit quite a bit the compression level achievable, but it's pretty easy to formalize that volumetric data are rarely random in their distribution / activity 😄.
The engine already supports spatial and temporal compression, random-access sampling, a C/C++ SDK, and Houdini integration.
Long term, my vision is to build a unified infrastructure layer for compressed spatial data, where applications can store, stream, query, and process large volumetric datasets without repeatedly reconstructing them in memory.
There's still plenty of work ahead, but the core technology is already working, and I'm looking forward to taking it further!
Fyi, It all started from my open source version VQVDB : https://github.com/ZephirFXEC/VQVDB