forked from asam-ev/OpenMATERIAL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from ClemensLinnhoff/50-add-brdf-look-up-table…
…-to-the-material-data 50 add brdf look up table to the material data
- Loading branch information
Showing
9 changed files
with
13,294 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"properties": { | ||
"metadata": { | ||
"type": "object", | ||
"description": "Metadata about the material.", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "Name of the material." | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "Short description of the material in 2 - 3 sentences." | ||
}, | ||
"uuid": { | ||
"type": "string", | ||
"description": "Universally unique identifier for the material.", | ||
"pattern": "^[a-f0-9]{32}$" | ||
}, | ||
"materialVersion": { | ||
"type": "string", | ||
"description": "Version of the material.", | ||
"pattern": "^\\d+\\.\\d+\\.\\d+$" | ||
}, | ||
"creationDate": { | ||
"type": "string", | ||
"description": "Creation date of the material in the format YYYYMMDDTHHMMSSZ.", | ||
"pattern": "^\\d{8}T\\d{6}Z$" | ||
}, | ||
"openMaterialVersion": { | ||
"type": "string", | ||
"description": "Version of OpenMATERIAL.", | ||
"pattern": "^\\d+\\.\\d+\\.\\d+$" | ||
}, | ||
"copyright": { | ||
"type": "string", | ||
"description": "Copyright information with year and company." | ||
}, | ||
"license": { | ||
"type": "string", | ||
"description": "License information. For common open source licenses, provide an SPDX identifier. For other types of licenses, provide an URL to a webpage with the license or the filename of a separately provided license file." | ||
}, | ||
"author": { | ||
"type": "string", | ||
"description": "Name or email address of the author of this material. In case of multiple authors, use comma-separation. The author can also be a company name." | ||
}, | ||
"source": { | ||
"type": "string", | ||
"description": "Source of the brdf data." | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"description", | ||
"uuid", | ||
"materialVersion", | ||
"creationDate", | ||
"openMaterialVersion", | ||
"copyright", | ||
"license", | ||
"author", | ||
"source" | ||
] | ||
}, | ||
"brdf": { | ||
"type": "object", | ||
"description": "General information about the lookup table.", | ||
"properties": { | ||
"typicalSensor": { | ||
"type": "string", | ||
"description": "Typical sensor technology this BRDF table is used for, e.g., radar, lidar, camera." | ||
}, | ||
"wavelengthRange": { | ||
"type": "array", | ||
"description": "Wavelength range covered by the lookup table.", | ||
"items": [ | ||
{ | ||
"type": "number", | ||
"description": "Min wavelength in meters." | ||
}, | ||
{ | ||
"type": "number", | ||
"description": "Max wavelength in meters." | ||
} | ||
], | ||
"minItems": 2, | ||
"maxItems": 2 | ||
}, | ||
"amplitudeUnit": { | ||
"type": "string", | ||
"description": "The unit of amplitude, either \"1/sr\" or \"linear\"", | ||
"enum": ["1/sr", "linear"] | ||
}, | ||
"lookupTable": { | ||
"type": "array", | ||
"items": { | ||
"type": "array", | ||
"description": "Array of bidirectional reflectance distribution function (BRDF) values, with each item representing a different property. The array SHALL be sorted based on the columns starting with the first.", | ||
"items": [ | ||
{ | ||
"type": ["number", "null"], | ||
"description": "Incident elevation angle in rad." | ||
}, | ||
{ | ||
"type": ["number", "null"], | ||
"description": "Exit elevation angle in rad." | ||
}, | ||
{ | ||
"type": ["number", "null"], | ||
"description": "Exit azimuth angle in rad (for BRDFs with incident and exit vectors on the same plane as the normal, exit azimuth angle is 0.)" | ||
}, | ||
{ | ||
"type": ["number", "null"], | ||
"description": "Polarized plane angle in rad. This is the angle between the plane containing the incident, exit, and normal vector, and the plane of polarization." | ||
}, | ||
{ | ||
"type": ["number", "null"], | ||
"description": "Wavelength in meters." | ||
}, | ||
{ | ||
"type": ["number", "null"], | ||
"description": "Amplitude within the linearly polarized plane." | ||
}, | ||
{ | ||
"type": ["number", "null"], | ||
"description": "Phase within the linearly polarized plane. If the phase is not taken into account, it is null." | ||
} | ||
], | ||
"minItems": 7, | ||
"maxItems": 7 | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"typicalSensor", | ||
"wavelengthRange", | ||
"amplitudeUnit", | ||
"lookupTable" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"metadata", | ||
"brdf" | ||
] | ||
} |