A Python library for easy and fast manipulation of PBR materials with PyTorch integration.
Project description
PyPBR
PyPBR is a Python library for easy and fast manipulation of Physically Based Rendering (PBR) materials with PyTorch integration. It simplifies the process of loading, manipulating, and saving PBR materials, and provides tools for working with BRDF models.
Features
- Easy loading and saving of PBR materials from folders with naming conventions.
- Integration with PyTorch tensors for seamless GPU acceleration.
- Material manipulation functions (resize, tile, invert normals, etc.).
Installation
pip install pypbr
Usage
from pypbr import Material, load_material_from_folder
# Load a material from a folder
material = load_material_from_folder('path/to/material/folder')
# Resize the material
material.resize((512, 512))
# Invert the normal map
material.invert_normal()
# Save the modified material
material.save_to_folder('path/to/save/material')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pypbr-0.1.0a1.tar.gz
(12.0 kB
view hashes)
Built Distribution
pypbr-0.1.0a1-py3-none-any.whl
(10.5 kB
view hashes)