A minimalist Python library for converting vertex-colored .obj meshes to uv-mapped, textured .glb meshes.
- Clone the repository
git clone https://github.com/dylanebert/InstantTexture.git
cd InstantTexture
- Set up a virtual environment (optional)
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install the package locally
pip install -e .
A simple usage example is provided in the examples/convert.py
file.
from instant_texture import Converter
input_mesh_path = "inputs/chair.obj"
output_mesh_path = "outputs/chair.glb"
converter = Converter()
converter.convert(input_mesh_path, output_mesh_path)
For a complete walkthrough of the process, see the walkthrough notebook.
This project is licensed under the MIT License. See the LICENSE
file for more details.