Automated processing scripts for converting Meshy AI outputs into production-ready 3D tokens for Pathfinder 2e and other Game Systems. This pipeline processes .glb files to merge geometry, decimate intelligently, apply matte finishes, and optimize for web performance.
- Smart Decimation: Balances high-fidelity visuals with VTT performance (Target: 20k-40k vertices).
- Automated Mattening: Reduces "greasy" look on Meshy assets by adjusting Coat and Subsurface weights.
- Foundry Alignment: Automatically snaps models to the floor and centers pivot points.
- Meshopt Optimization: Compresses assets for fast loading.
- Dual Tracks: Personal (Draco High-Poly) and Production (Meshopt Optimized).
- Blender 5.0: Ensure Blender is installed. Copy
axiom_config.json.templatetoaxiom_config.jsonand update the path if necessary. - gltfpack: Download
gltfpack.exe(from meshoptimizer) and place it in thetools/folder (or updateaxiom_config.json). - Python 3.10+: Required for running the scripts.
The pipeline is controlled by axiom_config.json. Start by copying axiom_config.json.template to axiom_config.json. You can customize:
- Paths: Locations of executables and asset directories.
- Profiles: Define target vertex counts and texture resolutions for different use cases (
token_production,token_hobby,tile).
You can run the pipeline directly using the provided batch files:
- Double-click
run_single.bat: Process a single file interactively. - Double-click
run_batch.bat: Process all.glbfiles inassets/source/exports/.
To create a standalone chriseurolog3d.exe that you can share or move easily:
- Run
build_exe.bat. - This will install
pyinstallerand compile the scripts. - The output will be in the
dist/folder:dist/chriseurolog3d.exedist/axiom_config.json
- You can run
chriseurolog3d.exedirectly. Ensureaxiom_config.jsonis in the same folder as the.exe.
chriseurolog3d/
├── assets/
│ ├── source/exports/ <-- Place raw .glb files here
│ ├── builds/ <-- Optimized files appear here
│ └── temp/ <-- Temporary working files
├── scripts/
│ ├── main_pipeline.py <-- Orchestrator
│ └── blender_worker.py <-- Blender script
├── tools/
│ └── gltfpack.exe <-- Meshoptimizer tool
├── axiom_config.json <-- Configuration
├── build_exe.bat <-- Build script
├── run_single.bat <-- Run script (Single Mode)
└── run_batch.bat <-- Run script (Batch Mode)
This repository uses a Hybrid Licensing model to balance open-source collaboration with asset protection:
All .py and .bat files in this repository are licensed under the MIT License. You are free to modify and use these scripts for your own pipelines.
All 3D models (.glb, .obj), textures, and character designs (e.g., Anevia, Sossiel) are licensed under CC BY-NC-SA 4.0.
- Attribution: You must give credit to ChrisEurolog.
- Non-Commercial: You may not use these assets for commercial purposes or reselling.
- Share-Alike: If you remix these models, you must distribute them under the same license.
Support the creation of more 3D tokens on patreon.com/chriseurolog.