aboutsummaryrefslogtreecommitdiff
path: root/scenefiles/illuminate/required
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/illuminate/required
parenta9274459443f1d560d7580a162deb581549980cb (diff)
upload base code
Diffstat (limited to 'scenefiles/illuminate/required')
-rw-r--r--scenefiles/illuminate/required/point_light/point_light_1.json85
-rw-r--r--scenefiles/illuminate/required/point_light/point_light_2.json105
-rw-r--r--scenefiles/illuminate/required/reflection/reflections_basic.json77
-rw-r--r--scenefiles/illuminate/required/reflection/reflections_complex.json119
-rw-r--r--scenefiles/illuminate/required/shadow/shadow_special_case.json49
-rw-r--r--scenefiles/illuminate/required/shadow/shadow_test.json147
-rw-r--r--scenefiles/illuminate/required/shadow/simple_shadow.json85
-rw-r--r--scenefiles/illuminate/required/spot_light/spot_light_1.json88
-rw-r--r--scenefiles/illuminate/required/spot_light/spot_light_2.json114
-rw-r--r--scenefiles/illuminate/required/texture_tests/texture_cone.json77
-rw-r--r--scenefiles/illuminate/required/texture_tests/texture_cone2.json127
-rw-r--r--scenefiles/illuminate/required/texture_tests/texture_cube.json67
-rw-r--r--scenefiles/illuminate/required/texture_tests/texture_cube2.json127
-rw-r--r--scenefiles/illuminate/required/texture_tests/texture_cyl.json67
-rw-r--r--scenefiles/illuminate/required/texture_tests/texture_cyl2.json127
-rw-r--r--scenefiles/illuminate/required/texture_tests/texture_sphere.json59
-rw-r--r--scenefiles/illuminate/required/texture_tests/texture_sphere2.json127
-rw-r--r--scenefiles/illuminate/required/textures/andyVanDam.jpgbin0 -> 25810 bytes
-rw-r--r--scenefiles/illuminate/required/textures/bark.pngbin0 -> 808741 bytes
-rw-r--r--scenefiles/illuminate/required/textures/board.pngbin0 -> 2026 bytes
-rw-r--r--scenefiles/illuminate/required/textures/breakfast.gifbin0 -> 78910 bytes
-rw-r--r--scenefiles/illuminate/required/textures/check.pngbin0 -> 1286916 bytes
-rw-r--r--scenefiles/illuminate/required/textures/cheese.pngbin0 -> 97649 bytes
-rw-r--r--scenefiles/illuminate/required/textures/earth.pngbin0 -> 2617047 bytes
-rw-r--r--scenefiles/illuminate/required/textures/liqmtl.pngbin0 -> 356094 bytes
-rw-r--r--scenefiles/illuminate/required/textures/mandril.pngbin0 -> 164047 bytes
-rw-r--r--scenefiles/illuminate/required/textures/marsTexture.pngbin0 -> 211510 bytes
-rw-r--r--scenefiles/illuminate/required/textures/topleft.pngbin0 -> 46021 bytes
28 files changed, 1647 insertions, 0 deletions
diff --git a/scenefiles/illuminate/required/point_light/point_light_1.json b/scenefiles/illuminate/required/point_light/point_light_1.json
new file mode 100644
index 0000000..f700509
--- /dev/null
+++ b/scenefiles/illuminate/required/point_light/point_light_1.json
@@ -0,0 +1,85 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 0
+ },
+ "cameraData": {
+ "position": [-6.0, 4.0, 4.0],
+ "up": [0.0, 1.0, 0.0],
+ "focus": [0, 0, 0],
+ "heightAngle": 30.0
+ },
+ "groups": [
+ {
+ "translate": [0, 3, 0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [1.0, 1.0, 1.0],
+ "attenuationCoeff": [0.8, 0.2, 0.0]
+ }
+ ]
+ },
+ {
+ "groups": [
+ {
+ "translate": [-0.65, 0.0, 0.65],
+ "primitives": [
+ {
+ "type": "cylinder",
+ "diffuse": [0.8, 0.6, 0.6],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [-0.65, 0.0, -0.65],
+ "primitives": [
+ {
+ "type": "cone",
+ "diffuse": [0.6, 0.6, 0.8],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.65, 0.0, -0.65],
+ "primitives": [
+ {
+ "type": "sphere",
+ "diffuse": [0.6, 0.8, 0.6],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.65, 0.0, 0.65],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [0.7, 0.7, 0.7],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.0, -0.6, 0.0],
+ "scale": [6.0, 0.1, 6.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [0.1, 0.4, 0.8]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/point_light/point_light_2.json b/scenefiles/illuminate/required/point_light/point_light_2.json
new file mode 100644
index 0000000..03d6327
--- /dev/null
+++ b/scenefiles/illuminate/required/point_light/point_light_2.json
@@ -0,0 +1,105 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 0
+ },
+ "cameraData": {
+ "position": [-6.0, 4.0, 4.0],
+ "up": [0.0, 1.0, 0.0],
+ "focus": [0, 0, 0],
+ "heightAngle": 30.0
+ },
+ "groups": [
+ {
+ "translate": [0.0, 3.0, 0.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.9, 0.2, 0.2],
+ "attenuationCoeff": [0.8, 0.2, 0]
+ }
+ ]
+ },
+ {
+ "translate": [0.0, 2.0, 1.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.2, 0.9, 0.2],
+ "attenuationCoeff": [1, 0, 0]
+ }
+ ]
+ },
+ {
+ "translate": [0.0, 2.0, -1.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.2, 0.2, 0.9],
+ "attenuationCoeff": [1, 0, 0]
+ }
+ ]
+ },
+ {
+ "groups": [
+ {
+ "translate": [-0.65, 0.0, 0.65],
+ "primitives": [
+ {
+ "type": "cylinder",
+ "diffuse": [0.8, 0.6, 0.6],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [-0.65, 0.0, -0.65],
+ "primitives": [
+ {
+ "type": "cone",
+ "diffuse": [0.6, 0.6, 0.8],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.65, 0.0, -0.65],
+ "primitives": [
+ {
+ "type": "sphere",
+ "diffuse": [0.6, 0.8, 0.6],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.65, 0.0, 0.65],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [0.7, 0.7, 0.7],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.0, -0.6, 0.0],
+ "scale": [6.0, 0.1, 6.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [0.1, 0.4, 0.8]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/reflection/reflections_basic.json b/scenefiles/illuminate/required/reflection/reflections_basic.json
new file mode 100644
index 0000000..e789e3b
--- /dev/null
+++ b/scenefiles/illuminate/required/reflection/reflections_basic.json
@@ -0,0 +1,77 @@
+{
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 1
+ },
+ "cameraData": {
+ "position": [5, 1, 5],
+ "up": [0, 1, 0],
+ "heightAngle": 30,
+ "look": [-1, 0, -1]
+ },
+ "groups": [
+ {
+ "name": "Lights",
+ "lights": [
+ {
+ "color": [1, 0, 0],
+ "type": "directional",
+ "direction": [0, -0.2, -1]
+ },
+ {
+ "color": [0, 1, 0],
+ "type": "directional",
+ "direction": [0, -0.2, 1]
+ },
+ {
+ "color": [0, 0, 1],
+ "type": "directional",
+ "direction": [-1, -0.2, 0]
+ },
+ {
+ "color": [0, 0, 1],
+ "type": "directional",
+ "direction": [1, -0.2, 0]
+ }
+ ]
+ },
+ {
+ "name": "Mirror",
+ "scale": [0.1, 3, 4],
+ "primitives": [
+ {
+ "type": "cube",
+ "reflective": [0.9, 0.9, 0.9],
+ "ambient": [0.68, 0.85, 0.9],
+ "diffuse": [0.8, 0.8, 0.8]
+ }
+ ]
+ },
+ {
+ "name": "Sphere",
+ "translate": [1.5, 0, -1.5],
+ "primitives": [
+ {
+ "type": "sphere",
+ "ambient": [1, 0, 0],
+ "diffuse": [0, 0, 0],
+ "shininess": 30,
+ "specular": [1, 1, 1]
+ }
+ ]
+ },
+ {
+ "name": "Table",
+ "translate": [0, -0.75, 0],
+ "scale": [10, 0.5, 10],
+ "primitives": [
+ {
+ "type": "cube",
+ "ambient": [0, 0.2, 0.13]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/reflection/reflections_complex.json b/scenefiles/illuminate/required/reflection/reflections_complex.json
new file mode 100644
index 0000000..d63563c
--- /dev/null
+++ b/scenefiles/illuminate/required/reflection/reflections_complex.json
@@ -0,0 +1,119 @@
+{
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 1
+ },
+ "cameraData": {
+ "position": [5, 1, 5],
+ "up": [0, 1, 0],
+ "heightAngle": 30,
+ "look": [-1, 0, -1]
+ },
+ "groups": [
+ {
+ "name": "Lights",
+ "lights": [
+ {
+ "color": [1, 0, 0],
+ "type": "directional",
+ "direction": [0, -0.2, -1]
+ },
+ {
+ "color": [0, 1, 0],
+ "type": "directional",
+ "direction": [1, -0.2, 1]
+ },
+ {
+ "color": [0, 0, 1],
+ "type": "directional",
+ "direction": [-1, -0.2, 0]
+ },
+ {
+ "color": [0, 0, 1],
+ "type": "directional",
+ "direction": [1, -0.2, -1]
+ },
+ {
+ "color": [0, 0, 1],
+ "type": "directional",
+ "direction": [-1, -0.2, 1]
+ }
+ ]
+ },
+ {
+ "name": "Mirror 1",
+ "translate": [-3, 1, 0],
+ "scale": [0.1, 3, 4],
+ "primitives": [
+ {
+ "type": "cube",
+ "reflective": [0.9, 0.9, 0.9],
+ "ambient": [0.68, 0.85, 0.9],
+ "diffuse": [0.8, 0.8, 0.8]
+ }
+ ]
+ },
+ {
+ "name": "Mirror 2",
+ "translate": [0, 1, -3],
+ "scale": [4, 3, 0.1],
+ "primitives": [
+ {
+ "type": "cube",
+ "reflective": [0.9, 0.9, 0.9],
+ "ambient": [0.68, 0.85, 0.9],
+ "diffuse": [0.8, 0.8, 0.8]
+ }
+ ]
+ },
+ {
+ "name": "Table",
+ "translate": [0, -1, 0],
+ "scale": [10, 0.5, 10],
+ "primitives": [
+ {
+ "type": "cube",
+ "ambient": [0, 0.2, 0.13]
+ }
+ ]
+ },
+ {
+ "name": "Sphere 1",
+ "translate": [1, 0, -1],
+ "primitives": [
+ {
+ "type": "sphere",
+ "ambient": [0, 1, 0],
+ "reflective": [0.6, 0.6, 0.6],
+ "shininess": 30
+ }
+ ]
+ },
+ {
+ "name": "Sphere 2",
+ "translate": [-1, 0, -1],
+ "primitives": [
+ {
+ "type": "sphere",
+ "ambient": [1, 0, 0],
+ "reflective": [0.6, 0.6, 0.6],
+ "shininess": 30
+ }
+ ]
+ },
+ {
+ "name": "Sphere 3",
+ "translate": [-1, 0, 1],
+ "primitives": [
+ {
+ "type": "sphere",
+ "ambient": [0, 0, 1],
+ "reflective": [0.6, 0.6, 0.6],
+ "shininess": 30
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/shadow/shadow_special_case.json b/scenefiles/illuminate/required/shadow/shadow_special_case.json
new file mode 100644
index 0000000..4fb532f
--- /dev/null
+++ b/scenefiles/illuminate/required/shadow/shadow_special_case.json
@@ -0,0 +1,49 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 0
+ },
+ "cameraData": {
+ "position": [0.0, 0.0, 6.0],
+ "up": [0.0, 1.0, 0.0],
+ "focus": [0, 0, 0],
+ "heightAngle": 40.0
+ },
+ "groups": [
+ {
+ "translate": [0.0, 0.0, 0.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [1.0, 1.0, 1.0],
+ "attenuationCoeff": [1.0, 0.0, 0.0]
+ }
+ ]
+ },
+ {
+ "groups": [
+ {
+ "translate": [0.0, 2.0, 0.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [1.0, 1.0, 1.0]
+ }
+ ]
+ },
+ {
+ "translate": [0.0, -2.0, 0.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [1.0, 1.0, 1.0]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/shadow/shadow_test.json b/scenefiles/illuminate/required/shadow/shadow_test.json
new file mode 100644
index 0000000..efd6766
--- /dev/null
+++ b/scenefiles/illuminate/required/shadow/shadow_test.json
@@ -0,0 +1,147 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 0
+ },
+ "cameraData": {
+ "position": [5.0, 5.0, 5.0],
+ "up": [0.0, 1.0, 0.0],
+ "focus": [0, 0, 0],
+ "heightAngle": 30.0
+ },
+ "groups": [
+ {
+ "translate": [-2.0, 6.0, 6.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.3, 0.0, 0.0],
+ "attenuationCoeff": [1.0, 0.0, 0.0]
+ }
+ ]
+ },
+ {
+ "translate": [-1.0, 6.0, 5.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.0, 0.3, 0.0],
+ "attenuationCoeff": [1.0, 0.0, 0.0]
+ }
+ ]
+ },
+ {
+ "translate": [0.0, 6.0, 4.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.0, 0.0, 0.3],
+ "attenuationCoeff": [1.0, 0.0, 0.0]
+ }
+ ]
+ },
+ {
+ "translate": [1.0, 6.0, 3.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.3, 0.3, 0.0],
+ "attenuationCoeff": [1.0, 0.0, 0.0]
+ }
+ ]
+ },
+ {
+ "translate": [2.0, 6.0, 2.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.3, 0.0, 0.3],
+ "attenuationCoeff": [1.0, 0.0, 0.0]
+ }
+ ]
+ },
+ {
+ "lights": [
+ {
+ "type": "directional",
+ "color": [0.0, 0.3, 0.2],
+ "direction": [0.5, -0.3, -1.0]
+ }
+ ]
+ },
+ {
+ "lights": [
+ {
+ "type": "directional",
+ "color": [0.3, 0.3, 0.5],
+ "direction": [0.2, -0.2, -1.0]
+ }
+ ]
+ },
+ {
+ "lights": [
+ {
+ "type": "directional",
+ "color": [0.3, 0.4, 0.3],
+ "direction": [0.0, -0.15, -1.0]
+ }
+ ]
+ },
+ {
+ "lights": [
+ {
+ "type": "directional",
+ "color": [0.2, 0.2, 0.2],
+ "direction": [-1.0, -0.0, 0.3]
+ }
+ ]
+ },
+ {
+ "groups": [
+ {
+ "translate": [0.0, -0.6, 0.0],
+ "scale": [8.0, 0.1, 8.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [0.4, 0.4, 0.4],
+ "blend": 1.0,
+ "textureFile": "textures/cheese.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "rotate": [1.0, 1.0, 1.0, 60.0],
+ "primitives": [
+ {
+ "type": "sphere",
+ "diffuse": [0.0, 0.0, 0.0],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 30.0,
+ "blend": 0.3,
+ "textureFile": "textures/liqmtl.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [-1.0, 1.0, -0.2],
+ "scale": [0.1, 3.0, 4.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [0.8, 0.6, 0.6],
+ "reflective": [1.0, 1.0, 1.0]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/shadow/simple_shadow.json b/scenefiles/illuminate/required/shadow/simple_shadow.json
new file mode 100644
index 0000000..88d5fe0
--- /dev/null
+++ b/scenefiles/illuminate/required/shadow/simple_shadow.json
@@ -0,0 +1,85 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 0
+ },
+ "cameraData": {
+ "position": [-6.0, 4.0, 4.0],
+ "up": [0.0, 1.0, 0.0],
+ "focus": [0, 0, 0],
+ "heightAngle": 30.0
+ },
+ "groups": [
+ {
+ "translate": [0.0, 6.0, 0.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [1.0, 1.0, 1.0],
+ "attenuationCoeff": [0, 0, 0]
+ }
+ ]
+ },
+ {
+ "groups": [
+ {
+ "translate": [-0.65, 0.0, 0.65],
+ "primitives": [
+ {
+ "type": "cylinder",
+ "diffuse": [0.8, 0.6, 0.6],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [-0.65, 0.0, -0.65],
+ "primitives": [
+ {
+ "type": "cone",
+ "diffuse": [0.6, 0.6, 0.8],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.65, 0.0, -0.65],
+ "primitives": [
+ {
+ "type": "sphere",
+ "diffuse": [0.6, 0.8, 0.6],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.65, 0.0, 0.65],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [0.7, 0.7, 0.7],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.0, -0.6, 0.0],
+ "scale": [6.0, 0.1, 6.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [0.1, 0.4, 0.8]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/spot_light/spot_light_1.json b/scenefiles/illuminate/required/spot_light/spot_light_1.json
new file mode 100644
index 0000000..dba74b0
--- /dev/null
+++ b/scenefiles/illuminate/required/spot_light/spot_light_1.json
@@ -0,0 +1,88 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 1
+ },
+ "cameraData": {
+ "position": [-6.0, 4.0, 4.0],
+ "up": [0.0, 1.0, 0.0],
+ "focus": [0, 0, 0],
+ "heightAngle": 30.0
+ },
+ "groups": [
+ {
+ "translate": [0.0, 4.0, 0.0],
+ "lights": [
+ {
+ "type": "spot",
+ "color": [1.0, 1.0, 1.0],
+ "direction": [0.0, -1.0, 0.0],
+ "angle": 30.0,
+ "penumbra": 20.0,
+ "attenuationCoeff": [0.8, 0.05, 0.0]
+ }
+ ]
+ },
+ {
+ "groups": [
+ {
+ "translate": [-0.65, 0.0, 0.65],
+ "primitives": [
+ {
+ "type": "cylinder",
+ "diffuse": [0.8, 0.6, 0.6],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [-0.65, 0.0, -0.65],
+ "primitives": [
+ {
+ "type": "cone",
+ "diffuse": [0.6, 0.6, 0.8],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.65, 0.0, -0.65],
+ "primitives": [
+ {
+ "type": "sphere",
+ "diffuse": [0.6, 0.8, 0.6],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.65, 0.0, 0.65],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [0.7, 0.7, 0.7],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.0, -0.6, 0.0],
+ "scale": [6.0, 0.1, 6.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [0.1, 0.4, 0.8]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/spot_light/spot_light_2.json b/scenefiles/illuminate/required/spot_light/spot_light_2.json
new file mode 100644
index 0000000..9272bb5
--- /dev/null
+++ b/scenefiles/illuminate/required/spot_light/spot_light_2.json
@@ -0,0 +1,114 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 1
+ },
+ "cameraData": {
+ "position": [-6.0, 4.0, 4.0],
+ "up": [0.0, 1.0, 0.0],
+ "focus": [0, 0, 0],
+ "heightAngle": 30.0
+ },
+ "groups": [
+ {
+ "translate": [0.0, 4.0, 0.0],
+ "lights": [
+ {
+ "type": "spot",
+ "color": [0.9, 0.2, 0.2],
+ "direction": [0.0, -1.0, 0.0],
+ "angle": 20.0,
+ "penumbra": 10.0,
+ "attenuationCoeff": [0.8, 0.05, 0.0]
+ }
+ ]
+ },
+ {
+ "translate": [0.0, 4.0, 3.0],
+ "lights": [
+ {
+ "type": "spot",
+ "color": [0.2, 0.9, 0.2],
+ "direction": [0.0, -1.0, -1.0],
+ "angle": 20.0,
+ "penumbra": 10.0,
+ "attenuationCoeff": [0.8, 0.05, 0.0]
+ }
+ ]
+ },
+ {
+ "translate": [0.0, 4.0, -3.0],
+ "lights": [
+ {
+ "type": "spot",
+ "color": [0.2, 0.2, 0.9],
+ "direction": [0.0, -1.0, 1.0],
+ "angle": 20.0,
+ "penumbra": 10.0,
+ "attenuationCoeff": [0.8, 0.05, 0.0]
+ }
+ ]
+ },
+ {
+ "groups": [
+ {
+ "translate": [-0.65, 0.0, 0.65],
+ "primitives": [
+ {
+ "type": "cylinder",
+ "diffuse": [0.8, 0.6, 0.6],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [-0.65, 0.0, -0.65],
+ "primitives": [
+ {
+ "type": "cone",
+ "diffuse": [0.6, 0.6, 0.8],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.65, 0.0, -0.65],
+ "primitives": [
+ {
+ "type": "sphere",
+ "diffuse": [0.6, 0.8, 0.6],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.65, 0.0, 0.65],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [0.7, 0.7, 0.7],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 15.0
+ }
+ ]
+ },
+ {
+ "translate": [0.0, -0.6, 0.0],
+ "scale": [6.0, 0.1, 6.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [0.1, 0.4, 0.8]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/texture_tests/texture_cone.json b/scenefiles/illuminate/required/texture_tests/texture_cone.json
new file mode 100644
index 0000000..b7eb154
--- /dev/null
+++ b/scenefiles/illuminate/required/texture_tests/texture_cone.json
@@ -0,0 +1,77 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 1
+ },
+ "cameraData": {
+ "position": [-4.0, 2.0, 0.0],
+ "up": [0.0, 1.0, 0.0],
+ "look": [4.0, -2.0, 0.0],
+ "heightAngle": 30.0
+ },
+ "groups": [
+ {
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.5, 0.5, 0.5],
+ "attenuationCoeff": [1, 0, 0]
+ }
+ ],
+ "translate": [10, 10, 10]
+ },
+ {
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.8, 0.4, 0.8],
+ "attenuationCoeff": [1, 0, 0]
+ }
+ ],
+ "translate": [-2, -2, 2]
+ },
+ {
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.8, 0.4, 0.8],
+ "attenuationCoeff": [1, 0, 0]
+ }
+ ],
+ "translate": [4, 4, 4]
+ },
+ {
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.8, 0.4, 0.8],
+ "attenuationCoeff": [1, 0, 0]
+ }
+ ],
+ "translate": [-6, -6, -6]
+ },
+ {
+ "groups": [
+ {
+ "rotate": [0, 0, 1, -45],
+ "primitives": [
+ {
+ "type": "cone",
+ "diffuse": [1.0, 1.0, 1.0],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 30.0,
+ "reflective": [0.9, 0.9, 0.9],
+ "blend": 1.0,
+ "textureFile": "textures/board.png",
+ "textureU": 2.0,
+ "textureV": 2.0
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/texture_tests/texture_cone2.json b/scenefiles/illuminate/required/texture_tests/texture_cone2.json
new file mode 100644
index 0000000..fe984b9
--- /dev/null
+++ b/scenefiles/illuminate/required/texture_tests/texture_cone2.json
@@ -0,0 +1,127 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 1
+ },
+ "cameraData": {
+ "position": [0.0, 0.0, 6.0],
+ "up": [0.0, 1.0, 0.0],
+ "focus": [0, 0, 0],
+ "heightAngle": 40.0
+ },
+ "groups": [
+ {
+ "translate": [0.0, 0.0, 4.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [1.0, 1.0, 1.0],
+ "attenuationCoeff": [1.0, 0.0, 0.0]
+ }
+ ]
+ },
+ {
+ "groups": [
+ {
+ "translate": [-1.2, 0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 0.0],
+ "primitives": [
+ {
+ "type": "cone",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [0.0, 0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 90.0],
+ "primitives": [
+ {
+ "type": "cone",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [1.2, 0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 180.0],
+ "primitives": [
+ {
+ "type": "cone",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [-1.2, -0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 270.0],
+ "primitives": [
+ {
+ "type": "cone",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [0.0, -0.6, 0.0],
+ "rotate": [1.0, 0.0, 0.0, 90.0],
+ "primitives": [
+ {
+ "type": "cone",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [1.2, -0.6, 0.0],
+ "rotate": [1.0, 0.0, 0.0, -90.0],
+ "primitives": [
+ {
+ "type": "cone",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/texture_tests/texture_cube.json b/scenefiles/illuminate/required/texture_tests/texture_cube.json
new file mode 100644
index 0000000..30ccac3
--- /dev/null
+++ b/scenefiles/illuminate/required/texture_tests/texture_cube.json
@@ -0,0 +1,67 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 1
+ },
+ "cameraData": {
+ "position": [-4.0, 3.0, 3.0],
+ "up": [0.0, 1.0, 0.0],
+ "look": [4.0, -3.0, -3.0],
+ "heightAngle": 30.0
+ },
+ "groups": [
+ {
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.5, 0.5, 0.5],
+ "attenuationCoeff": [1, 0, 0]
+ }
+ ],
+ "translate": [10, 10, 10]
+ },
+ {
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.8, 0.4, 0.8],
+ "attenuationCoeff": [1, 0, 0]
+ }
+ ],
+ "translate": [-2, -2, 2]
+ },
+ {
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.8, 0.4, 0.8],
+ "attenuationCoeff": [1, 0, 0]
+ }
+ ],
+ "translate": [4, 4, 4]
+ },
+ {
+ "groups": [
+ {
+ "translate": [0.0, 0.0, 0.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "diffuse": [1.0, 1.0, 1.0],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 30.0,
+ "reflective": [1.0, 1.0, 1.0],
+ "blend": 1.0,
+ "textureFile": "textures/board.png",
+ "textureU": 2.0,
+ "textureV": 2.0
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/texture_tests/texture_cube2.json b/scenefiles/illuminate/required/texture_tests/texture_cube2.json
new file mode 100644
index 0000000..61ae7d6
--- /dev/null
+++ b/scenefiles/illuminate/required/texture_tests/texture_cube2.json
@@ -0,0 +1,127 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 1
+ },
+ "cameraData": {
+ "position": [0.0, 0.0, 6.0],
+ "up": [0.0, 1.0, 0.0],
+ "focus": [0, 0, 0],
+ "heightAngle": 40.0
+ },
+ "groups": [
+ {
+ "lights": [
+ {
+ "type": "point",
+ "color": [1.0, 1.0, 1.0],
+ "attenuationCoeff": [1, 0, 0]
+ }
+ ],
+ "translate": [0, 0, 4]
+ },
+ {
+ "groups": [
+ {
+ "translate": [-1.2, 0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 0.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [0.0, 0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 90.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [1.2, 0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 180.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [-1.2, -0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 270.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [0.0, -0.6, 0.0],
+ "rotate": [1.0, 0.0, 0.0, 90.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [1.2, -0.6, 0.0],
+ "rotate": [1.0, 0.0, 0.0, -90.0],
+ "primitives": [
+ {
+ "type": "cube",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/texture_tests/texture_cyl.json b/scenefiles/illuminate/required/texture_tests/texture_cyl.json
new file mode 100644
index 0000000..90105e2
--- /dev/null
+++ b/scenefiles/illuminate/required/texture_tests/texture_cyl.json
@@ -0,0 +1,67 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 1
+ },
+ "cameraData": {
+ "position": [-4.0, 3.0, 3.0],
+ "up": [0.0, 1.0, 0.0],
+ "look": [4.0, -3.0, -3.0],
+ "heightAngle": 30.0
+ },
+ "groups": [
+ {
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.5, 0.5, 0.5],
+ "attenuationCoeff": [1, 0, 0]
+ }
+ ],
+ "translate": [10, 10, 10]
+ },
+ {
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.8, 0.4, 0.8],
+ "attenuationCoeff": [1, 0, 0]
+ }
+ ],
+ "translate": [-2, -2, 2]
+ },
+ {
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.8, 0.4, 0.8],
+ "attenuationCoeff": [1, 0, 0]
+ }
+ ],
+ "translate": [4, 4, 4]
+ },
+ {
+ "groups": [
+ {
+ "translate": [0.0, 0.0, 0.0],
+ "primitives": [
+ {
+ "type": "cylinder",
+ "diffuse": [1.0, 1.0, 1.0],
+ "specular": [1.0, 1.0, 1.0],
+ "shininess": 30.0,
+ "reflective": [1.0, 1.0, 1.0],
+ "blend": 1.0,
+ "textureFile": "textures/board.png",
+ "textureU": 2.0,
+ "textureV": 2.0
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/texture_tests/texture_cyl2.json b/scenefiles/illuminate/required/texture_tests/texture_cyl2.json
new file mode 100644
index 0000000..3a0bd0a
--- /dev/null
+++ b/scenefiles/illuminate/required/texture_tests/texture_cyl2.json
@@ -0,0 +1,127 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 1
+ },
+ "cameraData": {
+ "position": [0.0, 0.0, 6.0],
+ "up": [0.0, 1.0, 0.0],
+ "focus": [0, 0, 0],
+ "heightAngle": 40.0
+ },
+ "groups": [
+ {
+ "translate": [0.0, 0.0, 4.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [1.0, 1.0, 1.0],
+ "attenuationCoeff": [1.0, 0.0, 0.0]
+ }
+ ]
+ },
+ {
+ "groups": [
+ {
+ "translate": [-1.2, 0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 0.0],
+ "primitives": [
+ {
+ "type": "cylinder",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [0.0, 0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 90.0],
+ "primitives": [
+ {
+ "type": "cylinder",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [1.2, 0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 180.0],
+ "primitives": [
+ {
+ "type": "cylinder",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [-1.2, -0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 270.0],
+ "primitives": [
+ {
+ "type": "cylinder",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [0.0, -0.6, 0.0],
+ "rotate": [1.0, 0.0, 0.0, 90.0],
+ "primitives": [
+ {
+ "type": "cylinder",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [1.2, -0.6, 0.0],
+ "rotate": [1.0, 0.0, 0.0, -90.0],
+ "primitives": [
+ {
+ "type": "cylinder",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/texture_tests/texture_sphere.json b/scenefiles/illuminate/required/texture_tests/texture_sphere.json
new file mode 100644
index 0000000..213cc4e
--- /dev/null
+++ b/scenefiles/illuminate/required/texture_tests/texture_sphere.json
@@ -0,0 +1,59 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 1
+ },
+ "cameraData": {
+ "position": [-7.0, 0.0, 0.0],
+ "up": [0.0, 1.0, 0.0],
+ "focus": [0, 0, 0],
+ "heightAngle": 30.0,
+ "aperture": 0.01,
+ "focalLength": 3.0
+ },
+ "groups": [
+ {
+ "translate": [1.0, 10.0, 10.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.8, 0.1, 0.2],
+ "attenuationCoeff": [1.0, 0.0, 0.0]
+ }
+ ]
+ },
+ {
+ "translate": [1.0, -10.0, -10.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [0.1, 0.4, 0.8],
+ "attenuationCoeff": [1.0, 0.0, 0.0]
+ }
+ ]
+ },
+ {
+ "groups": [
+ {
+ "rotate": [0.0, 0.0, 1.0, -45.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],
+ "blend": 1.0,
+ "textureFile": "textures/board.png",
+ "textureU": 4.0,
+ "textureV": 4.0
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/texture_tests/texture_sphere2.json b/scenefiles/illuminate/required/texture_tests/texture_sphere2.json
new file mode 100644
index 0000000..83233e7
--- /dev/null
+++ b/scenefiles/illuminate/required/texture_tests/texture_sphere2.json
@@ -0,0 +1,127 @@
+{
+ "name": "root",
+ "globalData": {
+ "ambientCoeff": 0.5,
+ "diffuseCoeff": 0.5,
+ "specularCoeff": 0.5,
+ "transparentCoeff": 1
+ },
+ "cameraData": {
+ "position": [0.0, 0.0, 6.0],
+ "up": [0.0, 1.0, 0.0],
+ "focus": [0, 0, 0],
+ "heightAngle": 40.0
+ },
+ "groups": [
+ {
+ "translate": [0.0, 0.0, 4.0],
+ "lights": [
+ {
+ "type": "point",
+ "color": [1.0, 1.0, 1.0],
+ "attenuationCoeff": [1.0, 0.0, 0.0]
+ }
+ ]
+ },
+ {
+ "groups": [
+ {
+ "translate": [-1.2, 0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 0.0],
+ "primitives": [
+ {
+ "type": "sphere",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [0.0, 0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 90.0],
+ "primitives": [
+ {
+ "type": "sphere",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [1.2, 0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 180.0],
+ "primitives": [
+ {
+ "type": "sphere",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [-1.2, -0.6, 0.0],
+ "rotate": [0.0, 1.0, 0.0, 270.0],
+ "primitives": [
+ {
+ "type": "sphere",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [0.0, -0.6, 0.0],
+ "rotate": [1.0, 0.0, 0.0, 90.0],
+ "primitives": [
+ {
+ "type": "sphere",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ },
+ {
+ "translate": [1.2, -0.6, 0.0],
+ "rotate": [1.0, 0.0, 0.0, -90.0],
+ "primitives": [
+ {
+ "type": "sphere",
+ "ambient": [0.3, 0.0, 0.0],
+ "specular": [0.0, 0.0, 0.0],
+ "reflective": [0.0, 0.0, 0.0],
+ "blend": 1.0,
+ "textureFile": "textures/topleft.png",
+ "textureU": 1.0,
+ "textureV": 1.0
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/required/textures/andyVanDam.jpg b/scenefiles/illuminate/required/textures/andyVanDam.jpg
new file mode 100644
index 0000000..4bb0ebd
--- /dev/null
+++ b/scenefiles/illuminate/required/textures/andyVanDam.jpg
Binary files differ
diff --git a/scenefiles/illuminate/required/textures/bark.png b/scenefiles/illuminate/required/textures/bark.png
new file mode 100644
index 0000000..d771e0f
--- /dev/null
+++ b/scenefiles/illuminate/required/textures/bark.png
Binary files differ
diff --git a/scenefiles/illuminate/required/textures/board.png b/scenefiles/illuminate/required/textures/board.png
new file mode 100644
index 0000000..27278dc
--- /dev/null
+++ b/scenefiles/illuminate/required/textures/board.png
Binary files differ
diff --git a/scenefiles/illuminate/required/textures/breakfast.gif b/scenefiles/illuminate/required/textures/breakfast.gif
new file mode 100644
index 0000000..880724d
--- /dev/null
+++ b/scenefiles/illuminate/required/textures/breakfast.gif
Binary files differ
diff --git a/scenefiles/illuminate/required/textures/check.png b/scenefiles/illuminate/required/textures/check.png
new file mode 100644
index 0000000..96b2d3a
--- /dev/null
+++ b/scenefiles/illuminate/required/textures/check.png
Binary files differ
diff --git a/scenefiles/illuminate/required/textures/cheese.png b/scenefiles/illuminate/required/textures/cheese.png
new file mode 100644
index 0000000..84d78f5
--- /dev/null
+++ b/scenefiles/illuminate/required/textures/cheese.png
Binary files differ
diff --git a/scenefiles/illuminate/required/textures/earth.png b/scenefiles/illuminate/required/textures/earth.png
new file mode 100644
index 0000000..3300378
--- /dev/null
+++ b/scenefiles/illuminate/required/textures/earth.png
Binary files differ
diff --git a/scenefiles/illuminate/required/textures/liqmtl.png b/scenefiles/illuminate/required/textures/liqmtl.png
new file mode 100644
index 0000000..ea27109
--- /dev/null
+++ b/scenefiles/illuminate/required/textures/liqmtl.png
Binary files differ
diff --git a/scenefiles/illuminate/required/textures/mandril.png b/scenefiles/illuminate/required/textures/mandril.png
new file mode 100644
index 0000000..3fbe573
--- /dev/null
+++ b/scenefiles/illuminate/required/textures/mandril.png
Binary files differ
diff --git a/scenefiles/illuminate/required/textures/marsTexture.png b/scenefiles/illuminate/required/textures/marsTexture.png
new file mode 100644
index 0000000..35f842a
--- /dev/null
+++ b/scenefiles/illuminate/required/textures/marsTexture.png
Binary files differ
diff --git a/scenefiles/illuminate/required/textures/topleft.png b/scenefiles/illuminate/required/textures/topleft.png
new file mode 100644
index 0000000..6e46914
--- /dev/null
+++ b/scenefiles/illuminate/required/textures/topleft.png
Binary files differ