2
0

camera.app.json 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. {
  2. "metadata": {
  3. "type": "App"
  4. },
  5. "project": {
  6. "shadows": true,
  7. "vr": false
  8. },
  9. "camera": {
  10. "metadata": {
  11. "version": 4.3,
  12. "type": "Object",
  13. "generator": "ObjectExporter"
  14. },
  15. "object": {
  16. "uuid": "C7FB195B-270E-47B4-95C9-1754652A9D11",
  17. "type": "PerspectiveCamera",
  18. "name": "Camera",
  19. "fov": 50,
  20. "aspect": 1.2252042007001167,
  21. "near": 0.1,
  22. "far": 100000,
  23. "matrix": [0.9700406789779663,-2.851828329042405e-9,-0.24294254183769226,0,-0.04822639003396034,0.9800989627838135,-0.1925622522830963,0,0.23810774087905884,0.19850945472717285,0.950735867023468,0,154.7735595703125,129.03408813476562,617.992431640625,1]
  24. }
  25. },
  26. "scene": {
  27. "metadata": {
  28. "version": 4.3,
  29. "type": "Object",
  30. "generator": "ObjectExporter"
  31. },
  32. "geometries": [
  33. {
  34. "uuid": "51BB3E54-D2DF-4576-9953-FB8E940588B5",
  35. "type": "PlaneGeometry",
  36. "width": 1000,
  37. "height": 1000,
  38. "widthSegments": 1,
  39. "heightSegments": 1
  40. },
  41. {
  42. "uuid": "D8E200D3-27BC-49F8-A5C5-7384206E70FE",
  43. "type": "BoxGeometry",
  44. "width": 100,
  45. "height": 100,
  46. "depth": 100,
  47. "widthSegments": 1,
  48. "heightSegments": 1,
  49. "depthSegments": 1
  50. },
  51. {
  52. "uuid": "25BA32DB-8B02-4ABA-A77C-69868C464A1A",
  53. "type": "CylinderGeometry",
  54. "radiusTop": 0,
  55. "radiusBottom": 40,
  56. "height": 75,
  57. "radialSegments": 4,
  58. "heightSegments": 1,
  59. "openEnded": false
  60. },
  61. {
  62. "uuid": "4DECFAB5-6FD1-4D84-9A29-565807B074EA",
  63. "type": "IcosahedronGeometry",
  64. "radius": 40,
  65. "detail": 2
  66. }],
  67. "materials": [
  68. {
  69. "uuid": "4AE8130E-B6A8-47BC-ACCF-060973C74044",
  70. "type": "MeshPhongMaterial",
  71. "color": 16777215,
  72. "emissive": 0,
  73. "specular": 1118481,
  74. "shininess": 30
  75. },
  76. {
  77. "uuid": "B5943856-E404-45D9-A427-4774202C2CD0",
  78. "type": "MeshPhongMaterial",
  79. "color": 37119,
  80. "emissive": 0,
  81. "specular": 1118481,
  82. "shininess": 30
  83. },
  84. {
  85. "uuid": "3F872310-2067-4BE4-9250-5B3F4E43797E",
  86. "type": "MeshPhongMaterial",
  87. "color": 15859456,
  88. "emissive": 0,
  89. "specular": 1118481,
  90. "shininess": 30
  91. },
  92. {
  93. "uuid": "E1826901-7922-4584-A25D-6D487E2C9BBD",
  94. "type": "MeshPhongMaterial",
  95. "color": 16711680,
  96. "emissive": 0,
  97. "specular": 1118481,
  98. "shininess": 30
  99. }],
  100. "object": {
  101. "uuid": "3741222A-BD8F-401C-A5D2-5A907E891896",
  102. "type": "Scene",
  103. "name": "Scene",
  104. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],
  105. "children": [
  106. {
  107. "uuid": "B7CBBC6F-EC26-49B5-8D0D-67D9C535924B",
  108. "type": "Group",
  109. "name": "Dummy",
  110. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,0,100,400,1],
  111. "children": [
  112. {
  113. "uuid": "60B69C58-4201-43FD-815E-AD2EDFBBD0CE",
  114. "type": "PerspectiveCamera",
  115. "name": "PerspectiveCamera",
  116. "fov": 50,
  117. "aspect": 1,
  118. "near": 100,
  119. "far": 10000,
  120. "matrix": [-1,0,-1.2246468525851679e-16,0,0,1,0,0,1.2246468525851679e-16,0,-1,0,0,0,0,1]
  121. }]
  122. },
  123. {
  124. "uuid": "A460C230-DC88-4A8F-A3FB-AA0FE735F3ED",
  125. "type": "Mesh",
  126. "name": "Plane",
  127. "geometry": "51BB3E54-D2DF-4576-9953-FB8E940588B5",
  128. "material": "4AE8130E-B6A8-47BC-ACCF-060973C74044",
  129. "matrix": [1,0,0,0,0,0.040785226970911026,-0.9991679191589355,0,0,0.9991679191589355,0.040785226970911026,0,0,-50,0,1]
  130. },
  131. {
  132. "uuid": "26DAAD69-725D-43B7-AF9D-990A99DEF8C5",
  133. "type": "Mesh",
  134. "name": "Box",
  135. "geometry": "D8E200D3-27BC-49F8-A5C5-7384206E70FE",
  136. "material": "B5943856-E404-45D9-A427-4774202C2CD0",
  137. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]
  138. },
  139. {
  140. "uuid": "AAAFF2D6-4725-4AFC-A9FE-26419B11011F",
  141. "type": "Mesh",
  142. "name": "Cylinder",
  143. "geometry": "25BA32DB-8B02-4ABA-A77C-69868C464A1A",
  144. "material": "3F872310-2067-4BE4-9250-5B3F4E43797E",
  145. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,-130,-15,0,1]
  146. },
  147. {
  148. "uuid": "B855E267-A266-4098-ACD6-6A1FDE7B88BA",
  149. "type": "Mesh",
  150. "name": "Icosahedron",
  151. "geometry": "4DECFAB5-6FD1-4D84-9A29-565807B074EA",
  152. "material": "E1826901-7922-4584-A25D-6D487E2C9BBD",
  153. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,130,-10,0,1]
  154. },
  155. {
  156. "uuid": "E2939A7B-5E40-438A-8C1B-32126FBC6892",
  157. "type": "PointLight",
  158. "name": "PointLight 1",
  159. "color": 9474221,
  160. "intensity": 0.75,
  161. "distance": 0,
  162. "decay": 1,
  163. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,-93.86000061035156,127.12999725341797,-114.30000305175781,1]
  164. },
  165. {
  166. "uuid": "3412781E-27CC-43C3-A5DB-54C0C8E42ED6",
  167. "type": "PointLight",
  168. "name": "PointLight 2",
  169. "color": 12773063,
  170. "intensity": 1,
  171. "distance": 0,
  172. "decay": 1,
  173. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,88.12999725341797,8.3100004196167,125.44999694824219,1]
  174. }]
  175. }
  176. },
  177. "scripts": {
  178. "60B69C58-4201-43FD-815E-AD2EDFBBD0CE": [
  179. {
  180. "name": "Player Camera",
  181. "source": "player.setCamera( this );"
  182. }],
  183. "B7CBBC6F-EC26-49B5-8D0D-67D9C535924B": [
  184. {
  185. "name": "Orbit",
  186. "source": "function update( event ) {\n\n\tvar time = event.time * 0.001;\n\n\tthis.position.x = Math.sin( time ) * 400;\n\tthis.position.z = Math.cos( time ) * 400;\n\tthis.lookAt( scene.position );\n\n}"
  187. }]
  188. }
  189. }