Skip to content

Convert vertex-colored .obj meshes to uv-wrapped, textured .glb meshes.

Notifications You must be signed in to change notification settings

dylanebert/InstantTexture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InstantTexture

A minimalist Python library for converting vertex-colored .obj meshes to uv-mapped, textured .glb meshes.

Installation

  1. Clone the repository
    git clone https://github.com/dylanebert/InstantTexture.git
    cd InstantTexture
  1. Set up a virtual environment (optional)
    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  1. Install the package locally
    pip install -e .

Usage

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)

Walkthrough

For a complete walkthrough of the process, see the walkthrough notebook.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Acknowledgements

About

Convert vertex-colored .obj meshes to uv-wrapped, textured .glb meshes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published