From 7382a6f7c01b71d08e6482707f34639820333f43 Mon Sep 17 00:00:00 2001 From: Nicholas Bottone Date: Tue, 12 Dec 2023 22:42:23 -0500 Subject: Add gravity, look, and over properties to cameraData and velocity property to groups --- scenefiles-4d/five_shapes.json | 22 +++++++++++++++------- scenefiles-4d/unit_sphere.json | 3 ++- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/scenefiles-4d/five_shapes.json b/scenefiles-4d/five_shapes.json index 7e250e4..d198d5d 100644 --- a/scenefiles-4d/five_shapes.json +++ b/scenefiles-4d/five_shapes.json @@ -4,13 +4,16 @@ "ambientCoeff": 0.5, "diffuseCoeff": 0.5, "specularCoeff": 0.5, - "transparentCoeff": 0 + "transparentCoeff": 0, + "gravity": [0.0, -0.0098, 0.0, 0.0] }, "cameraData": { "position": [0.0, 0.0, 5.0, 6.5], "up": [0.0, 1.0, 0.0, 0.0], "heightAngle": 50.0, - "focus": [0.0, 0.0, 0.0, 0.0] + "focus": [0.0, 0.0, 0.0, 0.0], + "look": [0.0, 0.0, 0.0, 0.0], + "over": [0.0, 1.0, 0.0, 0.0] }, "groups": [ { @@ -33,7 +36,8 @@ "ambient": [0.0, 0.5, 0.0], "diffuse": [0.0, 1.0, 0.0], "specular": [1.0, 1.0, 1.0], - "shininess": 30.0 + "shininess": 30.0, + "velocity": [0.0, 0.0, 0.0, 0.0] } ] }, @@ -50,7 +54,8 @@ "ambient": [0.0, 0.5, 0.5], "diffuse": [0.0, 1.0, 1.0], "specular": [1.0, 1.0, 1.0], - "shininess": 30.0 + "shininess": 30.0, + "velocity": [0.0, 0.0, 0.0, 0.0] } ] }, @@ -63,7 +68,8 @@ "ambient": [0.5, 0.5, 0.0], "diffuse": [1.0, 1.0, 0.0], "specular": [1.0, 1.0, 1.0], - "shininess": 30.0 + "shininess": 30.0, + "velocity": [0.0, 0.0, 0.0, 0.0] } ] }, @@ -76,7 +82,8 @@ "ambient": [0.5, 0.0, 0.5], "diffuse": [1.0, 0.0, 1.0], "specular": [1.0, 1.0, 1.0], - "shininess": 30.0 + "shininess": 30.0, + "velocity": [0.0, 0.0, 0.0, 0.0] } ] }, @@ -89,7 +96,8 @@ "ambient": [0.5, 0.5, 0.5], "diffuse": [1.0, 1.0, 1.0], "specular": [1.0, 1.0, 1.0], - "shininess": 30.0 + "shininess": 30.0, + "velocity": [0.0, 0.0, 0.0, 0.0] } ] } diff --git a/scenefiles-4d/unit_sphere.json b/scenefiles-4d/unit_sphere.json index f86ee09..500b8fc 100644 --- a/scenefiles-4d/unit_sphere.json +++ b/scenefiles-4d/unit_sphere.json @@ -36,7 +36,8 @@ "type": "sphere", "diffuse": [1.0, 0.0, 0.0], "specular": [1.0, 1.0, 1.0], - "shininess": 25.0 + "shininess": 25.0, + "velocity": [0.0, 0.0, 0.0, 0.0] } ] } -- cgit v1.2.3-70-g09d2