index.vwf.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. spaceText:
  16. extends: http://vwf.example.com/aframe/atext.vwf
  17. properties:
  18. value: "Virtual World Framework & A-Frame"
  19. color: "#b74217"
  20. position: "-2 2.5 -2"
  21. spaceText2:
  22. extends: http://vwf.example.com/aframe/atext.vwf
  23. properties:
  24. value: "Project by Krestianstvo.org"
  25. color: "#305b32"
  26. position: "1 3 -4"
  27. box:
  28. extends: http://vwf.example.com/aframe/abox.vwf
  29. properties:
  30. position: "-1 0.5 -8"
  31. rotation: "0 -30 0"
  32. color: "#3c7249"
  33. depth: 2
  34. height: 9
  35. width: 2
  36. groundPlane:
  37. extends: http://vwf.example.com/aframe/aplane.vwf
  38. properties:
  39. height: 50
  40. width: 50
  41. repeat: "10 10"
  42. rotation: "-90 0 0"
  43. color: "white"
  44. wireframe: false
  45. src: "#bg2"
  46. multicam:
  47. extends: http://vwf.example.com/aframe/abox.vwf
  48. properties:
  49. position: "0 1.6 -2"
  50. depth: 0.5
  51. height: 0.5
  52. width: 0.5
  53. opacity: 0.5
  54. transparent: true
  55. color: "green"
  56. fullHeight: 2048
  57. fullWidth: 3072
  58. children:
  59. interpolation:
  60. extends: http://vwf.example.com/aframe/interpolation-component.vwf
  61. properties:
  62. enabled: true
  63. camera1:
  64. extends: http://vwf.example.com/aframe/offsetcamera.vwf
  65. properties:
  66. xoffset: 0
  67. yoffset: 0
  68. subcamWidth: 1536
  69. subcamHeight: 2048
  70. camera2:
  71. extends: http://vwf.example.com/aframe/offsetcamera.vwf
  72. properties:
  73. xoffset: 1536
  74. yoffset: 0
  75. subcamWidth: 1536
  76. subcamHeight: 2048
  77. camera3:
  78. extends: http://vwf.example.com/aframe/offsetcamera.vwf
  79. properties:
  80. xoffset: 0
  81. yoffset: 2048
  82. subcamWidth: 2048
  83. subcamHeight: 1536
  84. methods:
  85. initialize:
  86. body: |
  87. console.log("initializing...");
  88. this.children.multicam.camera1.createCamera();
  89. this.children.multicam.camera2.createCamera();
  90. this.children.multicam.camera3.createCamera();