FilamentPainter
Filament Painting generator for 3D printing
Install / Use
/learn @hpnrep6/FilamentPainterREADME
Filament Painter
A free colour lithophane generator hosted at https://painter.vec4.ca/
Powered by WebGL2.
Running Locally
- Download as zip or clone the repository.
- Drag
index.htmlinto a browser tab.
Directory Structure
/srccontains the Typescript source code/uicontains the CSS styling/buildcontains compiled JavaScript code (from Typescript)
Core Components
The main component of this entire app is in https://github.com/hpnrep6/FilamentPainter/blob/master/src/gl/compute/Heights.ts
To determine the colour at a layer, a brute force method is used by starting from layer 0 and then incrementing the height for each layer while applying the appropriate colour blending function.
Currently, the colour blending uses an exponential curve of (e^(-2x) - e^-2) / (1 - e^-2), which gives a pretty good approximation of how filament actually behaves.
Since everything is run on the GPU, this brute force computation runs relatively fast.
Related Skills
node-connect
337.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.2kCommit, push, and open a PR
