camera.app.json 5.0 KB

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