aboutsummaryrefslogtreecommitdiff
path: root/scenefiles/intersect/required/parse_matrix.json
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-12-07 16:23:20 -0500
committersotech117 <michael_foiani@brown.edu>2023-12-07 16:23:20 -0500
commitcaa765bff49d54217b75aaf0e7acf4e5392a11e4 (patch)
tree9b92914dfb88b99599e8e60e4512e9e9ea9a25db /scenefiles/intersect/required/parse_matrix.json
parenta9274459443f1d560d7580a162deb581549980cb (diff)
upload base code
Diffstat (limited to 'scenefiles/intersect/required/parse_matrix.json')
-rw-r--r--scenefiles/intersect/required/parse_matrix.json113
1 files changed, 113 insertions, 0 deletions
diff --git a/scenefiles/intersect/required/parse_matrix.json b/scenefiles/intersect/required/parse_matrix.json
new file mode 100644
index 0000000..79b9c8b
--- /dev/null
+++ b/scenefiles/intersect/required/parse_matrix.json
@@ -0,0 +1,113 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 0
+ },
+ "cameraData": {
+ "position": [-1.83627, 1.89243, -3.66398],
+ "up": [-0.150264, -0.908996, -0.388777],
+ "heightAngle": 64.0,
+ "look": [0.495877, -0.409496, 0.76578]
+ },
+ "groups": [
+ {
+ "lights": [
+ {
+ "type": "directional",
+ "color": [0.5, 0.5, 0.5],
+ "direction": [-10.0, -10.0, -10.0]
+ }
+ ]
+ },
+ {
+ "lights": [
+ {
+ "type": "directional",
+ "color": [0.8, 0.4, 0.8],
+ "direction": [2.0, 2.0, -2.0]
+ }
+ ]
+ },
+ {
+ "lights": [
+ {
+ "type": "directional",
+ "color": [0.8, 0.4, 0.8],
+ "direction": [-4.0, -4.0, -4.0]
+ }
+ ]
+ },
+ {
+ "lights": [
+ {
+ "type": "directional",
+ "color": [0.8, 0.4, 0.8],
+ "direction": [6.0, 6.0, 6.0]
+ }
+ ]
+ },
+ {
+ "groups": [
+ {
+ "matrix": [
+ [0.188431, -1.63652, -0.157292, 2.570533],
+ [-1.085494, -0.242748, 1.225244, 0.596201],
+ [-1.234764, -0.036338, -1.101128, -0.401192],
+ [0.0, 0.0, 0.0, 1.0]
+ ],
+ "primitives": [
+ {
+ "type": "sphere",
+ "diffuse": [1.0, 1.0, 1.0],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 30.0,
+ "reflective": [0.9, 0.9, 0.9]
+ }
+ ]
+ },
+ {
+ "matrix": [
+ [0.307735, 0.0, 0.0, 0.091141],
+ [0.0, 0.307735, 0.0, -2.81254],
+ [0.0, 0.0, 0.307735, 1.058586],
+ [0.0, 0.0, 0.0, 1.0]
+ ],
+ "primitives": [
+ {
+ "type": "cube"
+ }
+ ]
+ },
+ {
+ "matrix": [
+ [0.331918, 0.0, 0.0, 1.028729],
+ [0.0, 0.331918, 0.0, -0.505467],
+ [0.0, 0.0, 0.331918, -0.936443],
+ [0.0, 0.0, 0.0, 1.0]
+ ],
+ "primitives": [
+ {
+ "type": "sphere"
+ }
+ ]
+ },
+ {
+ "matrix": [
+ [0.95674, 0.0, 0.0, 0.033189],
+ [0.0, 0.95674, 0.0, 0.568857],
+ [0.0, 0.0, 0.95674, 0.282701],
+ [0.0, 0.0, 0.0, 1.0]
+ ],
+ "primitives": [
+ {
+ "type": "cylinder"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}