aboutsummaryrefslogtreecommitdiff
path: root/scenefiles-4d
diff options
context:
space:
mode:
Diffstat (limited to 'scenefiles-4d')
-rw-r--r--scenefiles-4d/cube_cube_collision.json14
-rw-r--r--scenefiles-4d/cube_sphere_collision.json12
-rw-r--r--scenefiles-4d/sphere_collision.json4
-rw-r--r--scenefiles-4d/sphere_sphere_collision2.json72
4 files changed, 93 insertions, 9 deletions
diff --git a/scenefiles-4d/cube_cube_collision.json b/scenefiles-4d/cube_cube_collision.json
index 14867fb..cefffe3 100644
--- a/scenefiles-4d/cube_cube_collision.json
+++ b/scenefiles-4d/cube_cube_collision.json
@@ -4,7 +4,7 @@
"ambientCoeff": 0.5,
"diffuseCoeff": 0.5,
"specularCoeff": 0.5,
- "transparentCoeff": 0,
+ "transparentCoeff": 0.5,
"gravity": [0.0, -0.0098, 0.0, 0.0]
},
"cameraData": {
@@ -42,12 +42,15 @@
"diffuse": [1.0, 0.0, 0.0],
"specular": [1.0, 1.0, 1.0],
"shininess": 25.0,
- "velocity": [0.0, 0.0, 0.0, 0.0]
+ "velocity": [0.0, 0.0, 0.0, 0.0],
+ "reflective": [0.6, 0.6, 0.6],
+ "transparent": [0.8, 0.8, 0.8],
+ "ior": 1.01
}
]
},
{
- "translate": [5.0, 0.0, 0.0, 5.0],
+ "translate": [3.0, 0.0, 0.0, 3.0],
"rotate": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
"scale": [1.0, 1.0, 1.0, 1.0],
"primitives": [
@@ -56,7 +59,10 @@
"diffuse": [0.0, 1.0, 0.0],
"specular": [1.0, 1.0, 1.0],
"shininess": 25.0,
- "velocity": [-0.1, 0.0, 0.0, -0.1]
+ "velocity": [-0.03, 0.0, 0.0, -0.03],
+ "reflective": [0.6, 0.6, 0.6],
+ "transparent": [0.8, 0.8, 0.8],
+ "ior": 1.01
}
]
}
diff --git a/scenefiles-4d/cube_sphere_collision.json b/scenefiles-4d/cube_sphere_collision.json
index dad0721..49e677f 100644
--- a/scenefiles-4d/cube_sphere_collision.json
+++ b/scenefiles-4d/cube_sphere_collision.json
@@ -4,7 +4,7 @@
"ambientCoeff": 0.5,
"diffuseCoeff": 0.5,
"specularCoeff": 0.5,
- "transparentCoeff": 0,
+ "transparentCoeff": 0.5,
"gravity": [0.0, -0.0098, 0.0, 0.0]
},
"cameraData": {
@@ -42,7 +42,10 @@
"diffuse": [1.0, 0.0, 0.0],
"specular": [1.0, 1.0, 1.0],
"shininess": 25.0,
- "velocity": [0.0, 0.0, 0.0, 0.0]
+ "velocity": [0.0, 0.0, 0.0, 0.0],
+ "reflective": [0.6, 0.6, 0.6],
+ "transparent": [0.8, 0.8, 0.8],
+ "ior": 1.01
}
]
},
@@ -56,7 +59,10 @@
"diffuse": [0.0, 1.0, 0.0],
"specular": [1.0, 1.0, 1.0],
"shininess": 25.0,
- "velocity": [-0.1, 0.0, 0.0, -0.1]
+ "velocity": [-0.1, 0.0, 0.0, -0.1],
+ "reflective": [0.6, 0.6, 0.6],
+ "transparent": [0.8, 0.8, 0.8],
+ "ior": 1.01
}
]
}
diff --git a/scenefiles-4d/sphere_collision.json b/scenefiles-4d/sphere_collision.json
index f2d7a6a..303093b 100644
--- a/scenefiles-4d/sphere_collision.json
+++ b/scenefiles-4d/sphere_collision.json
@@ -50,7 +50,7 @@
]
},
{
- "translate": [5.0, 0.0, 0.0, 5.0],
+ "translate": [2.0, 0.0, 0.0, 2.0],
"rotate": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
"scale": [1.0, 1.0, 1.0, 1.0],
"primitives": [
@@ -61,7 +61,7 @@
"shininess": 25.0,
"velocity": [-0.03, 0.0, 0.0, -0.03],
"reflective": [0.6, 0.6, 0.6],
- "transparent": [0.2, 0.2, 0.2],
+ "transparent": [0.8, 0.8, 0.8],
"ior": 1.01
}
]
diff --git a/scenefiles-4d/sphere_sphere_collision2.json b/scenefiles-4d/sphere_sphere_collision2.json
new file mode 100644
index 0000000..5029484
--- /dev/null
+++ b/scenefiles-4d/sphere_sphere_collision2.json
@@ -0,0 +1,72 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 0.5,
+ "gravity": [0.0, -0.0098, 0.0, 0.0]
+ },
+ "cameraData": {
+ "position": [3.0, 3.0, 3.0, 3.0],
+ "up": [0.0, 1.0, 0.0, 0.0],
+ "heightAngle": 30.0,
+ "depthAngle": 30.0,
+ "focus": [0.0, 0.0, 0.0, 0.0],
+ "over": [0.0, 0.0, 0.0, 1.0]
+ },
+ "groups": [
+ {
+ "lights": [
+ {
+ "type": "directional",
+ "color": [1.0, 1.0, 1.0],
+ "direction": [0.0, -1.0, 0.0, 0.0]
+ },
+ {
+ "type": "directional",
+ "color": [1.0, 1.0, 1.0],
+ "direction": [1.0, 1.0, 3.0, 3.0]
+ }
+ ]
+ },
+ {
+ "groups": [
+ {
+ "translate": [-3.0, 0.0, 0.0, -3.0],
+ "rotate": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
+ "scale": [1.0, 1.0, 1.0, 1.0],
+ "primitives": [
+ {
+ "type": "sphere",
+ "diffuse": [1.0, 0.0, 0.0],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 25.0,
+ "velocity": [0.03, 0.0, 0.0, 0.03],
+ "reflective": [0.6, 0.6, 0.6],
+ "transparent": [0.8, 0.6, 0.6],
+ "ior": 1.01
+ }
+ ]
+ },
+ {
+ "translate": [3.0, 0.0, 0.0, 3.0],
+ "rotate": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
+ "scale": [1.0, 1.0, 1.0, 1.0],
+ "primitives": [
+ {
+ "type": "sphere",
+ "diffuse": [0.0, 1.0, 0.0],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 25.0,
+ "velocity": [-0.03, 0.0, 0.0, -0.03],
+ "reflective": [0.6, 0.6, 0.6],
+ "transparent": [0.8, 0.8, 0.8],
+ "ior": 1.01
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}