1
0

camera.app.json 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. {
  2. "metadata": {
  3. "type": "App"
  4. },
  5. "project": {
  6. "shadows": true,
  7. "vr": false
  8. },
  9. "camera": {
  10. "metadata": {
  11. "version": 4.5,
  12. "type": "Object",
  13. "generator": "Object3D.toJSON"
  14. },
  15. "object": {
  16. "uuid": "60EBAF60-53DA-47B0-A028-8FC031B708F6",
  17. "type": "PerspectiveCamera",
  18. "name": "Camera",
  19. "layers": 1,
  20. "matrix": [0.970041,0,-0.242943,0,-0.048226,0.980099,-0.192562,0,0.238108,0.198509,0.950736,0,1.548,1.29,6.18,1],
  21. "fov": 50,
  22. "zoom": 1,
  23. "near": 0.1,
  24. "far": 100000,
  25. "focus": 10,
  26. "aspect": 1.428977,
  27. "filmGauge": 35,
  28. "filmOffset": 0
  29. }
  30. },
  31. "scene": {
  32. "metadata": {
  33. "version": 4.5,
  34. "type": "Object",
  35. "generator": "Object3D.toJSON"
  36. },
  37. "geometries": [
  38. {
  39. "uuid": "6D90C4BE-EBA6-4E21-8F54-7CFDAA61F30B",
  40. "type": "PlaneGeometry",
  41. "width": 10,
  42. "height": 10,
  43. "widthSegments": 1,
  44. "heightSegments": 1
  45. },
  46. {
  47. "uuid": "D3008B2A-ACDD-43CC-87F7-4F942607D21A",
  48. "type": "BoxGeometry",
  49. "width": 1,
  50. "height": 1,
  51. "depth": 1,
  52. "widthSegments": 1,
  53. "heightSegments": 1,
  54. "depthSegments": 1
  55. },
  56. {
  57. "uuid": "F482ACD4-013A-49CF-AE0F-C9FF4ADAE409",
  58. "type": "CylinderGeometry",
  59. "radiusTop": 0,
  60. "radiusBottom": 0.4,
  61. "height": 0.75,
  62. "radialSegments": 4,
  63. "heightSegments": 1,
  64. "openEnded": false
  65. },
  66. {
  67. "uuid": "51CDDCED-BC71-4B1B-A485-725B6A48204B",
  68. "type": "IcosahedronGeometry",
  69. "radius": 0.4,
  70. "detail": 2
  71. }],
  72. "materials": [
  73. {
  74. "uuid": "4AE8130E-B6A8-47BC-ACCF-060973C74044",
  75. "type": "MeshPhongMaterial",
  76. "color": 16777215,
  77. "emissive": 0,
  78. "specular": 1118481,
  79. "shininess": 30,
  80. "depthFunc": 3,
  81. "depthTest": true,
  82. "depthWrite": true
  83. },
  84. {
  85. "uuid": "B5943856-E404-45D9-A427-4774202C2CD0",
  86. "type": "MeshPhongMaterial",
  87. "color": 37119,
  88. "emissive": 0,
  89. "specular": 1118481,
  90. "shininess": 30,
  91. "depthFunc": 3,
  92. "depthTest": true,
  93. "depthWrite": true
  94. },
  95. {
  96. "uuid": "3F872310-2067-4BE4-9250-5B3F4E43797E",
  97. "type": "MeshPhongMaterial",
  98. "color": 15859456,
  99. "emissive": 0,
  100. "specular": 1118481,
  101. "shininess": 30,
  102. "depthFunc": 3,
  103. "depthTest": true,
  104. "depthWrite": true
  105. },
  106. {
  107. "uuid": "E1826901-7922-4584-A25D-6D487E2C9BBD",
  108. "type": "MeshPhongMaterial",
  109. "color": 16711680,
  110. "emissive": 0,
  111. "specular": 1118481,
  112. "shininess": 30,
  113. "depthFunc": 3,
  114. "depthTest": true,
  115. "depthWrite": true
  116. }],
  117. "object": {
  118. "uuid": "3741222A-BD8F-401C-A5D2-5A907E891896",
  119. "type": "Scene",
  120. "name": "Scene",
  121. "layers": 1,
  122. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],
  123. "children": [
  124. {
  125. "uuid": "B7CBBC6F-EC26-49B5-8D0D-67D9C535924B",
  126. "type": "Group",
  127. "name": "Dummy",
  128. "layers": 1,
  129. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,0,1,4,1],
  130. "children": [
  131. {
  132. "uuid": "60B69C58-4201-43FD-815E-AD2EDFBBD0CE",
  133. "type": "PerspectiveCamera",
  134. "name": "PerspectiveCamera",
  135. "layers": 1,
  136. "matrix": [-1,0,0,0,0,1,0,0,0,0,-1,0,0,0,0,1],
  137. "fov": 50,
  138. "zoom": 1,
  139. "near": 0.1,
  140. "far": 100,
  141. "focus": 10,
  142. "aspect": 1,
  143. "filmGauge": 35,
  144. "filmOffset": 0
  145. }]
  146. },
  147. {
  148. "uuid": "A460C230-DC88-4A8F-A3FB-AA0FE735F3ED",
  149. "type": "Mesh",
  150. "name": "Plane",
  151. "layers": 1,
  152. "matrix": [1,0,0,0,0,0.040785,-0.999168,0,0,0.999168,0.040785,0,0,-0.5,0,1],
  153. "geometry": "6D90C4BE-EBA6-4E21-8F54-7CFDAA61F30B",
  154. "material": "4AE8130E-B6A8-47BC-ACCF-060973C74044"
  155. },
  156. {
  157. "uuid": "26DAAD69-725D-43B7-AF9D-990A99DEF8C5",
  158. "type": "Mesh",
  159. "name": "Box",
  160. "layers": 1,
  161. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],
  162. "geometry": "D3008B2A-ACDD-43CC-87F7-4F942607D21A",
  163. "material": "B5943856-E404-45D9-A427-4774202C2CD0"
  164. },
  165. {
  166. "uuid": "AAAFF2D6-4725-4AFC-A9FE-26419B11011F",
  167. "type": "Mesh",
  168. "name": "Cylinder",
  169. "layers": 1,
  170. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,-1.3,-0.15,0,1],
  171. "geometry": "F482ACD4-013A-49CF-AE0F-C9FF4ADAE409",
  172. "material": "3F872310-2067-4BE4-9250-5B3F4E43797E"
  173. },
  174. {
  175. "uuid": "B855E267-A266-4098-ACD6-6A1FDE7B88BA",
  176. "type": "Mesh",
  177. "name": "Icosahedron",
  178. "layers": 1,
  179. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,1.3,-0.1,0,1],
  180. "geometry": "51CDDCED-BC71-4B1B-A485-725B6A48204B",
  181. "material": "E1826901-7922-4584-A25D-6D487E2C9BBD"
  182. },
  183. {
  184. "uuid": "E2939A7B-5E40-438A-8C1B-32126FBC6892",
  185. "type": "PointLight",
  186. "name": "PointLight 1",
  187. "layers": 1,
  188. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,-0.939,1.271,-1.143,1],
  189. "color": 9474221,
  190. "intensity": 0.75,
  191. "distance": 0,
  192. "decay": 1,
  193. "shadow": {
  194. "camera": {
  195. "uuid": "EFF42F46-1E27-4B36-B9D9-CF7D879D258E",
  196. "type": "PerspectiveCamera",
  197. "layers": 1,
  198. "fov": 90,
  199. "zoom": 1,
  200. "near": 0.5,
  201. "far": 500,
  202. "focus": 10,
  203. "aspect": 1,
  204. "filmGauge": 35,
  205. "filmOffset": 0
  206. }
  207. }
  208. },
  209. {
  210. "uuid": "3412781E-27CC-43C3-A5DB-54C0C8E42ED6",
  211. "type": "PointLight",
  212. "name": "PointLight 2",
  213. "layers": 1,
  214. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,0.881,0.083,1.254,1],
  215. "color": 12773063,
  216. "intensity": 1,
  217. "distance": 0,
  218. "decay": 1,
  219. "shadow": {
  220. "camera": {
  221. "uuid": "81E800FE-E8A7-4A9E-AFAA-4F04FD56AFE4",
  222. "type": "PerspectiveCamera",
  223. "layers": 1,
  224. "fov": 90,
  225. "zoom": 1,
  226. "near": 0.5,
  227. "far": 500,
  228. "focus": 10,
  229. "aspect": 1,
  230. "filmGauge": 35,
  231. "filmOffset": 0
  232. }
  233. }
  234. }],
  235. "background": 11184810
  236. }
  237. },
  238. "scripts": {
  239. "60B69C58-4201-43FD-815E-AD2EDFBBD0CE": [
  240. {
  241. "name": "Player Camera",
  242. "source": "player.setCamera( this );"
  243. }],
  244. "B7CBBC6F-EC26-49B5-8D0D-67D9C535924B": [
  245. {
  246. "name": "Orbit",
  247. "source": "function update( event ) {\n\n\tvar time = event.time * 0.001;\n\n\tthis.position.x = Math.sin( time ) * 4;\n\tthis.position.z = Math.cos( time ) * 4;\n\tthis.lookAt( scene.position );\n\n}"
  248. }]
  249. }
  250. }