camera.app.json 6.0 KB

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