GitXplorerGitXplorer
v

aframe-sandbox

public
9 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
cc8bd8fb39f8556b40706cf30338679950b18eca

fixed duplicate bird id

vvincentfretin committed 7 years ago
Unverified
5fd7a5854bfefdc946d910fc3f6ad6d25f63f9d3

new entity-generator-gltf-model component to share the material from the loaded gltf model

vvincentfretin committed 7 years ago
Unverified
3f594ef59dfc1785c67f65ac3a4ae432d5b5f7db

upload-texture component to force texture upload to gpu

vvincentfretin committed 7 years ago
Unverified
7e240860ce7505566a2fcf235c0b6f7a15d905a0

use landingMaxAngle: 135 for now to be able to teleport everywhere

vvincentfretin committed 7 years ago
Unverified
42d4111d912bb41b5eaebaefc28ca6c0d25e4a2a

convert CactusWren obj/mtl to glb and scale down

vvincentfretin committed 7 years ago
Unverified
5fc6fbe6976fe4ae0c9383b404f2193e2d75f820

spawn birds

vvincentfretin committed 7 years ago

README

The README file for this repository.

This is my sandbox with A-Frame

I publish some time to time a working version at https://vincentfretin.github.io/aframe-sandbox/

Be aware it can change at any moment. This is my sandbox after all. I currently use branches of several modules, see workspaces-install.sh.

Current things you can do in the environment:

  • teleport on the ground, dressing, big cube, voxels with the trigger button on GearVR
  • grab the fireball and small cubes with trackpad touch (just touch, not click)
  • click on the big cube to change its color
  • create voxels on trackpad click on the first pink voxel on your left

The initial commit of this repo is actually ngokevin's aframe-react-boilerplate where I did the following to be able to use hot reloading properly:

npm run eject
yarn add react-hot-loader@^3.0.0-beta.7

add to package.json:

"babel": {
  "presets": [
    "react-app"
  ],
  "plugins": [
    "react-hot-loader/babel"
  ]
}

and configure hot module reloading in src/index.js

The npm run eject was needed only to take into account the new babel config in package.json.

For an example how to configure webpack with glsify-loader to use a custom shader, see this commit

Installation

To get started:

./workspaces-install.sh
yarn
# to modify aframe source code, replace `"main": "dist/aframe-master.js"` by `"main": "src/index.js"` in `node_modules/aframe/package.json`
# edit node_modules/aframe/src/components/look-controls.js and comment `this.controls.userHeight = this.getUserHeight();`
npm start

Run it with GearVR

On Ubuntu, allow the the 3000 port with ufw allow 3000 Get your machine ip with iconfig. Be sure your phone is on the same network as your machine, via wifi. Put on your headset, open Oculus browser and type http://192.168.1.24:3000 (change the ip by yours). You really need to type http:// yourself, otherwise it doesn't load.

publish to GitHub Pages

To publish to GitHub Pages:

npm run publish