MeshPalettizer / context.md
dylanebert's picture
initial commit
346b70f

A newer version of the Gradio SDK is available: 6.1.0

Upgrade

Mesh Palettizer

Web application for simplifying 3D model textures with optimized color palettes

Purpose

  • Convert GLB/GLTF models to use palettized textures
  • Provide web interface for batch processing
  • Support file uploads and URL downloads for model inputs
  • Generate clean, simplified textures for stylized rendering

Layout

conversion/
β”œβ”€β”€ context.md       # This file
β”œβ”€β”€ app.py           # Gradio web interface
β”œβ”€β”€ src/             # Core conversion library
β”‚   └── context.md   # Library context
β”œβ”€β”€ examples/        # Example GLB models
β”‚   β”œβ”€β”€ Duck.glb
β”‚   └── Lantern.glb
└── requirements.txt # HF Spaces dependencies

Scope

  • In-scope: GLB/GLTF processing, batch operations, web interface
  • Out-of-scope: Direct Unity integration, texture detail preservation

Entrypoints

  • app.py - Web interface with example models and batch processing
  • src.convert_meshes() - Core conversion API

Dependencies

  • Internal: src module
  • External: trimesh, gradio, PIL, numpy, scikit-learn, requests