index.vwf.json 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  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. "shader": "flat"
  51. }
  52. }
  53. }
  54. },
  55. "myLightSG": {
  56. "extends": "proxy/aframe/alight.vwf",
  57. "properties": {
  58. "type": "directional",
  59. "color": "white",
  60. "position": [
  61. 6,
  62. 22,
  63. 6
  64. ],
  65. "rotation": [
  66. -77,
  67. 85,
  68. 64
  69. ]
  70. }
  71. },
  72. "myLightSB": {
  73. "extends": "proxy/aframe/alight.vwf",
  74. "properties": {
  75. "type": "spot",
  76. "color": "blue",
  77. "position": [
  78. 0,
  79. 5,
  80. -25
  81. ],
  82. "rotation": [
  83. 0,
  84. 0,
  85. 150
  86. ]
  87. }
  88. },
  89. "myLightSR": {
  90. "extends": "proxy/aframe/alight.vwf",
  91. "properties": {
  92. "type": "spot",
  93. "color": "red",
  94. "position": [
  95. 0,
  96. 5,
  97. -25
  98. ],
  99. "rotation": [
  100. 0,
  101. -3,
  102. 150
  103. ]
  104. }
  105. },
  106. "model": {
  107. "extends": "proxy/aframe/aobjmodel.vwf",
  108. "properties": {
  109. "src": "#nwtree-obj",
  110. "mtl": "#nwtree-mtl",
  111. "position": [
  112. -1,
  113. 6,
  114. -25
  115. ],
  116. "rotation": [
  117. 0,
  118. -45,
  119. 0
  120. ],
  121. "scale": [
  122. 20,
  123. 20,
  124. 20
  125. ]
  126. },
  127. "methods": {
  128. "run": {
  129. "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",
  130. "type": "application/javascript"
  131. }
  132. },
  133. "children": {
  134. "interpolation": {
  135. "extends": "proxy/aframe/interpolation-component.vwf",
  136. "properties": {
  137. "enabled": true
  138. }
  139. }
  140. }
  141. },
  142. "spaceText": {
  143. "extends": "proxy/aframe/atext.vwf",
  144. "properties": {
  145. "value": "Happy New Year 2018!",
  146. "color": "#d5ebda",
  147. "position": [
  148. -19,
  149. 5,
  150. -30
  151. ],
  152. "rotation": [
  153. 0,
  154. 0,
  155. 45
  156. ],
  157. "scale": [
  158. 9,
  159. 9,
  160. 9
  161. ]
  162. }
  163. },
  164. "spaceText2": {
  165. "extends": "proxy/aframe/atext.vwf",
  166. "properties": {
  167. "value": "Project by Krestianstvo.org",
  168. "color": "#305b32",
  169. "position": [
  170. 5,
  171. 10,
  172. -30
  173. ],
  174. "scale": [
  175. 5,
  176. 5,
  177. 5
  178. ]
  179. }
  180. },
  181. "box": {
  182. "extends": "proxy/aframe/abox.vwf",
  183. "properties": {
  184. "position": [
  185. 10,
  186. 0.5,
  187. 0
  188. ],
  189. "rotation": [
  190. 0,
  191. -30,
  192. 0
  193. ],
  194. "depth": "2",
  195. "height": "5",
  196. "width": "2"
  197. },
  198. "children": {
  199. "material": {
  200. "extends": "proxy/aframe/aMaterialComponent.vwf",
  201. "properties": {
  202. "color": "#3c7249"
  203. }
  204. }
  205. }
  206. },
  207. "sphere": {
  208. "extends": "proxy/aframe/asphere.vwf",
  209. "properties": {
  210. "position": [
  211. 7,
  212. 15,
  213. -25
  214. ],
  215. "radius": "5"
  216. },
  217. "children": {
  218. "material": {
  219. "extends": "proxy/aframe/aMaterialComponent.vwf",
  220. "properties": {
  221. "color": "#e0e014",
  222. "wireframe": true
  223. }
  224. }
  225. }
  226. },
  227. "box2": {
  228. "extends": "proxy/aframe/abox.vwf",
  229. "properties": {
  230. "position": [
  231. 0,
  232. 0,
  233. -35
  234. ],
  235. "rotation": [
  236. 0,
  237. 0,
  238. 0
  239. ],
  240. "depth": "1",
  241. "height": "50",
  242. "width": "50"
  243. },
  244. "children": {
  245. "material": {
  246. "extends": "proxy/aframe/aMaterialComponent.vwf",
  247. "properties": {
  248. "color": "white"
  249. }
  250. }
  251. }
  252. },
  253. "groundPlane": {
  254. "extends": "proxy/aframe/aplane.vwf",
  255. "properties": {
  256. "height": "100",
  257. "width": "100",
  258. "rotation": [
  259. -90,
  260. 0,
  261. 0
  262. ]
  263. },
  264. "children": {
  265. "material": {
  266. "extends": "proxy/aframe/aMaterialComponent.vwf",
  267. "properties": {
  268. "color": "white",
  269. "wireframe": false,
  270. "src": "#bg2",
  271. "repeat": "10 10"
  272. }
  273. }
  274. }
  275. },
  276. "multicam": {
  277. "extends": "proxy/aframe/abox.vwf",
  278. "properties": {
  279. "position": [
  280. 0,
  281. 4,
  282. -2
  283. ],
  284. "rotation": [
  285. 0,
  286. 0,
  287. 0
  288. ],
  289. "depth": "0.5",
  290. "height": "0.5",
  291. "width": "0.5"
  292. },
  293. "children": {
  294. "material": {
  295. "extends": "proxy/aframe/aMaterialComponent.vwf",
  296. "properties": {
  297. "opacity": 0.5,
  298. "transparent": true,
  299. "color": "green"
  300. }
  301. },
  302. "interpolation": {
  303. "extends": "proxy/aframe/interpolation-component.vwf",
  304. "properties": {
  305. "enabled": true
  306. }
  307. },
  308. "camera1": {
  309. "extends": "proxy/aframe/offsetcamera.vwf",
  310. "children": {
  311. }
  312. },
  313. "camera2": {
  314. "extends": "proxy/aframe/offsetcamera.vwf",
  315. "children": {
  316. }
  317. }
  318. }
  319. }
  320. }
  321. }