index.vwf.yaml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. # A-Frame & VWF simple scene
  2. # Copyright 2017 Krestianstvo.org project
  3. ---
  4. extends: http://vwf.example.com/aframe/ascene.vwf
  5. properties:
  6. transparent: true
  7. assets: "assets.json"
  8. children:
  9. sky:
  10. extends: http://vwf.example.com/aframe/asky.vwf
  11. properties:
  12. color: "#ECECEC"
  13. side: "back"
  14. fog: false
  15. myLightSG:
  16. extends: http://vwf.example.com/aframe/alight.vwf
  17. properties:
  18. type: "directional"
  19. color: "white"
  20. position: "6 22 6"
  21. rotation: "-77 85 64"
  22. myLightSB:
  23. extends: http://vwf.example.com/aframe/alight.vwf
  24. properties:
  25. type: "spot"
  26. color: "blue"
  27. position: "0 5 -25"
  28. rotation: "0 0 150"
  29. myLightSR:
  30. extends: http://vwf.example.com/aframe/alight.vwf
  31. properties:
  32. type: "spot"
  33. color: "red"
  34. position: "0 5 -25"
  35. rotation: "0 -3 150"
  36. model:
  37. extends: http://vwf.example.com/aframe/aobjmodel.vwf
  38. properties:
  39. src: "#nwtree-obj"
  40. mtl: "#nwtree-mtl"
  41. position: "-1 6 -25"
  42. rotation: "0 -45 0"
  43. scale: "20 20 20"
  44. children:
  45. interpolation:
  46. extends: http://vwf.example.com/aframe/interpolation-component.vwf
  47. properties:
  48. enabled: true
  49. methods:
  50. run:
  51. body: |
  52. var time = vwf.now;
  53. let rot = AFRAME.utils.coordinates.parse(this.rotation);
  54. this.rotation = [rot.x, Math.sin(time)*50, rot.z];
  55. this.future( 0.01 ).run(); // schedule the next step
  56. spaceText:
  57. extends: http://vwf.example.com/aframe/atext.vwf
  58. properties:
  59. value: "Happy New Year 2018!"
  60. color: "#d5ebda"
  61. position: "-19 5 -30"
  62. rotation: "0 0 45"
  63. scale: "9 9 9"
  64. spaceText2:
  65. extends: http://vwf.example.com/aframe/atext.vwf
  66. properties:
  67. value: "Project by Krestianstvo.org"
  68. color: "#305b32"
  69. position: "5 10 -30"
  70. scale: "5 5 5"
  71. box:
  72. extends: http://vwf.example.com/aframe/abox.vwf
  73. properties:
  74. position: "20 0.5 0"
  75. rotation: "0 -30 0"
  76. color: "#3c7249"
  77. depth: 2
  78. height: 9
  79. width: 2
  80. sphere:
  81. extends: http://vwf.example.com/aframe/asphere.vwf
  82. properties:
  83. position: "7 15 -25"
  84. color: "#e0e014"
  85. radius: 5
  86. wireframe: true
  87. box2:
  88. extends: http://vwf.example.com/aframe/abox.vwf
  89. properties:
  90. position: "0 0 -35"
  91. rotation: "0 0 0"
  92. color: "white"
  93. depth: 1
  94. height: 50
  95. width: 50
  96. groundPlane:
  97. extends: http://vwf.example.com/aframe/aplane.vwf
  98. properties:
  99. height: 100
  100. width: 100
  101. repeat: "10 10"
  102. rotation: "-90 0 0"
  103. color: "white"
  104. wireframe: false
  105. src: "#bg2"
  106. multicam:
  107. extends: http://vwf.example.com/aframe/abox.vwf
  108. properties:
  109. position: "0 10 -2"
  110. rotation: "0 0 0"
  111. depth: 0.5
  112. height: 0.5
  113. width: 0.5
  114. opacity: 0.5
  115. transparent: true
  116. color: "green"
  117. fullHeight: 2048
  118. fullWidth: 3072
  119. children:
  120. interpolation:
  121. extends: http://vwf.example.com/aframe/interpolation-component.vwf
  122. properties:
  123. enabled: true
  124. camera1:
  125. extends: http://vwf.example.com/aframe/offsetcamera.vwf
  126. properties:
  127. xoffset: -500
  128. yoffset: -450
  129. subcamWidth: 1667
  130. subcamHeight: 3958
  131. camera2:
  132. extends: http://vwf.example.com/aframe/offsetcamera.vwf
  133. properties:
  134. xoffset: 1400
  135. yoffset: -500
  136. subcamWidth: 1583
  137. subcamHeight: 4208
  138. camera3:
  139. extends: http://vwf.example.com/aframe/offsetcamera.vwf
  140. properties:
  141. xoffset: 1330
  142. yoffset: -3300
  143. subcamWidth: 1750
  144. subcamHeight: 2333
  145. camera4:
  146. extends: http://vwf.example.com/aframe/offsetcamera.vwf
  147. properties:
  148. xoffset: -500
  149. yoffset: -3000
  150. subcamWidth: 1417
  151. subcamHeight: 1583
  152. camera5:
  153. extends: http://vwf.example.com/aframe/offsetcamera.vwf
  154. properties:
  155. xoffset: -500
  156. yoffset: -4700
  157. subcamWidth: 1417
  158. subcamHeight: 1583
  159. camera6:
  160. extends: http://vwf.example.com/aframe/offsetcamera.vwf
  161. properties:
  162. xoffset: -500
  163. yoffset: -6300
  164. subcamWidth: 1417
  165. subcamHeight: 1583
  166. camera7:
  167. extends: http://vwf.example.com/aframe/offsetcamera.vwf
  168. properties:
  169. xoffset: 1250
  170. yoffset: -5000
  171. subcamWidth: 1250
  172. subcamHeight: 1458
  173. camera8:
  174. extends: http://vwf.example.com/aframe/offsetcamera.vwf
  175. properties:
  176. xoffset: 1200
  177. yoffset: -6500
  178. subcamWidth: 1375
  179. subcamHeight: 1083
  180. camera9:
  181. extends: http://vwf.example.com/aframe/offsetcamera.vwf
  182. properties:
  183. xoffset: 833
  184. yoffset: -3000
  185. subcamWidth: 625
  186. subcamHeight: 916
  187. methods:
  188. initialize:
  189. body: |
  190. console.log("initializing...");
  191. this.children.multicam.camera1.createCamera();
  192. this.children.multicam.camera2.createCamera();
  193. this.children.multicam.camera3.createCamera();
  194. this.children.multicam.camera4.createCamera();
  195. this.children.multicam.camera5.createCamera();
  196. this.children.multicam.camera6.createCamera();
  197. this.children.multicam.camera7.createCamera();
  198. this.children.multicam.camera8.createCamera();
  199. this.children.multicam.camera9.createCamera();
  200. //var runL = vwf_view.kernel.find("", "/myLight3")[0];
  201. //vwf_view.kernel.callMethod(runL, "run");
  202. //var runL2 = vwf_view.kernel.find("", "/myLight2")[0];
  203. //vwf_view.kernel.callMethod(runL2, "run");
  204. //var runModel = vwf_view.kernel.find("", "/model")[0];
  205. // vwf_view.kernel.callMethod(runModel, "run");