Skip to content

Instantly share code, notes, and snippets.

@ben221199
Created May 3, 2026 12:40
Show Gist options
  • Select an option

  • Save ben221199/2cd32af3fd4a7c39ea9bfc8a2c4e1da3 to your computer and use it in GitHub Desktop.

Select an option

Save ben221199/2cd32af3fd4a7c39ea9bfc8a2c4e1da3 to your computer and use it in GitHub Desktop.
Reflectance Transformation Imaging

File format

Extension: rti (for both PTM and HSH)

PTM

Name: Polynomial Texture Mapping (Earlier: Plenoptic Texture Map)

Coefficients: 6

Extension: ptm

Versions

Version Version string
PTM 1.0 PTM_1.0
PTM 1.1 PTM_1.1
PTM 1.2 PTM_1.2

Header

Section Description
Version One of PTM_1.0, PTM_1.1 or PTM_1.2
Format In the form PTM_FORMAT_***
Size ` (
Scale 6 space-seperated floats to scale the coefficients.
Bias 6 space-seperated floats to bias the coefficients.

HSH

Name: Hemispherical Harmonics

Extension: hsh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment