2
0

camera.app.json 5.1 KB

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