Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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')

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pypbr-0.1.0a1.tar.gz.

File metadata

  • Download URL: pypbr-0.1.0a1.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for pypbr-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 aad71669eff89eedc53fe1061c4a19c0fc5513d9380f0fcf54f30b9761340b34
MD5 d7b5b1dcfcc9079b47077fe6b72b8284
BLAKE2b-256 b2e17a6a08d7d5704d4ea802f0cc1c04c6adb6f9c0d9c1c6bbdb8ff640b788ef

See more details on using hashes here.

File details

Details for the file pypbr-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: pypbr-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for pypbr-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 0fecdc815b9c6091fb819f5963c85c60ea20d2330d8721cf9ccd504d17269e14
MD5 47e2f6181f1a8d64163e0cad52c6996e
BLAKE2b-256 e96b78a43a85ddadc9f322e0299d37a53aed0e8b8006c56309d57352924d07f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page