Development
Voxel texture recolorer
Python pipeline to recolor 8192² textures of a voxel soldier while preserving fabric detail.
procedural cover — real screenshots pendingProcedural cover for the project Voxel texture recolorer.
01 Summary
Image processing tool that generates color variations for the uniform and helmet of a 3D voxel model, segmenting the recolorable region in HSV space and recoloring in Lab space to preserve fabric seams, texture, and shadows. Includes a CLI with a JSON-editable palette and a desktop app (pywebview + three.js) with a 3D viewer and real-time color panel, packageable as an executable with PyInstaller. All processing relies strictly on NumPy and Pillow, using band reading to handle 8192×8192 textures without exhausting memory.
02 Results
Verifiable figures in the repository and its documentation:
8192²resolución de textura procesada
03 Highlights
- Lab color space recoloring that replaces chromaticity (a*, b*) and preserves luminance L*, keeping fabric details intact.
- HSV color segmentation that isolates the recolorable region and protects the vest, gloves, skin, and collar using validated thresholds.
- Band-based processing for 8192×8192 textures using only NumPy and Pillow.
- Desktop app featuring a 3D viewer in three.js and a Python engine via pywebview, packaged as a .exe using PyInstaller.
04 Screenshots
Screenshot pending
Interface — pending