<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/brains-and-explosions-a-simple-vdb-writer-for-python---joachim-pfefferkorn-xamrq8xpb" -->

---
title: Brains and Explosions: A Simple VDB Writer for Python -...
description: A conference talk recounts the origin story of Neurovolume, an open-source Python library (written with a Zig backend and no heavy dependencies) for writing...
canonical: https://daily.dev/posts/brains-and-explosions-a-simple-vdb-writer-for-python---joachim-pfefferkorn-xamrq8xpb
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Brains and Explosions: A Simple VDB Writer for Python - Joachim Pfefferkorn | daily.dev
og:description: A conference talk recounts the origin story of Neurovolume, an open-source Python library (written with a Zig backend and no heavy dependencies) for writing...
og:url: https://daily.dev/posts/brains-and-explosions-a-simple-vdb-writer-for-python---joachim-pfefferkorn-xamrq8xpb
og:image: https://api.daily.dev/og/posts/XAMRQ8XPb.png
og:image:alt: Brains and Explosions: A Simple VDB Writer for Python - Joachim Pfefferkorn
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Brains and Explosions: A Simple VDB Writer for Python - Joachim Pfefferkorn

**[PyCon US](https://daily.dev/sources/pyconus)** · 28 min read · 0 upvotes · 0 comments

## Summary

A conference talk recounts the origin story of Neurovolume, an open-source Python library (written with a Zig backend and no heavy dependencies) for writing sparse volumetric VDB files, typically used in VFX for clouds, smoke, and fire. The author, a former VFX artist turned self-taught programmer, describes struggling with OpenVDB's Python bindings, which require heavy C++ tooling and Docker containers, and how a NASA visualization team faced the same portability problem. The talk walks through building the library from scratch, using NumPy as the universal data interchange format, exposing Zig code to Python via the C ABI, and implementing sparse tiles and grids. It closes with a janky fMRI analysis and visualization pipeline built on top of the library, alongside reflections on scientific reproducibility, the dead salmon fMRI study, and the value of accessible, dependency-light tooling for cross-domain science and art work.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=a8Fy4kk2xFY>

## Questions this post answers

### What is a VDB file format used for in 3D graphics and why is it hard to work with in Python?

A VDB is a sparse volumetric data structure used to render things like clouds, smoke, water, and explosions in 3D graphics. It stores grids of attributes such as density or temperature and uses tiles to skip uniform empty regions, making files smaller. The industry-standard library, OpenVDB, wraps a large C++ codebase, so its Python bindings are hard to install without Docker or conda-style containerization.

_For developers weighing lightweight versus heavyweight graphics libraries, daily.dev surfaces real build tradeoffs like these._

### Why did the developer choose Zig instead of Rust or Go to write a VDB writer library?

Zig was chosen because it is unopinionated and doesn't force safety abstractions the way Rust does, letting a relative beginner focus on how computers work rather than fighting the language. It also exposes the C ABI directly, making it interface cleanly with Python via ctypes, though frequent breaking changes between Zig releases require ongoing code updates.

_Developers comparing Zig, Rust, and Go for systems-level bindings can track these tradeoffs on daily.dev._

### How much disk space can pruning save in a sparse VDB file without degrading the render quality?

A low prune value can shave off about 40% of disk usage with no visible degradation to the final render, demonstrated on a 189MB Stanford Bunny NumPy array. Higher pruning values save even more space but produce visibly sparser, more degraded volumes, so the prune value exposed in the Neurovolume Python library lets users balance file size against fidelity.

_Anyone tuning storage versus fidelity tradeoffs in volumetric data can find similar hands-on writeups on daily.dev._

## Similar posts on daily.dev

- [Towards Data Science](https://daily.dev/posts/towards-data-science-n9ra6ei3l) · Towards Data Science · 0 upvotes · 0 comments
- [Fascinating Patterns Revealed in Blender Objects](https://daily.dev/posts/fascinating-patterns-revealed-in-blender-objects-q3ow5hh4q) · 80 LEVEL · 0 upvotes · 0 comments
- [Vector Databases and Embeddings With ChromaDB – Real Python](https://daily.dev/posts/vector-databases-and-embeddings-with-chromadb-real-python-oumhbxc6o) · Real Python · 3 upvotes · 0 comments
- [One API to Rule Them All: py123d \+ FiftyOne for Autonomous Driving Data](https://daily.dev/posts/one-api-to-rule-them-all-py123d-fiftyone-for-autonomous-driving-data-it8xwsrm5) · Medium · 0 upvotes · 0 comments
- [Reimagining Data Modeling on the Lakehouse: Introducing Vibe Data Modeling](https://daily.dev/posts/reimagining-data-modeling-on-the-lakehouse-introducing-vibe-data-modeling-hhyp9oqbx) · databricks · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#3d](https://daily.dev/tags/3d), [#computing](https://daily.dev/tags/computing), [#zig](https://daily.dev/tags/zig), [#numpy](https://daily.dev/tags/numpy)

[View this post on daily.dev](https://daily.dev/posts/brains-and-explosions-a-simple-vdb-writer-for-python---joachim-pfefferkorn-xamrq8xpb)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Brains and Explosions: A Simple VDB Writer for Python - Joachim Pfefferkorn","url":"https://daily.dev/posts/brains-and-explosions-a-simple-vdb-writer-for-python---joachim-pfefferkorn-xamrq8xpb","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/brains-and-explosions-a-simple-vdb-writer-for-python---joachim-pfefferkorn-xamrq8xpb"},"datePublished":"2026-08-25T18:58:24.395Z","dateModified":"2026-09-14T07:56:17.232Z","description":"A conference talk recounts the origin story of Neurovolume, an open-source Python library (written with a Zig backend and no heavy dependencies) for writing...","image":"https://i.ytimg.com/vi/a8Fy4kk2xFY/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/a8Fy4kk2xFY/sddefault.jpg","isAccessibleForFree":true,"articleSection":"PyCon US","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"PyCon US","logo":"https://media.daily.dev/image/upload/s--DLedNxG1--/f_auto,q_auto/v1777800767/logos/pyconus?_a=BAMAMiWQ0","url":"https://daily.dev/sources/pyconus"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/brains-and-explosions-a-simple-vdb-writer-for-python---joachim-pfefferkorn-xamrq8xpb","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,3d,computing,zig,numpy","timeRequired":"PT28M","video":{"@type":"VideoObject","name":"Brains and Explosions: A Simple VDB Writer for Python - Joachim Pfefferkorn","description":"A conference talk recounts the origin story of Neurovolume, an open-source Python library (written with a Zig backend and no heavy dependencies) for writing...","thumbnailUrl":"https://i.ytimg.com/vi/a8Fy4kk2xFY/sddefault.jpg","uploadDate":"2026-08-25T18:58:24.395Z","duration":"PT28M","url":"https://api.daily.dev/r/XAMRQ8XPb","embedUrl":"https://www.youtube.com/embed/a8Fy4kk2xFY"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"PyCon US","item":"https://daily.dev/sources/pyconus"},{"@type":"ListItem","position":3,"name":"Brains and Explosions: A Simple VDB Writer for Python - Joachim Pfefferkorn"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/brains-and-explosions-a-simple-vdb-writer-for-python---joachim-pfefferkorn-xamrq8xpb#faq","mainEntity":[{"@type":"Question","name":"What is a VDB file format used for in 3D graphics and why is it hard to work with in Python?","acceptedAnswer":{"@type":"Answer","text":"A VDB is a sparse volumetric data structure used to render things like clouds, smoke, water, and explosions in 3D graphics. It stores grids of attributes such as density or temperature and uses tiles to skip uniform empty regions, making files smaller. The industry-standard library, OpenVDB, wraps a large C++ codebase, so its Python bindings are hard to install without Docker or conda-style containerization. For developers weighing lightweight versus heavyweight graphics libraries, daily.dev surfaces real build tradeoffs like these."}},{"@type":"Question","name":"Why did the developer choose Zig instead of Rust or Go to write a VDB writer library?","acceptedAnswer":{"@type":"Answer","text":"Zig was chosen because it is unopinionated and doesn't force safety abstractions the way Rust does, letting a relative beginner focus on how computers work rather than fighting the language. It also exposes the C ABI directly, making it interface cleanly with Python via ctypes, though frequent breaking changes between Zig releases require ongoing code updates. Developers comparing Zig, Rust, and Go for systems-level bindings can track these tradeoffs on daily.dev."}},{"@type":"Question","name":"How much disk space can pruning save in a sparse VDB file without degrading the render quality?","acceptedAnswer":{"@type":"Answer","text":"A low prune value can shave off about 40% of disk usage with no visible degradation to the final render, demonstrated on a 189MB Stanford Bunny NumPy array. Higher pruning values save even more space but produce visibly sparser, more degraded volumes, so the prune value exposed in the Neurovolume Python library lets users balance file size against fidelity. Anyone tuning storage versus fidelity tradeoffs in volumetric data can find similar hands-on writeups on daily.dev."}}]}
```

