# InstantTexture
A minimalist Python library for converting vertex-colored .obj meshes to uv-mapped, textured .glb meshes.
## Installation
1. **Clone the repository**
```bash
git clone https://github.com/dylanebert/InstantTexture.git
cd InstantTexture
```
2. **Set up a virtual environment (optional)**
```bash
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```
3. **Install the package locally**
```bash
pip install -e .
```
## Usage
A simple usage example is provided in the `examples/convert.py` file.
```python
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](https://githubtocolab.com/dylanebert/InstantTexture/blob/main/notebooks/walkthrough.ipynb).
## License
This project is licensed under the MIT License. See the `LICENSE` file for more details.
## Acknowledgements
- [trimesh](https://github.com/mikedh/trimesh)
- [xatlas](https://github.com/jpcy/xatlas)
- [opencv](https://github.com/opencv/opencv)
- [Pillow](https://github.com/python-pillow/Pillow)

吾名招财
- 粉丝: 5374
最新资源
- Java语言字符串前补零和后补零的快速方法
- 基于RRT与自重构技术的UAV编队避障与动态队形调整研究 · RRT
- 基于Simulink的单轮车辆ABS防抱死控制系统仿真模型及其应用 · Simulink 深度版
- Java语言移动整个文件夹或单个文件到另一个文件夹
- Python实现神经网络模型的数学公式识别源码文档说明
- 电力系统中配电网最优潮流的SOCP松弛技术应用与实现
- WinCC高级报表工具:自定义模板与多格式输出在工业自动化中的应用
- 基于ADRC控制的Matlab Simulink半车主动悬架建模:优化车身加速度与悬架性能的仿真研究 MatlabSimulink
- Java中文件与字节数组(byte)相互转换
- 使用PyTorch深度学习框架基于BiLSTM CRF的中文分词系统
- 基于BP神经网络的MNIST手写数字识别Python源码(期末大作业)
- C#基于.NET框架的串口数据读取与多曲线显示系统的实现
- Java语言清空文件夹下所有文件
- 基于OpenCV C#开发的圆卡尺、矩形卡尺等测量工具源码集,含视觉控件与自定义图形工具,运行稳定且操作便捷 v3.0
- PFC5.0技术下的预制裂隙含锚杆试样单轴压缩特性研究
- COMSOL多物理场仿真:压电效应中结构力学与静电场耦合模型及其应用
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


