test_scene.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803
  1. {
  2. "metadata": {
  3. "formatVersion": 3.2,
  4. "type" : "scene"
  5. },
  6. "urlBaseType" : "relativeToHTML",
  7. "objects": {
  8. "group" : {
  9. "position" : [ 0, 0, 0 ],
  10. "rotation" : [ 0, 0, 0 ],
  11. "scale" : [ 1, 1, 1 ],
  12. "visible" : true,
  13. "children" : {
  14. "cube1" : {
  15. "geometry" : "cubeNormals",
  16. "material" : "phong_red",
  17. "position" : [ 0, 0, 0 ],
  18. "rotation" : [ 0, -0.3, 0 ],
  19. "scale" : [ 1, 1, 1 ],
  20. "visible" : true,
  21. "userData" : {
  22. "rotating" : true,
  23. "rotateX" : true,
  24. "rotateY" : true
  25. }
  26. },
  27. "cube2" : {
  28. "geometry" : "cubeWire",
  29. "material" : "basic_white",
  30. "position" : [ 0, 0, 0 ],
  31. "rotation" : [ 0, -0.3, 0 ],
  32. "scale" : [ 2, 2, 2 ],
  33. "visible" : true
  34. },
  35. "cube3" : {
  36. "geometry" : "cube",
  37. "material" : "minecraft",
  38. "position" : [ -30, -5, 25 ],
  39. "rotation" : [ 0, 0.8, 0 ],
  40. "scale" : [ 1, 1, 1 ],
  41. "visible" : true
  42. },
  43. "sphere_lambert" : {
  44. "geometry" : "sphere",
  45. "material" : "lambert_green",
  46. "position" : [ -20, -5, 15 ],
  47. "rotation" : [ 0, 0, 0 ],
  48. "scale" : [ 1, 1, 1 ],
  49. "visible" : true
  50. },
  51. "sphere_refraction" : {
  52. "geometry" : "sphere",
  53. "material" : "basic_refraction",
  54. "position" : [ 50, 45, -50 ],
  55. "rotation" : [ 0, 0, 0 ],
  56. "scale" : [ 1, 1, 1 ],
  57. "visible" : true
  58. },
  59. "icosahedron" : {
  60. "geometry" : "icosahedron",
  61. "material" : "faceted_white",
  62. "position" : [ 20, 10, -60 ],
  63. "rotation" : [ 0, 0, 0 ],
  64. "scale" : [ 1, 1, 1 ],
  65. "visible" : true
  66. },
  67. "torus" : {
  68. "geometry" : "torus",
  69. "material" : "phong_orange",
  70. "position" : [ -20, 5, -50 ],
  71. "rotation" : [ 0, 0, 0 ],
  72. "scale" : [ 2, 2, 2 ],
  73. "visible" : true
  74. },
  75. "cone" : {
  76. "geometry" : "cone",
  77. "material" : "lambert_blue",
  78. "position" : [ -50, 15, -50 ],
  79. "rotation" : [ 0, 0, 0 ],
  80. "scale" : [ 1, 1, 1 ],
  81. "visible" : true
  82. },
  83. "cylinder" : {
  84. "geometry" : "cylinder",
  85. "material" : "lambert_blue",
  86. "position" : [ 50, 15, -50 ],
  87. "rotation" : [ 0, 0, 0 ],
  88. "scale" : [ 1, 1, 1 ],
  89. "visible" : true
  90. },
  91. "colorcube1" : {
  92. "geometry" : "colorcube",
  93. "material" : "face",
  94. "position" : [ -10, -5, 30 ],
  95. "rotation" : [ 0, 0, 0 ],
  96. "scale" : [ 5, 5, 5 ],
  97. "visible" : true,
  98. "children" : {
  99. "colorcube2" : {
  100. "geometry" : "colorcube",
  101. "material" : "face",
  102. "position" : [ 0, 2, 0 ],
  103. "rotation" : [ 0.1, 0.1, 0.1 ],
  104. "scale" : [ 0.5, 0.5, 0.5 ],
  105. "visible" : true,
  106. "children" : {
  107. "colorcube3" : {
  108. "geometry" : "colorcube",
  109. "material" : "face",
  110. "position" : [ 0, 2, 0 ],
  111. "rotation" : [ 0.1, 0.1, 0.1 ],
  112. "scale" : [ 0.5, 0.5, 0.5 ],
  113. "visible" : true,
  114. "children" : {
  115. "colorcube4" : {
  116. "geometry" : "colorcube",
  117. "material" : "face",
  118. "position" : [ 0, 2, 0 ],
  119. "rotation" : [ 0.1, 0.1, 0.1 ],
  120. "scale" : [ 0.5, 0.5, 0.5 ],
  121. "visible" : true
  122. }
  123. }
  124. }
  125. }
  126. }
  127. }
  128. },
  129. "veyron" : {
  130. "geometry" : "veyron",
  131. "material" : "multi_veyron",
  132. "position" : [ 40, -1, 0 ],
  133. "rotation" : [ 0, 0.3, 0 ],
  134. "scale" : [ 0.25, 0.25, 0.25 ],
  135. "visible" : true
  136. },
  137. "walt" : {
  138. "geometry" : "WaltHead",
  139. "material" : "lambert_cube",
  140. "position" : [ -75, 10, -30 ],
  141. "rotation" : [ 0, 0.5, 0 ],
  142. "scale" : [ 0.5, 0.5, 0.5 ],
  143. "visible" : true
  144. },
  145. "ben" : {
  146. "geometry" : "ben",
  147. "material" : "phong_ben",
  148. "position" : [ -45, -10, 0 ],
  149. "rotation" : [ 0, 0.5, 0 ],
  150. "scale" : [ 55, 55, 55 ],
  151. "visible" : true
  152. },
  153. "ninja" : {
  154. "geometry" : "NinjaLo",
  155. "material" : "phong_normal",
  156. "position" : [ 75, 10, -30 ],
  157. "rotation" : [ 0, -0.5, 0 ],
  158. "scale" : [ 1.25, 1.25, 1.25 ],
  159. "visible" : true
  160. },
  161. "sittingBox" : {
  162. "geometry" : "sittingBox",
  163. "material" : "phong_morph",
  164. "position" : [ -60, -10, 10 ],
  165. "rotation" : [ 0, 0.5, 0 ],
  166. "scale" : [ 23, 23, 23 ],
  167. "visible" : true,
  168. "morph" : true,
  169. "duration" : 8000,
  170. "mirroredLoop" : true
  171. },
  172. "knight" : {
  173. "geometry" : "knight",
  174. "material" : "phong_skin",
  175. "position" : [ 70, -10, 10 ],
  176. "rotation" : [ 0, 0, 0 ],
  177. "scale" : [ 2.5, 2.5, 2.5 ],
  178. "visible" : true,
  179. "skin" : true
  180. },
  181. "man" : {
  182. "type": "obj",
  183. "url" : "obj/male02/male02.obj",
  184. "material" : "phong_man",
  185. "position" : [ -10, -10, -25 ],
  186. "rotation" : [ 0, 0, 0 ],
  187. "scale" : [ 0.2, 0.2, 0.2 ],
  188. "visible" : true
  189. },
  190. "man_clone_1" : {
  191. "geometry" : "man",
  192. "material" : "multi_1",
  193. "position" : [ 2.5, -10, -25 ],
  194. "rotation" : [ 0, 0, 0 ],
  195. "scale" : [ 0.2, 0.2, 0.2 ],
  196. "visible" : true
  197. },
  198. "man_clone_2" : {
  199. "geometry" : "man",
  200. "material" : "multi_2",
  201. "position" : [ 15, -10, -25 ],
  202. "rotation" : [ 0, 0, 0 ],
  203. "scale" : [ 0.2, 0.2, 0.2 ],
  204. "visible" : true
  205. },
  206. "monster" : {
  207. "type": "dae",
  208. "url" : "models/collada/monster/monster.dae",
  209. "position" : [ -43, -10, 27 ],
  210. "rotation" : [ -1.57, 0, 0 ],
  211. "scale" : [ 0.01, 0.01, 0.01 ],
  212. "visible" : true
  213. },
  214. "hand" : {
  215. "type" : "utf8",
  216. "url" : "models/utf8/hand.js",
  217. "material" : "phong_hand",
  218. "position" : [ -28, -1, 29 ],
  219. "rotation" : [ 0, 0.5, 0 ],
  220. "scale" : [ 12, 12, 12 ],
  221. "visible" : true,
  222. "userData" : {
  223. "rotating" : true,
  224. "rotateY" : true
  225. }
  226. },
  227. "bunny" : {
  228. "geometry" : "bunny",
  229. "material" : "phong_bunny",
  230. "position" : [ -25, -14, 0 ],
  231. "rotation" : [ 0, 0, 0 ],
  232. "scale" : [ 100, 100, 100 ],
  233. "visible" : true
  234. },
  235. "disk" : {
  236. "geometry" : "disk",
  237. "material" : "phong_disk",
  238. "position" : [ 7, -10, 30 ],
  239. "rotation" : [ 1.57, 0, 0 ],
  240. "scale" : [ 10, 10, 10 ],
  241. "visible" : true
  242. },
  243. "quad_bg" : {
  244. "geometry" : "quad",
  245. "material" : "textured_bg",
  246. "position" : [ 0, 15, -90 ],
  247. "rotation" : [ 0, 0, 0 ],
  248. "scale" : [ 20, 20, 20 ],
  249. "visible" : true
  250. },
  251. "quad_texture1" : {
  252. "geometry" : "quad",
  253. "material" : "textured_compressed_dxt3",
  254. "position" : [ 15, -5, 20 ],
  255. "rotation" : [ 0, 0, 0 ],
  256. "scale" : [ 1, 1, 1 ],
  257. "visible" : true
  258. },
  259. "quad_texture2" : {
  260. "geometry" : "quad",
  261. "material" : "textured_compressed_dxt5",
  262. "position" : [ 15, -5, 25 ],
  263. "rotation" : [ 0, 0, 0 ],
  264. "scale" : [ 1, 1, 1 ],
  265. "visible" : true
  266. },
  267. "ground" : {
  268. "geometry" : "plane",
  269. "material" : "basic_gray",
  270. "position" : [ 0, -10, 0 ],
  271. "rotation" : [ -1.57, 0, 0 ],
  272. "scale" : [ 100, 100, 100 ],
  273. "visible" : true
  274. },
  275. "light1": {
  276. "type" : "DirectionalLight",
  277. "direction" : [ 0, 1, 1 ],
  278. "color" : 16777215,
  279. "intensity" : 1
  280. },
  281. "light2": {
  282. "type" : "PointLight",
  283. "position": [ 0, 0, 0 ],
  284. "color" : 16777215,
  285. "intensity" : 1.25
  286. },
  287. "camera1": {
  288. "type" : "PerspectiveCamera",
  289. "fov" : 50,
  290. "aspect": 1.33333,
  291. "near" : 1,
  292. "far" : 1000,
  293. "position": [ 0, 0, 100 ],
  294. "target" : [ 0, 0, 0 ]
  295. },
  296. "camera2": {
  297. "type" : "OrthographicCamera",
  298. "left" : 0,
  299. "right" : 1024,
  300. "top" : 0,
  301. "bottom": 1024,
  302. "near" : 1,
  303. "far" : 1000,
  304. "position": [ 0, 0, 0 ],
  305. "target" : [ 0, 0, 0 ]
  306. }
  307. }
  308. }
  309. },
  310. "geometries": {
  311. "cube": {
  312. "type" : "cube",
  313. "width" : 10,
  314. "height": 10,
  315. "depth" : 10,
  316. "widthSegments" : 1,
  317. "heightSegments" : 1,
  318. "depthSegments" : 1
  319. },
  320. "cubeNormals": {
  321. "type" : "cube",
  322. "width" : 10,
  323. "height": 10,
  324. "depth" : 10,
  325. "widthSegments" : 1,
  326. "heightSegments" : 1,
  327. "depthSegments" : 1
  328. },
  329. "cubeWire": {
  330. "type" : "cube",
  331. "width" : 10,
  332. "height": 10,
  333. "depth" : 10,
  334. "widthSegments" : 1,
  335. "heightSegments" : 1,
  336. "depthSegments" : 1
  337. },
  338. "plane": {
  339. "type" : "plane",
  340. "width" : 10,
  341. "height" : 10,
  342. "widthSegments" : 50,
  343. "heightSegments" : 50
  344. },
  345. "quad": {
  346. "type" : "plane",
  347. "width" : 10,
  348. "height" : 10,
  349. "widthSegments" : 1,
  350. "heightSegments" : 1
  351. },
  352. "sphere": {
  353. "type" : "sphere",
  354. "radius" : 5,
  355. "widthSegments" : 32,
  356. "heightSegments" : 16
  357. },
  358. "sphere_uvs": {
  359. "type" : "sphere",
  360. "radius" : 5,
  361. "widthSegments" : 32,
  362. "heightSegments" : 16
  363. },
  364. "icosahedron": {
  365. "type" : "icosahedron",
  366. "radius" : 20,
  367. "subdivisions" : 2
  368. },
  369. "torus": {
  370. "type" : "torus",
  371. "radius" : 5,
  372. "tube" : 2,
  373. "segmentsR" : 16,
  374. "segmentsT" : 32
  375. },
  376. "cylinder": {
  377. "type" : "cylinder",
  378. "topRad" : 5,
  379. "botRad" : 5,
  380. "height" : 50,
  381. "radSegs" : 32,
  382. "heightSegs": 1
  383. },
  384. "cone": {
  385. "type" : "cylinder",
  386. "topRad" : 0,
  387. "botRad" : 5,
  388. "height" : 50,
  389. "radSegs" : 32,
  390. "heightSegs" : 1
  391. },
  392. "WaltHead": {
  393. "type": "binary",
  394. "url" : "obj/walt/WaltHead_bin.js"
  395. },
  396. "NinjaLo": {
  397. "type": "binary",
  398. "url" : "obj/ninja/NinjaLo_bin.js"
  399. },
  400. "veyron": {
  401. "type": "binary",
  402. "url" : "obj/veyron/VeyronNoUv_bin.js"
  403. },
  404. "sittingBox": {
  405. "type": "ascii",
  406. "url" : "models/animated/sittingBox.js"
  407. },
  408. "knight": {
  409. "type": "ascii",
  410. "url" : "models/skinned/knight.js"
  411. },
  412. "man": {
  413. "type": "binary",
  414. "url" : "obj/male02/Male02_bin.js"
  415. },
  416. "ben": {
  417. "type": "ctm",
  418. "url" : "models/ctm/ben.ctm",
  419. "useWorkers" : true
  420. },
  421. "bunny": {
  422. "type": "vtk",
  423. "url" : "models/vtk/bunny.vtk"
  424. },
  425. "disk": {
  426. "type": "stl",
  427. "url" : "models/stl/ascii/slotted_disk.stl"
  428. },
  429. "colorcube": {
  430. "type": "embedded",
  431. "id" : "cube_fvc"
  432. }
  433. },
  434. "embeds": {
  435. "cube_fvc": {
  436. "metadata" : {
  437. "formatVersion" : 3
  438. },
  439. "scale" : 1.0,
  440. "materials": [{
  441. "DbgColor" : 15658734,
  442. "DbgIndex" : 0,
  443. "DbgName" : "Material",
  444. "colorDiffuse" : [0.8, 0.8, 0.8],
  445. "colorSpecular" : [0.5, 0.5, 0.5],
  446. "specularCoef" : 50,
  447. "opacity" : 1.0,
  448. "vertexColors" : true
  449. }],
  450. "vertices": [1.000000,-1.000000,-1.000000,1.000000,-1.000000,1.000000,-1.000000,-1.000000,1.000000,-1.000000,-1.000000,-1.000000,1.000000,1.000000,-1.000000,0.999999,1.000000,1.000001,-1.000000,1.000000,1.000000,-1.000000,1.000000,-1.000000],
  451. "morphTargets": [],
  452. "normals": [],
  453. "colors": [16777215,16769421,16769424,8454135,15195931,7299839,16586715,16711687,1056014,6029475,13762484,9044089,7962349,6772991,16774622,4144383,11973887,1966063,1056285,9081232,13696943,5002581],
  454. "uvs": [[]],
  455. "faces": [131,0,1,2,3,0,0,1,2,3,131,4,7,6,5,0,4,5,6,7,131,0,4,5,1,0,0,8,9,10,131,1,5,6,2,0,0,11,12,13,131,2,6,7,3,0,14,15,16,17,131,4,0,3,7,0,18,19,20,21]
  456. }
  457. },
  458. "materials": {
  459. "basic_gray": {
  460. "type": "MeshBasicMaterial",
  461. "parameters": { "color": 6710886, "wireframe": true }
  462. },
  463. "basic_white": {
  464. "type": "MeshBasicMaterial",
  465. "parameters": { "color": 16777215, "wireframe": true }
  466. },
  467. "faceted_white": {
  468. "type": "MeshLambertMaterial",
  469. "parameters": { "color": 16777215, "shading": "flat" }
  470. },
  471. "phong_red": {
  472. "type": "MeshPhongMaterial",
  473. "parameters": { "color": 16711680, "specular": 16711680, "shininess": 25, "bumpMap": "texture_bump", "bumpScale": -0.75 }
  474. },
  475. "phong_ben": {
  476. "type": "MeshPhongMaterial",
  477. "parameters": { "color": 1118481, "specular": 5601245, "shininess": 12, "bumpMap": "texture_bump_repeat", "bumpScale": 0.125 }
  478. },
  479. "phong_man": {
  480. "type": "MeshPhongMaterial",
  481. "parameters": { "color": 16737894, "specular": 2236962, "shininess": 40 }
  482. },
  483. "phong_hand": {
  484. "type": "MeshPhongMaterial",
  485. "parameters": { "color": 14531481, "specular": 2236962, "shininess": 40 }
  486. },
  487. "phong_bunny": {
  488. "type": "MeshPhongMaterial",
  489. "parameters": { "color": 16777215, "specular": 1118481, "shininess": 10 }
  490. },
  491. "phong_monster": {
  492. "type": "MeshPhongMaterial",
  493. "parameters": { "color": 16777215, "specular": 1118481, "shininess": 10 }
  494. },
  495. "phong_disk": {
  496. "type": "MeshPhongMaterial",
  497. "parameters": { "color": 16733491, "specular": 1118481, "shininess": 30, "wireframe": false }
  498. },
  499. "phong_normal": {
  500. "type": "MeshPhongMaterial",
  501. "parameters": { "color": 0, "specular": 16777215, "shininess": 25, "envMap": "cube_reflection", "reflectivity": 0.1, "lightMap": "texture_ao", "normalMap": "texture_normal", "normalScale": [ 1, -1 ] }
  502. },
  503. "phong_morph": {
  504. "type": "MeshPhongMaterial",
  505. "parameters": { "color": 0, "specular": 16777215, "shininess": 50, "envMap": "cube_reflection", "reflectivity": 0.125, "combine": "MixOperation", "shading": "flat", "side": "double", "morphTargets": true }
  506. },
  507. "phong_skin": {
  508. "type": "MeshPhongMaterial",
  509. "parameters": { "color": 0, "specular": 16777215, "shininess": 50, "envMap": "cube_reflection", "reflectivity": 0.5, "combine": "MixOperation", "skinning": true, "morphTargets": true }
  510. },
  511. "lambert_green": {
  512. "type": "MeshLambertMaterial",
  513. "parameters": { "color": 30481, "blending": "AdditiveBlending", "transparent": true }
  514. },
  515. "lambert_blue": {
  516. "type": "MeshLambertMaterial",
  517. "parameters": { "color": 21930 }
  518. },
  519. "phong_orange": {
  520. "type": "MeshPhongMaterial",
  521. "parameters": { "color": 0, "specular": 11162880 }
  522. },
  523. "basic_refraction": {
  524. "type": "MeshBasicMaterial",
  525. "parameters": { "color": 16777215, "envMap": "cube_refraction", "refractionRatio": 0.95 }
  526. },
  527. "lambert_cube": {
  528. "type": "MeshLambertMaterial",
  529. "parameters": { "color": 16737792, "envMap": "cube_reflection", "combine": "MixOperation", "reflectivity": 0.3 }
  530. },
  531. "chrome": {
  532. "type": "MeshLambertMaterial",
  533. "parameters": { "color": 16777215, "envMap": "cube_reflection" }
  534. },
  535. "darkerchrome": {
  536. "type": "MeshLambertMaterial",
  537. "parameters": { "color": 2236962, "envMap": "cube_reflection" }
  538. },
  539. "glass": {
  540. "type": "MeshLambertMaterial",
  541. "parameters": { "color": 1052742, "envMap": "cube_reflection", "opacity": 0.25, "transparent": true }
  542. },
  543. "interior": {
  544. "type": "MeshLambertMaterial",
  545. "parameters": { "color": 328965 }
  546. },
  547. "backlights": {
  548. "type": "MeshLambertMaterial",
  549. "parameters": { "color": 16711680, "opacity": 0.5 }
  550. },
  551. "backsignals": {
  552. "type": "MeshLambertMaterial",
  553. "parameters": { "color": 16759552, "opacity": 0.5 }
  554. },
  555. "textured_bg": {
  556. "type": "MeshBasicMaterial",
  557. "parameters": { "color": 16777215, "map": "texture_bg" }
  558. },
  559. "textured_compressed_dxt3": {
  560. "type": "MeshBasicMaterial",
  561. "parameters": { "color": 16777215, "map": "texture_compressed_dxt3", "transparent": true }
  562. },
  563. "textured_compressed_dxt5": {
  564. "type": "MeshBasicMaterial",
  565. "parameters": { "color": 16777215, "map": "texture_compressed_dxt5", "transparent": true, "blending": "AdditiveBlending" }
  566. },
  567. "minecraft": {
  568. "type": "MeshBasicMaterial",
  569. "parameters": { "color": 16777215, "map": "texture_minecraft" }
  570. },
  571. "face": {
  572. "type": "MultiMaterial",
  573. "parameters": {}
  574. },
  575. "multi_1": {
  576. "type": "MultiMaterial",
  577. "parameters": {}
  578. },
  579. "multi_2": {
  580. "type": "MultiMaterial",
  581. "parameters": { "materials": [ "basic_refraction", "phong_man", "phong_hand", "minecraft", "backsignals" ] }
  582. },
  583. "multi_veyron": {
  584. "type": "MultiMaterial",
  585. "parameters": { "materials": [ "interior", "chrome", "darkerchrome", "glass", "chrome", "chrome", "backlights", "backsignals" ] }
  586. }
  587. },
  588. "textures": {
  589. "cube_reflection": {
  590. "url": [
  591. "textures/cube/SwedishRoyalCastle/px.jpg",
  592. "textures/cube/SwedishRoyalCastle/nx.jpg",
  593. "textures/cube/SwedishRoyalCastle/py.jpg",
  594. "textures/cube/SwedishRoyalCastle/ny.jpg",
  595. "textures/cube/SwedishRoyalCastle/pz.jpg",
  596. "textures/cube/SwedishRoyalCastle/nz.jpg"
  597. ]
  598. },
  599. "cube_refraction": {
  600. "url": [
  601. "textures/cube/SwedishRoyalCastle/px.jpg",
  602. "textures/cube/SwedishRoyalCastle/nx.jpg",
  603. "textures/cube/SwedishRoyalCastle/py.jpg",
  604. "textures/cube/SwedishRoyalCastle/ny.jpg",
  605. "textures/cube/SwedishRoyalCastle/nz.jpg",
  606. "textures/cube/SwedishRoyalCastle/pz.jpg"
  607. ],
  608. "mapping": "CubeRefractionMapping"
  609. },
  610. "texture_bg": {
  611. "url": "textures/cube/SwedishRoyalCastle/pz.jpg",
  612. "anisotropy": 4
  613. },
  614. "texture_compressed_dxt3": {
  615. "url": "textures/compressed/hepatica_dxt3_mip.dds",
  616. "anisotropy": 4
  617. },
  618. "texture_compressed_dxt5": {
  619. "url": "textures/compressed/explosion_dxt5_mip.dds",
  620. "anisotropy": 4
  621. },
  622. "texture_bump": {
  623. "url": "textures/water.jpg",
  624. "anisotropy": 4
  625. },
  626. "texture_bump_repeat": {
  627. "url": "textures/water.jpg",
  628. "repeat" : [ 20, 20 ],
  629. "anisotropy": 4
  630. },
  631. "texture_bump_repeat_2": {
  632. "url": "textures/water.jpg",
  633. "repeat" : [ 4, 2 ],
  634. "anisotropy": 4
  635. },
  636. "texture_normal": {
  637. "url": "textures/normal/ninja/normal.jpg",
  638. "anisotropy": 4
  639. },
  640. "texture_ao": {
  641. "url": "textures/normal/ninja/ao.jpg",
  642. "anisotropy": 4
  643. },
  644. "texture_displacement": {
  645. "url": "textures/normal/ninja/displacement.jpg",
  646. "anisotropy": 4
  647. },
  648. "texture_minecraft": {
  649. "url": "textures/minecraft/grass.png",
  650. "magFilter": "NearestFilter",
  651. "minFilter": "LinearMipMapLinearFilter"
  652. }
  653. },
  654. "fogs": {
  655. "basic": {
  656. "type": "linear",
  657. "color": [1,0,0],
  658. "near": 1,
  659. "far": 1000
  660. },
  661. "exponential": {
  662. "type": "exp2",
  663. "color": [1,1,1],
  664. "density": 0.005
  665. },
  666. "black": {
  667. "type": "exp2",
  668. "color": [0,0,0],
  669. "density": 0.005
  670. }
  671. },
  672. "defaults": {
  673. "bgcolor": [0,0,0],
  674. "bgalpha": 1,
  675. "camera": "camera1",
  676. "fog": "black"
  677. }
  678. }