index.vwf.json 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. {
  2. "extends": "proxy/aframe/ascene.vwf",
  3. "properties": {
  4. "transparent": true
  5. },
  6. "methods": {
  7. "initialize": {
  8. "body": " console.log(\"initializing...\");\n this.children.multicam.camera1.createCamera(3000, 2000, 0, 0, 1500, 2000);\n this.children.multicam.camera2.createCamera(3000, 2000, 1500, 0, 1500, 2000);\n",
  9. "type": "application/javascript"
  10. }
  11. },
  12. "children": {
  13. "assetSky": {
  14. "extends": "proxy/aframe/a-asset-image-item.vwf",
  15. "properties": {
  16. "itemID": "sky",
  17. "itemSrc": "/defaults/assets/skyes/sky3.jpg"
  18. }
  19. },
  20. "assetBG2": {
  21. "extends": "proxy/aframe/a-asset-image-item.vwf",
  22. "properties": {
  23. "itemID": "bg2",
  24. "itemSrc": "/defaults/assets/checker.jpg"
  25. }
  26. },
  27. "assetNwreeObj": {
  28. "extends": "proxy/aframe/a-asset-item.vwf",
  29. "properties": {
  30. "itemID": "nwtree-obj",
  31. "itemSrc": "/defaults/assets/models/nwtree/model.obj"
  32. }
  33. },
  34. "assetNwtreeMtl": {
  35. "extends": "proxy/aframe/a-asset-item.vwf",
  36. "properties": {
  37. "itemID": "nwtree-mtl",
  38. "itemSrc": "/defaults/assets/models/nwtree/materials.mtl"
  39. }
  40. },
  41. "sky": {
  42. "extends": "proxy/aframe/asky.vwf",
  43. "children": {
  44. "material": {
  45. "extends": "proxy/aframe/aMaterialComponent.vwf",
  46. "properties": {
  47. "color": "#ECECEC",
  48. "side": "back",
  49. "fog": false
  50. }
  51. }
  52. }
  53. },
  54. "myLightSG": {
  55. "extends": "proxy/aframe/alight.vwf",
  56. "properties": {
  57. "type": "directional",
  58. "color": "white",
  59. "position": [
  60. 6,
  61. 22,
  62. 6
  63. ],
  64. "rotation": [
  65. -77,
  66. 85,
  67. 64
  68. ]
  69. }
  70. },
  71. "myLightSB": {
  72. "extends": "proxy/aframe/alight.vwf",
  73. "properties": {
  74. "type": "spot",
  75. "color": "blue",
  76. "position": [
  77. 0,
  78. 5,
  79. -25
  80. ],
  81. "rotation": [
  82. 0,
  83. 0,
  84. 150
  85. ]
  86. }
  87. },
  88. "myLightSR": {
  89. "extends": "proxy/aframe/alight.vwf",
  90. "properties": {
  91. "type": "spot",
  92. "color": "red",
  93. "position": [
  94. 0,
  95. 5,
  96. -25
  97. ],
  98. "rotation": [
  99. 0,
  100. -3,
  101. 150
  102. ]
  103. }
  104. },
  105. "model": {
  106. "extends": "proxy/aframe/aobjmodel.vwf",
  107. "properties": {
  108. "src": "#nwtree-obj",
  109. "mtl": "#nwtree-mtl",
  110. "position": [
  111. -1,
  112. 6,
  113. -25
  114. ],
  115. "rotation": [
  116. 0,
  117. -45,
  118. 0
  119. ],
  120. "scale": [
  121. 20,
  122. 20,
  123. 20
  124. ]
  125. },
  126. "methods": {
  127. "run": {
  128. "body": " var time = this.time;\n let rot = this.rotation; //AFRAME.utils.coordinates.parse(this.rotation);\n this.rotation = [rot[0], Math.sin(time)*50, rot[2]];\n this.future( 0.01 ).run();\n",
  129. "type": "application/javascript"
  130. }
  131. },
  132. "children": {
  133. "interpolation": {
  134. "extends": "proxy/aframe/interpolation-component.vwf",
  135. "properties": {
  136. "enabled": true
  137. }
  138. }
  139. }
  140. },
  141. "spaceText": {
  142. "extends": "proxy/aframe/atext.vwf",
  143. "properties": {
  144. "value": "Happy New Year 2018!",
  145. "color": "#d5ebda",
  146. "position": [
  147. -19,
  148. 5,
  149. -30
  150. ],
  151. "rotation": [
  152. 0,
  153. 0,
  154. 45
  155. ],
  156. "scale": [
  157. 9,
  158. 9,
  159. 9
  160. ]
  161. }
  162. },
  163. "spaceText2": {
  164. "extends": "proxy/aframe/atext.vwf",
  165. "properties": {
  166. "value": "Project by Krestianstvo.org",
  167. "color": "#305b32",
  168. "position": [
  169. 5,
  170. 10,
  171. -30
  172. ],
  173. "scale": [
  174. 5,
  175. 5,
  176. 5
  177. ]
  178. }
  179. },
  180. "box": {
  181. "extends": "proxy/aframe/abox.vwf",
  182. "properties": {
  183. "position": [
  184. 10,
  185. 0.5,
  186. 0
  187. ],
  188. "rotation": [
  189. 0,
  190. -30,
  191. 0
  192. ],
  193. "depth": "2",
  194. "height": "5",
  195. "width": "2"
  196. },
  197. "children": {
  198. "material": {
  199. "extends": "proxy/aframe/aMaterialComponent.vwf",
  200. "properties": {
  201. "color": "#3c7249"
  202. }
  203. }
  204. }
  205. },
  206. "sphere": {
  207. "extends": "proxy/aframe/asphere.vwf",
  208. "properties": {
  209. "position": [
  210. 7,
  211. 15,
  212. -25
  213. ],
  214. "radius": "5"
  215. },
  216. "children": {
  217. "material": {
  218. "extends": "proxy/aframe/aMaterialComponent.vwf",
  219. "properties": {
  220. "color": "#e0e014",
  221. "wireframe": true
  222. }
  223. }
  224. }
  225. },
  226. "box2": {
  227. "extends": "proxy/aframe/abox.vwf",
  228. "properties": {
  229. "position": [
  230. 0,
  231. 0,
  232. -35
  233. ],
  234. "rotation": [
  235. 0,
  236. 0,
  237. 0
  238. ],
  239. "depth": "1",
  240. "height": "50",
  241. "width": "50"
  242. },
  243. "children": {
  244. "material": {
  245. "extends": "proxy/aframe/aMaterialComponent.vwf",
  246. "properties": {
  247. "color": "white"
  248. }
  249. }
  250. }
  251. },
  252. "groundPlane": {
  253. "extends": "proxy/aframe/aplane.vwf",
  254. "properties": {
  255. "height": "100",
  256. "width": "100",
  257. "rotation": [
  258. -90,
  259. 0,
  260. 0
  261. ]
  262. },
  263. "children": {
  264. "material": {
  265. "extends": "proxy/aframe/aMaterialComponent.vwf",
  266. "properties": {
  267. "color": "white",
  268. "wireframe": false,
  269. "src": "#bg2",
  270. "repeat": "10 10"
  271. }
  272. }
  273. }
  274. },
  275. "multicam": {
  276. "extends": "proxy/aframe/abox.vwf",
  277. "properties": {
  278. "position": [
  279. 0,
  280. 4,
  281. -2
  282. ],
  283. "rotation": [
  284. 0,
  285. 0,
  286. 0
  287. ],
  288. "depth": "0.5",
  289. "height": "0.5",
  290. "width": "0.5"
  291. },
  292. "children": {
  293. "material": {
  294. "extends": "proxy/aframe/aMaterialComponent.vwf",
  295. "properties": {
  296. "opacity": 0.5,
  297. "transparent": true,
  298. "color": "green"
  299. }
  300. },
  301. "interpolation": {
  302. "extends": "proxy/aframe/interpolation-component.vwf",
  303. "properties": {
  304. "enabled": true
  305. }
  306. },
  307. "camera1": {
  308. "extends": "proxy/aframe/offsetcamera.vwf",
  309. "children": {
  310. }
  311. },
  312. "camera2": {
  313. "extends": "proxy/aframe/offsetcamera.vwf",
  314. "children": {
  315. }
  316. }
  317. }
  318. }
  319. }
  320. }