123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330 |
- {
- "extends": "proxy/aframe/ascene.vwf",
- "properties": {
- "transparent": true
- },
- "methods": {
- "initialize": {
- "body": " var runBox = vwf.find(\"\", \"/sphere/box2\")[0];\n console.log(runBox);\n vwf.callMethod(runBox, \"run\");\n",
- "type": "application/javascript"
- }
- },
- "children": {
- "assetBG": {
- "extends": "proxy/aframe/a-asset-image-item.vwf",
- "properties": {
- "itemID": "bg",
- "itemSrc": "/defaults/assets/bg.jpg"
- }
- },
- "assetSky": {
- "extends": "proxy/aframe/a-asset-image-item.vwf",
- "properties": {
- "itemID": "sky",
- "itemSrc": "/defaults/assets/skyes/sky3.jpg"
- }
- },
- "assetBG2": {
- "extends": "proxy/aframe/a-asset-image-item.vwf",
- "properties": {
- "itemID": "bg2",
- "itemSrc": "/defaults/assets/checker.jpg"
- }
- },
- "assetPlaneObj": {
- "extends": "proxy/aframe/a-asset-item.vwf",
- "properties": {
- "itemID": "plane-obj",
- "itemSrc": "/defaults/assets/models/plane/PUSHILIN_Plane.obj"
- }
- },
- "assetPlaneMtl": {
- "extends": "proxy/aframe/a-asset-item.vwf",
- "properties": {
- "itemID": "plane-mtl",
- "itemSrc": "/defaults/assets/models/plane/PUSHILIN_Plane.mtl"
- }
- },
- "myLight": {
- "extends": "proxy/aframe/alight.vwf",
- "properties": {
- "type": "directional",
- "intensity": "0.5",
- "position": [
- 0.5,
- 2,
- 1
- ],
- "castShadow": true
- }
- },
- "myLight2": {
- "extends": "proxy/aframe/alight.vwf",
- "properties": {
- "type": "ambient",
- "intensity": "0.5"
- }
- },
- "model": {
- "extends": "proxy/aframe/aobjmodel.vwf",
- "properties": {
- "src": "#plane-obj",
- "mtl": "#plane-mtl",
- "position": [
- -1.2000000476837158,
- 1.7000000476837158,
- -2.5
- ],
- "rotation": [
- 0,
- -45,
- 0
- ],
- "scale": [
- 0.5,
- 0.5,
- 0.5
- ]
- },
- "children": {
- "shadow": {
- "extends": "proxy/aframe/shadowComponent.vwf",
- "properties": {
- "cast": true
- }
- }
- }
- },
- "spaceText": {
- "extends": "proxy/aframe/atext.vwf",
- "properties": {
- "value": "Virtual World Framework & A-Frame",
- "color": "#ddd",
- "position": [
- -2,
- 2.5,
- -2
- ]
- }
- },
- "spaceText2": {
- "extends": "proxy/aframe/atext.vwf",
- "properties": {
- "value": "Project by Krestianstvo.org",
- "color": "#aaa",
- "position": [
- 1,
- 3,
- -4
- ]
- }
- },
- "boxAnim": {
- "extends": "proxy/aframe/abox.vwf",
- "properties": {
- "position": [
- 0,
- 0,
- -3
- ],
- "rotation": [
- 0,
- 0,
- 0
- ],
- "depth": "2",
- "height": "1",
- "width": "1",
- "class": "hit"
- },
- "methods": {
- "hitstartEventMethod": {
- "body": " this.material.opacity = 0.7\n",
- "type": "application/javascript"
- },
- "hitendEventMethod": {
- "body": " this.material.opacity = 1.0\n",
- "type": "application/javascript"
- }
- },
- "children": {
- "aabb-collider-listener": {
- "extends": "proxy/aframe/app-aabb-collider-listener-component.vwf",
- "type": "component"
- },
- "material": {
- "extends": "proxy/aframe/aMaterialComponent.vwf",
- "properties": {
- "color": "#3c7249"
- }
- }
- }
- },
- "box": {
- "extends": "proxy/aframe/abox.vwf",
- "properties": {
- "position": [
- -1,
- 0.5,
- -3
- ],
- "rotation": [
- 0,
- -30,
- 0
- ],
- "depth": "2",
- "height": "1",
- "width": "1",
- "class": "clickable intersectable"
- },
- "methods": {
- "clickEventMethod": {
- "body": " let genColor = this.generateColor();\n this.material.color = genColor\n",
- "type": "application/javascript"
- },
- "intersectEventMethod": {
- "parameters": ["point"],
- "body": " this.material.opacity = 0.7; \n console.log(point) \n",
- "type": "application/javascript"
- },
- "clearIntersectEventMethod": {
- "body": " this.material.opacity = 1.0\n",
- "type": "application/javascript"
- },
- "generateColor": {
- "body": " var letters = '0123456789ABCDEF';\n var color = '#';\n for (var i = 0; i < 6; i++) {\n color += letters[Math.floor(this.random() * 16)];\n } return color\n",
- "type": "application/javascript"
- }
- },
- "events": {
- "clickEvent": {}
- },
- "children": {
- "material": {
- "extends": "proxy/aframe/aMaterialComponent.vwf",
- "properties": {
- "color": "#3c7249",
- "transparent": true
- }
- },
- "raycaster-listener": {
- "extends": "proxy/aframe/app-raycaster-listener-component.vwf",
- "type": "component"
- },
- "cursor-listener": {
- "extends": "proxy/aframe/app-cursor-listener-component.vwf",
- "type": "component"
- },
- "shadow": {
- "extends": "proxy/aframe/shadowComponent.vwf",
- "properties": {
- "cast": true,
- "receive": true
- }
- }
- }
- },
- "sphere": {
- "extends": "proxy/aframe/asphere.vwf",
- "properties": {
- "position": [
- 1,
- 1.25,
- -4
- ],
- "radius": "1"
- },
- "children": {
- "material": {
- "extends": "proxy/aframe/aMaterialComponent.vwf",
- "properties": {
- "color": "#e0e014",
- "wireframe": true
- }
- },
- "box2": {
- "extends": "proxy/aframe/abox.vwf",
- "properties": {
- "position": [
- 2,
- -0.75,
- 0.948116660118103
- ],
- "depth": "1"
- },
- "methods": {
- "run": {
- "body": " var time = this.time;\n let pos = this.position; //AFRAME.utils.coordinates.parse(this.position);\n this.position = [pos.x, pos.y, Math.sin(time)]\n this.future( 0.01 ).run();\n",
- "type": "application/javascript"
- }
- },
- "children": {
- "material": {
- "extends": "proxy/aframe/aMaterialComponent.vwf",
- "properties": {
- "color": "#2167a5",
- "src": "#bg"
- }
- },
- "shadow": {
- "extends": "proxy/aframe/shadowComponent.vwf",
- "properties": {
- "cast": true
- }
- },
- "interpolation": {
- "extends": "proxy/aframe/interpolation-component.vwf",
- "properties": {
- "enabled": true,
- "deltaPos": 0.001,
- "deltaRot": 0.1
- }
- }
- }
- }
- }
- },
- "sky": {
- "extends": "proxy/aframe/asky.vwf",
- "children": {
- "material": {
- "extends": "proxy/aframe/aMaterialComponent.vwf",
- "properties": {
- "src": "#sky",
- "side": "back",
- "fog": false
- }
- }
- }
- },
- "groundPlane": {
- "extends": "proxy/aframe/aplane.vwf",
- "properties": {
- "height": "50",
- "width": "50",
- "rotation": [
- -90,
- 0,
- 0
- ]
- },
- "children": {
- "material": {
- "extends": "proxy/aframe/aMaterialComponent.vwf",
- "properties": {
- "repeat": "10 10",
- "color": "white",
- "src": "#bg2"
- }
- },
- "shadow": {
- "extends": "proxy/aframe/shadowComponent.vwf",
- "properties": {
- "receive": true
- }
- }
- }
- }
- }
- }
|