Skip to content

Commit

Permalink
docs(samples): Add samples for dynamic radiance geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed Apr 27, 2020
1 parent 942961a commit b7d126f
Show file tree
Hide file tree
Showing 8 changed files with 2,312 additions and 39 deletions.
1,835 changes: 1,835 additions & 0 deletions samples/model/model_radiance_dynamic_states.json

Large diffs are not rendered by default.

90 changes: 90 additions & 0 deletions samples/state/aperture_state_abridged_bsdf.json
@@ -0,0 +1,90 @@
{
"type": "RadianceSubFaceStateAbridged",
"modifier": "klemsfull",
"vmtx_geometry": {
"type": "Face3D",
"boundary": [
[
1.0,
-0.025,
0.0
],
[
1.0,
-0.025,
3.0
],
[
0.0,
-0.025,
3.0
],
[
0.0,
-0.025,
0.0
]
],
"plane": {
"type": "Plane",
"n": [
-0.0,
-1.0,
-0.0
],
"o": [
0.0,
-0.025,
0.0
],
"x": [
-1.0,
0.0,
-0.0
]
}
},
"dmtx_geometry": {
"type": "Face3D",
"boundary": [
[
1.0,
0.025,
0.0
],
[
1.0,
0.025,
3.0
],
[
0.0,
0.025,
3.0
],
[
0.0,
0.025,
0.0
]
],
"plane": {
"type": "Plane",
"n": [
-0.0,
-1.0,
-0.0
],
"o": [
0.0,
0.025,
0.0
],
"x": [
-1.0,
0.0,
-0.0
]
}
}
}
4 changes: 4 additions & 0 deletions samples/state/aperture_state_abridged_electrochromic.json
@@ -0,0 +1,4 @@
{
"type": "RadianceSubFaceStateAbridged",
"modifier": "ElectrochromicGlass4"
}
81 changes: 81 additions & 0 deletions samples/state/aperture_state_abridged_shades.json
@@ -0,0 +1,81 @@
{
"type": "RadianceSubFaceStateAbridged",
"modifier": "DiffusingShade",
"shades": [
{
"type": "Shade",
"identifier": "RectangleShade1",
"display_name": "RectangleShade1",
"properties": {
"type": "ShadePropertiesAbridged",
"radiance": {
"type": "ShadeRadiancePropertiesAbridged",
"modifier": "ShadeMat"
}
},
"geometry": {
"type": "Face3D",
"boundary": [
[
0.0,
0.0,
0.0
],
[
2.0,
0.0,
0.0
],
[
2.0,
2.0,
0.0
],
[
0.0,
2.0,
0.0
]
]
}
},
{
"type": "Shade",
"identifier": "RectangleShade2",
"display_name": "RectangleShade2",
"properties": {
"type": "ShadePropertiesAbridged",
"radiance": {
"type": "ShadeRadiancePropertiesAbridged",
"modifier": "ShadeMat"
}
},
"geometry": {
"type": "Face3D",
"boundary": [
[
0.0,
0.0,
2.0
],
[
2.0,
0.0,
0.0
],
[
2.0,
2.0,
2.0
],
[
0.0,
2.0,
2.0
]
]
}
}
],
"modifier_direct": "DiffusingShadeDirect"
}
4 changes: 4 additions & 0 deletions samples/state/shade_state_abridged_snow.json
@@ -0,0 +1,4 @@
{
"type": "RadianceShadeStateAbridged",
"modifier": "SnowMaterial"
}
79 changes: 79 additions & 0 deletions samples/state/shade_state_abridged_tree_foliage.json
@@ -0,0 +1,79 @@
{
"type": "RadianceShadeStateAbridged",
"shades": [
{
"type": "Shade",
"identifier": "tree_foliage1",
"display_name": "tree_foliage1",
"properties": {
"type": "ShadePropertiesAbridged",
"radiance": {
"type": "ShadeRadiancePropertiesAbridged",
"modifier": "TreeTrans1"
}
},
"geometry": {
"type": "Face3D",
"boundary": [
[
0.0,
0.0,
5.0
],
[
2.0,
0.0,
5.0
],
[
2.0,
2.0,
5.0
],
[
0.0,
2.0,
5.0
]
]
}
},
{
"type": "Shade",
"identifier": "tree_foliage2",
"display_name": "tree_foliage2",
"properties": {
"type": "ShadePropertiesAbridged",
"radiance": {
"type": "ShadeRadiancePropertiesAbridged",
"modifier": "TreeTrans2"
}
},
"geometry": {
"type": "Face3D",
"boundary": [
[
0.0,
0.0,
5.0
],
[
-2.0,
0.0,
5.0
],
[
-2.0,
2.0,
5.0
],
[
0.0,
2.0,
5.0
]
]
}
}
]
}

0 comments on commit b7d126f

Please sign in to comment.