2
0

test_scene_nested.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. {
  2. "metadata":
  3. {
  4. "formatVersion": 3,
  5. "type" : "scene"
  6. },
  7. "urlBaseType" : "relativeToHTML",
  8. "objects":
  9. {
  10. "rootNode" : {
  11. "position" : [ 0, 0, 0 ],
  12. "rotation" : [ 0, 0, 0 ],
  13. "scale" : [ 1, 1, 1 ],
  14. "visible" : true,
  15. "properties" : {
  16. "displayName" : "root"
  17. },
  18. "children" : {
  19. "row1" : {
  20. "position" : [ 0, 0, 0 ],
  21. "rotation" : [ 0, 0, 0 ],
  22. "scale" : [ 1, 1, 1 ],
  23. "visible" : true,
  24. "properties" : {
  25. "displayName" : "row"
  26. },
  27. "children" : {
  28. "cube11" : {
  29. "geometry" : "cube",
  30. "materials": [ "lambert_green" ],
  31. "position" : [ 0, 0, 0 ],
  32. "rotation" : [ 0, 0, 0 ],
  33. "scale" : [ 1, 1, 1 ],
  34. "visible" : true,
  35. "properties" : {
  36. "displayName" : "cube"
  37. }
  38. },
  39. "cube12" : {
  40. "geometry" : "cube",
  41. "materials": [ "lambert_green" ],
  42. "position" : [ 10, 0, 0 ],
  43. "rotation" : [ 0, 0, 0 ],
  44. "scale" : [ 1, 1, 1 ],
  45. "visible" : true,
  46. "properties" : {
  47. "displayName" : "cube"
  48. }
  49. },
  50. "cube13" : {
  51. "geometry" : "cube",
  52. "materials": [ "lambert_green" ],
  53. "position" : [ 10, 10, 0 ],
  54. "rotation" : [ 0, 0, 0 ],
  55. "scale" : [ 1, 1, 1 ],
  56. "visible" : true,
  57. "properties" : {
  58. "displayName" : "cube"
  59. }
  60. },
  61. "cube14" : {
  62. "geometry" : "cube",
  63. "materials": [ "lambert_green" ],
  64. "position" : [ 0, 10, 0 ],
  65. "rotation" : [ 0, 0, 0 ],
  66. "scale" : [ 1, 1, 1 ],
  67. "visible" : true,
  68. "properties" : {
  69. "displayName" : "cube"
  70. }
  71. }
  72. }
  73. },
  74. "row2" : {
  75. "position" : [ 0, 0, 10 ],
  76. "rotation" : [ 0, 0, 0 ],
  77. "scale" : [ 1, 1, 1 ],
  78. "visible" : true,
  79. "properties" : {
  80. "displayName" : "row"
  81. },
  82. "children" : {
  83. "cube21" : {
  84. "geometry" : "cube",
  85. "materials": [ "lambert_red" ],
  86. "position" : [ 0, 0, 0 ],
  87. "rotation" : [ 0, 0, 0 ],
  88. "scale" : [ 1, 1, 1 ],
  89. "visible" : true,
  90. "properties" : {
  91. "displayName" : "cube"
  92. }
  93. },
  94. "cube22" : {
  95. "geometry" : "cube",
  96. "materials": [ "lambert_red" ],
  97. "position" : [ 10, 0, 0 ],
  98. "rotation" : [ 0, 0, 0 ],
  99. "scale" : [ 1, 1, 1 ],
  100. "visible" : true,
  101. "properties" : {
  102. "displayName" : "cube"
  103. }
  104. },
  105. "cube23" : {
  106. "geometry" : "cube",
  107. "materials": [ "lambert_red" ],
  108. "position" : [ 10, 10, 0 ],
  109. "rotation" : [ 0, 0, 0 ],
  110. "scale" : [ 1, 1, 1 ],
  111. "visible" : true,
  112. "properties" : {
  113. "displayName" : "cube"
  114. }
  115. },
  116. "cube24" : {
  117. "geometry" : "cube",
  118. "materials": [ "lambert_red" ],
  119. "position" : [ 0, 10, 0 ],
  120. "rotation" : [ 0, 0, 0 ],
  121. "scale" : [ 1, 1, 1 ],
  122. "visible" : true,
  123. "properties" : {
  124. "displayName" : "cube"
  125. }
  126. }
  127. }
  128. },
  129. "row3" : {
  130. "position" : [ 0, 0, 20 ],
  131. "rotation" : [ 0, 0, 0.4 ],
  132. "scale" : [ 1, 1, 1 ],
  133. "visible" : true,
  134. "properties" : {
  135. "displayName" : "row"
  136. },
  137. "children" : {
  138. "cube31" : {
  139. "geometry" : "cube",
  140. "materials": [ "lambert_blue" ],
  141. "position" : [ 0, 0, 0 ],
  142. "rotation" : [ 0, 0, 0 ],
  143. "scale" : [ 1, 1, 1 ],
  144. "visible" : true,
  145. "properties" : {
  146. "displayName" : "cube"
  147. }
  148. },
  149. "cube32" : {
  150. "geometry" : "cube",
  151. "materials": [ "lambert_blue" ],
  152. "position" : [ 10, 0, 0 ],
  153. "rotation" : [ 0, 0, 0 ],
  154. "scale" : [ 1, 1, 1 ],
  155. "visible" : true,
  156. "properties" : {
  157. "displayName" : "cube"
  158. }
  159. },
  160. "cube33" : {
  161. "geometry" : "cube",
  162. "materials": [ "lambert_blue" ],
  163. "position" : [ 10, 10, 0 ],
  164. "rotation" : [ 0, 0, 0 ],
  165. "scale" : [ 1, 1, 1 ],
  166. "visible" : true,
  167. "properties" : {
  168. "displayName" : "cube"
  169. }
  170. },
  171. "cube34" : {
  172. "geometry" : "cube",
  173. "materials": [ "lambert_blue" ],
  174. "position" : [ 0, 10, 0 ],
  175. "rotation" : [ 0, 0, 0 ],
  176. "scale" : [ 1, 1, 1 ],
  177. "visible" : true,
  178. "properties" : {
  179. "displayName" : "cube"
  180. }
  181. }
  182. }
  183. }
  184. }
  185. },
  186. "ground" : {
  187. "geometry" : "plane",
  188. "materials": [ "basic_gray" ],
  189. "position" : [ 0, -10, 0 ],
  190. "rotation" : [ 0, 0, 0 ],
  191. "scale" : [ 100, 100, 100 ],
  192. "visible" : true
  193. }
  194. },
  195. "geometries":
  196. {
  197. "cube": {
  198. "type" : "cube",
  199. "width" : 1,
  200. "height": 2,
  201. "depth" : 3,
  202. "segmentsWidth" : 1,
  203. "segmentsHeight" : 1,
  204. "segmentsDepth" : 1,
  205. "flipped" : false,
  206. "sides" : { "px": true, "nx": true, "py": true, "ny": true, "pz": true, "nz": true }
  207. },
  208. "plane": {
  209. "type" : "plane",
  210. "width" : 10,
  211. "height" : 10,
  212. "segmentsWidth" : 50,
  213. "segmentsHeight" : 50
  214. }
  215. },
  216. "materials":
  217. {
  218. "basic_gray": {
  219. "type": "MeshBasicMaterial",
  220. "parameters": { "color": 6710886, "wireframe": true }
  221. },
  222. "basic_white": {
  223. "type": "MeshBasicMaterial",
  224. "parameters": { "color": 16777215, "wireframe": true }
  225. },
  226. "faceted_white": {
  227. "type": "MeshLambertMaterial",
  228. "parameters": { "color": 16777215, "shading": "flat" }
  229. },
  230. "lambert_red": {
  231. "type": "MeshLambertMaterial",
  232. "parameters": { "color": 16711680 }
  233. },
  234. "lambert_green": {
  235. "type": "MeshLambertMaterial",
  236. "parameters": { "color": 30481, "blending": "AdditiveBlending", "transparent": true }
  237. },
  238. "lambert_blue": {
  239. "type": "MeshLambertMaterial",
  240. "parameters": { "color": 21930 }
  241. }
  242. },
  243. "cameras":
  244. {
  245. "cam1": {
  246. "type" : "perspective",
  247. "fov" : 50,
  248. "aspect": 1.33333,
  249. "near" : 1,
  250. "far" : 1000,
  251. "position": [0,0,100],
  252. "target" : [0,0,0]
  253. },
  254. "cam2": {
  255. "type" : "ortho",
  256. "left" : 0,
  257. "right" : 1024,
  258. "top" : 0,
  259. "bottom": 1024,
  260. "near" : 1,
  261. "far" : 1000,
  262. "position": [0,0,0],
  263. "target" : [0,0,0]
  264. }
  265. },
  266. "lights":
  267. {
  268. "light1": {
  269. "type" : "directional",
  270. "direction" : [0,1,1],
  271. "color" : 16777215,
  272. "intensity" : 0.8
  273. },
  274. "light2": {
  275. "type" : "point",
  276. "position": [0,0,0],
  277. "color" : 16777215
  278. }
  279. },
  280. "fogs":
  281. {
  282. "basic": {
  283. "type" : "linear",
  284. "color": [1,0,0],
  285. "near" : 1,
  286. "far" : 1000
  287. },
  288. "exponential": {
  289. "type" : "exp2",
  290. "color" : [1,1,1],
  291. "density" : 0.005
  292. },
  293. "black": {
  294. "type" : "exp2",
  295. "color" : [0,0,0],
  296. "density" : 0.005
  297. }
  298. },
  299. "defaults" :
  300. {
  301. "bgcolor" : [0,0,0],
  302. "bgalpha" : 1,
  303. "camera" : "cam1",
  304. "fog" : "black"
  305. }
  306. }