Skip to content

Instantly share code, notes, and snippets.

@Maxxen
Maxxen / DuckDB Storage.md
Last active April 8, 2024 14:15
WIP DuckDB storage docs

The DuckDB File Format

Layout:

| Main Header | DB Header 1 | DB Header 2 | Block 1    | Block 2    | ... | Block N    |
| ----------- | ------------| ------------| -----------| ---------- | --- | ---------- |
| 4 KB        | 4 KB        | 4 KB        | 256 KB     | 256 KB     | ... | 256 KB     |

Main Header

@Maxxen
Maxxen / vox_to_obj_exporter.py
Created June 24, 2018 18:09 — forked from shivshank/vox_to_obj_exporter.py
Exports from MagicaVoxel VOX to OBJ. Can preserve all edges for easy editing in a program like Blender.
"""
This script is designed to export a mass amount of MagicaVoxel .vox files
to .obj. Unlike Magica's internal exporter, this exporter preserves the
voxel vertices for easy manipulating in a 3d modeling program like Blender.
Various meshing algorithms are included (or to be included). MagicaVoxel
uses monotone triangulation (I think). The algorithms that will (or do)
appear in this script will use methods to potentially reduce rendering
artifacts that could be introduced by triangulation of this nature.