index.vwf.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. {
  2. "extends": "proxy/aframe/ascene.vwf",
  3. "properties":{},
  4. "children": {
  5. "fog": {
  6. "extends": "proxy/aframe/aSceneFogComponent.vwf",
  7. "type": "component",
  8. "properties": {
  9. "fogType": "linear",
  10. "fogColor": "#ECECEC",
  11. "far": 20,
  12. "near": 0
  13. }
  14. },
  15. "floorTexture": {
  16. "extends": "proxy/aframe/a-asset-image-item.vwf",
  17. "properties": {
  18. "itemID": "bg2",
  19. "itemSrc": "/defaults/assets/checker.jpg"
  20. }
  21. },
  22. "newSky":{
  23. "extends": "proxy/aframe/aentity.vwf",
  24. "children":{
  25. "skyshader":{
  26. "extends": "proxy/aframe/app-skyshader-component.vwf"
  27. }
  28. }
  29. },
  30. "groundPlane": {
  31. "extends": "proxy/aframe/aplane.vwf",
  32. "properties": {
  33. "height": "50",
  34. "width": "50",
  35. "rotation": [
  36. -90,
  37. 0,
  38. 0
  39. ]
  40. },
  41. "children": {
  42. "material": {
  43. "extends": "proxy/aframe/aMaterialComponent.vwf",
  44. "properties": {
  45. "wireframe": false,
  46. "src": "#bg2",
  47. "repeat": "10 10"
  48. }
  49. }
  50. }
  51. },
  52. "myLight": {
  53. "extends": "proxy/aframe/alight.vwf",
  54. "properties": {
  55. "type": "point",
  56. "color": "white",
  57. "position": [
  58. 0, 10, 5
  59. ],
  60. "rotation": [
  61. 0,
  62. 0,
  63. 0
  64. ]
  65. }
  66. },
  67. "spaceText": {
  68. "extends": "proxy/aframe/atext.vwf",
  69. "properties": {
  70. "value": "Virtual World Framework & A-Frame & OSC",
  71. "color": "#2b5d83",
  72. "position": [
  73. -2,
  74. 2.5,
  75. -3
  76. ]
  77. }
  78. },
  79. "cube": {
  80. "extends": "proxy/aframe/abox.vwf",
  81. "properties": {
  82. "position": "0 1 -3",
  83. "rotation": "0 0 0",
  84. "depth": 1,
  85. "height": 1,
  86. "width": 1
  87. },
  88. "children": {
  89. "material": {
  90. "extends": "proxy/aframe/aMaterialComponent.vwf",
  91. "properties": {
  92. "color": "#3c7249"
  93. }
  94. },
  95. "sphere": {
  96. "extends": "proxy/aframe/asphere.vwf",
  97. "properties": {
  98. "position": "0 2 0",
  99. "rotation": "0 0 0",
  100. "radius": 0.4
  101. },
  102. "children": {
  103. "material": {
  104. "extends": "proxy/aframe/aMaterialComponent.vwf",
  105. "properties": {
  106. "color": "#3c7249"
  107. }
  108. }
  109. }
  110. }
  111. }
  112. },
  113. "oscLang":{
  114. "extends": "proxy/ohm/node.vwf",
  115. "properties":{
  116. "osc": true,
  117. "grammar": null,
  118. "semantics": null,
  119. "ohmLang": "parseOSC {\n all = address \":\" props\n address = (\"/\" addr)*\n addr = ~(\"/\") propSingle\n props \n = propSingle row -- single\n | \"rgb\" row -- rgb\n | propSingle number -- prop\n row = \"[\" col rep \"]\"\n rep = (\",\" col)*\n col = colChar*\n colChar = ~(\"[\" | \",\" | \"]\") number\n propSingle = ~(\"rgb\") letter*\n number (a number)\n = digit* \".\" digit+ -- fract\n | digit+ -- whole\n }\n"
  120. },
  121. "methods":{
  122. "initLang": {},
  123. "addOperationLang": {},
  124. "getOSC":{
  125. "parameters":["msg"]
  126. },
  127. "parseOSC":{
  128. "parameters":["msg"]
  129. },
  130. "setPropsFromOSC":{
  131. "parameters":["res"]
  132. }
  133. },
  134. "scripts":{
  135. "source": "osclang.js"
  136. }
  137. }
  138. }
  139. }