diff --git a/examples/models/json/scene-animation.json b/examples/models/json/scene-animation.json index dac46cb1d240d6140cb0fea252d5630800d96f94..9ed68db77bf17cf953bd4755ed0567eb495c6c7b 100644 --- a/examples/models/json/scene-animation.json +++ b/examples/models/json/scene-animation.json @@ -16,8 +16,6 @@ "visible": true, "type": "Mesh", "material": "541CFE3C-B1BD-37FD-8A82-3870870BB8A8", - "castShadow": true, - "receiveShadow": true, "geometry": "CAEC0410-6CA0-3646-AF22-DE6D5D34C387" },{ "name": "cylinder002", @@ -26,8 +24,6 @@ "visible": true, "type": "Mesh", "material": "3701AB15-0042-3531-BDFA-EB0FA575D7D5", - "castShadow": true, - "receiveShadow": true, "geometry": "0AF705E6-E495-351F-944E-8E96CEB82A7B" },{ "name": "cylinder003", @@ -36,28 +32,36 @@ "visible": true, "type": "Mesh", "material": "D95A0291-848F-32DE-B7CF-F93015785600", - "castShadow": true, - "receiveShadow": true, "geometry": "84174F78-6B50-3C0D-A3D3-D1203D616F79" }] + },{ + "name": "ambientlight", + "uuid": "217f2d71-80f0-44cd-9d97-43e5611050a3", + "type": "AmbientLight", + "color": 5592405 },{ "name": "pointlight", "uuid": "FCC1C4DA-037A-33FF-97AE-339CD1CB618C", "matrix": [-1,0,0,0,0,1,-0,0,0,-0,-1,0,-22.1326,52.6576,-28.8763,1], - "visible": true, "type": "PointLight", "color": 16777215, - "intensity": 1, - "distance": 0 + "intensity": 1 },{ "name": "pointlight1", "uuid": "D9440A28-5F71-3A2A-94B3-954420962156", "matrix": [-1,0,0,0,0,1,-0,0,0,-0,-1,0,18.3723,34.5427,79.0829,1], - "visible": true, "type": "PointLight", "color": 16777215, - "intensity": 1, - "distance": 0 + "intensity": 1 + },{ + "name": "camera", + "uuid": "e2b22508-5e7c-4609-8505-d781754ba105", + "matrix": [0.70711, 0, 0.70711, 0, 0, 1, 0, 0, -0.70711, 0, 0.70711, 0, -200, 0, 200, 1], + "type": "PerspectiveCamera", + "fov": 30, + "aspect": 1.77778, + "near": 1, + "far": 10000 }] }, "images": [], diff --git a/examples/webgl_animation_scene.html b/examples/webgl_animation_scene.html index b0a366d16ab16e337e52b76d5e89989c4370234c..8d37e327e0e98788cd84a40e32c616ecbef0237f 100644 --- a/examples/webgl_animation_scene.html +++ b/examples/webgl_animation_scene.html @@ -33,156 +33,124 @@
- three.js webgl - scene animation - Three Gears Scene courtesy of David Sarno
+ three.js webgl - scene animation - Three Gears Scene courtesy of David Sarno +

camera orbit/zoom/pan with left/middle/right mouse button +