Skip to main content

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


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)

Uploaded Source

Built Distribution

pypbr-0.1.0a1-py3-none-any.whl (10.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page