camera.app.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. {
  2. "camera": {
  3. "metadata": {
  4. "version": 4.3,
  5. "type": "Object",
  6. "generator": "ObjectExporter"
  7. },
  8. "object": {
  9. "uuid": "F0D8434F-4603-415B-8024-792FE97B9600",
  10. "type": "PerspectiveCamera",
  11. "name": "Camera",
  12. "fov": 50,
  13. "aspect": 1.2252042007001167,
  14. "near": 0.1,
  15. "far": 100000,
  16. "matrix": [0.9700406789779663,-5.500052080442686e-10,-0.24294254183769226,0,-0.04822639003396034,0.9800989627838135,-0.19256223738193512,0,0.23810774087905884,0.19850945472717285,0.950735867023468,0,159.0158233642578,132.5708465576172,634.9312744140625,1]
  17. }
  18. },
  19. "scene": {
  20. "metadata": {
  21. "version": 4.3,
  22. "type": "Object",
  23. "generator": "ObjectExporter"
  24. },
  25. "geometries": [
  26. {
  27. "uuid": "D8E200D3-27BC-49F8-A5C5-7384206E70FE",
  28. "type": "BoxGeometry",
  29. "width": 100,
  30. "height": 100,
  31. "depth": 100,
  32. "widthSegments": 1,
  33. "heightSegments": 1,
  34. "depthSegments": 1
  35. },
  36. {
  37. "uuid": "25BA32DB-8B02-4ABA-A77C-69868C464A1A",
  38. "type": "CylinderGeometry",
  39. "radiusTop": 0,
  40. "radiusBottom": 40,
  41. "height": 75,
  42. "radialSegments": 4,
  43. "heightSegments": 1,
  44. "openEnded": false
  45. },
  46. {
  47. "uuid": "51BB3E54-D2DF-4576-9953-FB8E940588B5",
  48. "type": "PlaneGeometry",
  49. "width": 1000,
  50. "height": 1000,
  51. "widthSegments": 1,
  52. "heightSegments": 1
  53. },
  54. {
  55. "uuid": "4DECFAB5-6FD1-4D84-9A29-565807B074EA",
  56. "type": "IcosahedronGeometry",
  57. "radius": 40,
  58. "detail": 2
  59. }],
  60. "materials": [
  61. {
  62. "uuid": "B5943856-E404-45D9-A427-4774202C2CD0",
  63. "type": "MeshPhongMaterial",
  64. "color": 37119,
  65. "emissive": 0,
  66. "specular": 1118481,
  67. "shininess": 30
  68. },
  69. {
  70. "uuid": "3F872310-2067-4BE4-9250-5B3F4E43797E",
  71. "type": "MeshPhongMaterial",
  72. "color": 15859456,
  73. "emissive": 0,
  74. "specular": 1118481,
  75. "shininess": 30
  76. },
  77. {
  78. "uuid": "4AE8130E-B6A8-47BC-ACCF-060973C74044",
  79. "type": "MeshPhongMaterial",
  80. "color": 16777215,
  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": "60B69C58-4201-43FD-815E-AD2EDFBBD0CE",
  101. "type": "PerspectiveCamera",
  102. "name": "PerspectiveCamera 1",
  103. "fov": 50,
  104. "aspect": 1,
  105. "near": 100,
  106. "far": 10000,
  107. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,0,100,400,1]
  108. },
  109. {
  110. "uuid": "26DAAD69-725D-43B7-AF9D-990A99DEF8C5",
  111. "type": "Mesh",
  112. "name": "Box 1",
  113. "geometry": "D8E200D3-27BC-49F8-A5C5-7384206E70FE",
  114. "material": "B5943856-E404-45D9-A427-4774202C2CD0",
  115. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]
  116. },
  117. {
  118. "uuid": "AAAFF2D6-4725-4AFC-A9FE-26419B11011F",
  119. "type": "Mesh",
  120. "name": "Cylinder 3",
  121. "geometry": "25BA32DB-8B02-4ABA-A77C-69868C464A1A",
  122. "material": "3F872310-2067-4BE4-9250-5B3F4E43797E",
  123. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,-130,-15,0,1]
  124. },
  125. {
  126. "uuid": "A460C230-DC88-4A8F-A3FB-AA0FE735F3ED",
  127. "type": "Mesh",
  128. "name": "Plane 4",
  129. "geometry": "51BB3E54-D2DF-4576-9953-FB8E940588B5",
  130. "material": "4AE8130E-B6A8-47BC-ACCF-060973C74044",
  131. "matrix": [1,0,0,0,0,0.040785059332847595,-0.9991679191589355,0,0,0.9991679191589355,0.040785059332847595,0,0,-50,0,1]
  132. },
  133. {
  134. "uuid": "3412781E-27CC-43C3-A5DB-54C0C8E42ED6",
  135. "type": "PointLight",
  136. "name": "PointLight 2",
  137. "color": 12773063,
  138. "intensity": 1,
  139. "distance": 0,
  140. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,88.12999725341797,8.3100004196167,125.44999694824219,1]
  141. },
  142. {
  143. "uuid": "E2939A7B-5E40-438A-8C1B-32126FBC6892",
  144. "type": "PointLight",
  145. "name": "PointLight 1",
  146. "color": 9474221,
  147. "intensity": 0.75,
  148. "distance": 0,
  149. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,-93.86000061035156,127.12999725341797,-114.30000305175781,1]
  150. },
  151. {
  152. "uuid": "B855E267-A266-4098-ACD6-6A1FDE7B88BA",
  153. "type": "Mesh",
  154. "name": "Icosahedron 1",
  155. "geometry": "4DECFAB5-6FD1-4D84-9A29-565807B074EA",
  156. "material": "E1826901-7922-4584-A25D-6D487E2C9BBD",
  157. "matrix": [1,0,0,0,0,1,0,0,0,0,1,0,130,-10,0,1]
  158. }]
  159. }
  160. },
  161. "scripts": {
  162. "60B69C58-4201-43FD-815E-AD2EDFBBD0CE": [
  163. {
  164. "name": "Camera Orbit",
  165. "source": "player.setCamera( this );\n\nfunction 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}"
  166. }]
  167. }
  168. }