aboutsummaryrefslogtreecommitdiff
path: root/scenefiles/illuminate/optional/texture_tests
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/optional/texture_tests
parenta9274459443f1d560d7580a162deb581549980cb (diff)
upload base code
Diffstat (limited to 'scenefiles/illuminate/optional/texture_tests')
-rw-r--r--scenefiles/illuminate/optional/texture_tests/directional_light_textured.json122
-rw-r--r--scenefiles/illuminate/optional/texture_tests/texture_cyl3.json67
2 files changed, 189 insertions, 0 deletions
diff --git a/scenefiles/illuminate/optional/texture_tests/directional_light_textured.json b/scenefiles/illuminate/optional/texture_tests/directional_light_textured.json
new file mode 100644
index 0000000..385dece
--- /dev/null
+++ b/scenefiles/illuminate/optional/texture_tests/directional_light_textured.json
@@ -0,0 +1,122 @@
+{
+ "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": [
+ {
+ "lights": [
+ {
+ "type": "directional",
+ "color": [0.5, 0.5, 0.5],
+ "direction": [0.0, -1.0, 0.0]
+ }
+ ]
+ },
+ {
+ "lights": [
+ {
+ "type": "directional",
+ "color": [0.5, 0.5, 0.5],
+ "direction": [0.0, -1.0, -1.0]
+ }
+ ]
+ },
+ {
+ "lights": [
+ {
+ "type": "directional",
+ "color": [0.5, 0.5, 0.5],
+ "direction": [0.0, -1.0, 1.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,
+ "blend": 1.0,
+ "textureFile": "textures/breakfast.gif",
+ "textureU": 2.0,
+ "textureV": 2.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,
+ "blend": 1.0,
+ "textureFile": "textures/mandril.png",
+ "textureU": 2.0,
+ "textureV": 2.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,
+ "blend": 1.0,
+ "textureFile": "textures/earth.png",
+ "textureU": 2.0,
+ "textureV": 2.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,
+ "blend": 1.0,
+ "textureFile": "textures/cheese.png",
+ "textureU": 2.0,
+ "textureV": 2.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],
+ "blend": 1.0,
+ "textureFile": "textures/bark.png",
+ "textureU": 2.0,
+ "textureV": 2.0
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/scenefiles/illuminate/optional/texture_tests/texture_cyl3.json b/scenefiles/illuminate/optional/texture_tests/texture_cyl3.json
new file mode 100644
index 0000000..9361f37
--- /dev/null
+++ b/scenefiles/illuminate/optional/texture_tests/texture_cyl3.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/mandril.png",
+ "textureU": 2.0,
+ "textureV": 2.0
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}