This release is a pre-release and may not be stable for production use.
Usage
Reading a MERL BRDF file
from rivoli.io import readMERL
brdf = readMERL("alum-bronze.binary")
print(brdf.shape) # (90, 90, 180, 3)
The returned array is indexed by (thetaH, thetaD, phiD, channel) in the
Rusinkiewicz half-vector parameterization:
| Axis | Bins | Mapping |
|---|---|---|
thetaH |
90 | square-root, concentrating resolution near specular |
thetaD |
90 | linear, 1° per bin over [0, π/2] |
phiD |
180 | linear, 1° per bin over [0, π], folded by reciprocity |
| channel | 3 | RGB |
Values are BRDF values in sr⁻¹, with the MERL per-channel scale factors already applied. Bins for which no measurement is available are negative and should be masked before use:
valid = brdf >= 0
Metadata
Release files for rivoli 2.0.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rivoli-2.0.0a1.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rivoli-2.0.0a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / rivoli-2.0.0a1.tar.gz
| Download URL | rivoli-2.0.0a1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
945af48c64471076fc905f9d90d1007a6e7e0324af4b62e0a90d824830e736fa
|
|
BLAKE2b-256 checksum How to use checksums |
fffc99464429f3baf55febc0345fcf93f8078e662bad27db5f4c328fb4adba39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logRelease files / rivoli-2.0.0a1-py3-none-any.whl
| Download URL | rivoli-2.0.0a1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6521c6522dab802bb471de0acacd541645a773699dcb31aa7d2aa509979ccf8b
|
|
BLAKE2b-256 checksum How to use checksums |
b9e7ff23557037cf2b0ebed17a9103ad709480aa7968c5009ce4774e71606d10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency log