index.vwf.json 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. {
  2. "extends": "proxy/aframe/ascene.vwf",
  3. "properties": {
  4. "transparent": true
  5. },
  6. "methods": {
  7. "initialize": {
  8. "body": " var runModel = vwf_view.kernel.find(\"\", \"/aranchor/model\")[0];\n vwf_view.kernel.callMethod(runModel, \"run\");\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. "light1": {
  42. "extends": "proxy/aframe/alight.vwf",
  43. "properties": {
  44. "type": "ambient",
  45. "color": "#BBB"
  46. }
  47. },
  48. "light2": {
  49. "extends": "proxy/aframe/alight.vwf",
  50. "properties": {
  51. "type": "directional",
  52. "color": "#FFF",
  53. "intensity": "0.6",
  54. "position": [
  55. -0.5,
  56. 1,
  57. 1
  58. ]
  59. }
  60. },
  61. "arcamera": {
  62. "extends": "proxy/aframe/abox.vwf",
  63. "properties": {
  64. "position": [
  65. 0,
  66. 0,
  67. 0
  68. ],
  69. "rotation": [
  70. 0,
  71. 0,
  72. 0
  73. ],
  74. "opacity": 0.5,
  75. "depth": "0.3",
  76. "width": "0.3",
  77. "height": "0.5"
  78. },
  79. "children": {
  80. "camera": {
  81. "extends": "proxy/aframe/acamera.vwf",
  82. "type": "ar",
  83. "properties": {
  84. "look-controls-enabled": "false",
  85. "wasd-controls-enabled": "false",
  86. "user-height": "0"
  87. }
  88. }
  89. }
  90. },
  91. "aranchor": {
  92. "extends": "proxy/aframe/a-arjs-anchor.vwf",
  93. "properties": {
  94. "position": [
  95. 0,
  96. 0,
  97. -5
  98. ],
  99. "hit-testing-enabled": "true",
  100. "changeMatrixMode": "modelViewMatrix",
  101. "preset": "hiro"
  102. },
  103. "children": {
  104. "model": {
  105. "extends": "proxy/aframe/aobjmodel.vwf",
  106. "properties": {
  107. "src": "#nwtree-obj",
  108. "mtl": "#nwtree-mtl",
  109. "position": [
  110. 0,
  111. 0.5,
  112. 0
  113. ],
  114. "rotation": [
  115. 0,
  116. 2811,
  117. 0
  118. ],
  119. "scale": [
  120. 2,
  121. 2,
  122. 2
  123. ]
  124. },
  125. "methods": {
  126. "run": {
  127. "body": " var time = this.time;\n let rot = this.rotation; //AFRAME.utils.coordinates.parse(this.rotation);\n this.rotation = [rot[0], rot[1]+2, rot[2]];\n this.future( 0.05 ).run();\n",
  128. "type": "application/javascript"
  129. }
  130. },
  131. "children": {
  132. "interpolation": {
  133. "extends": "proxy/aframe/interpolation-component.vwf",
  134. "properties": {
  135. "enabled": true
  136. }
  137. }
  138. }
  139. }
  140. }
  141. },
  142. "aranchor2": {
  143. "extends": "proxy/aframe/a-arjs-anchor.vwf",
  144. "properties": {
  145. "position": [
  146. -5,
  147. 0,
  148. -5
  149. ],
  150. "hit-testing-enabled": "true",
  151. "changeMatrixMode": "modelViewMatrix",
  152. "preset": "kanji"
  153. },
  154. "children": {
  155. "alltext": {
  156. "extends": "proxy/aframe/aentity.vwf",
  157. "properties": {
  158. "position": [
  159. 0,
  160. -1,
  161. 0
  162. ],
  163. "rotation": [
  164. -15,
  165. 0,
  166. 0
  167. ]
  168. },
  169. "children": {
  170. "spaceText": {
  171. "extends": "proxy/aframe/atext.vwf",
  172. "properties": {
  173. "value": "Happy New Year 2019!",
  174. "color": "#00ffa5",
  175. "position": [
  176. -2,
  177. 1,
  178. 0
  179. ],
  180. "rotation": [
  181. 0,
  182. 0,
  183. 15
  184. ],
  185. "scale": [
  186. 4,
  187. 4,
  188. 4
  189. ],
  190. "side": "double"
  191. }
  192. },
  193. "spaceText2": {
  194. "extends": "proxy/aframe/atext.vwf",
  195. "properties": {
  196. "value": "Project by Krestianstvo.org",
  197. "color": "#98b099",
  198. "position": [
  199. 0,
  200. 0.5,
  201. 0
  202. ],
  203. "scale": [
  204. 2,
  205. 2,
  206. 2
  207. ],
  208. "side": "double"
  209. }
  210. }
  211. }
  212. }
  213. }
  214. }
  215. }
  216. }