test_scene.js 18 KB

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