File size: 1,086 Bytes
346b70f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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