Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jsyang/aframe-experiment2

VR experiments
https://github.com/jsyang/aframe-experiment2

Last synced: 4 months ago
JSON representation

VR experiments

Awesome Lists containing this project

README

        

# Jim's AFrame experiments

---

## Experimentation Summary

[Bringing Light to WebVR with AFrame](https://medium.com/this-place/bringing-light-to-webvr-with-aframe-bf98ba2f49db)

## Getting started

In one terminal window:

```
npm i ; grunt
```

In another:

```
node server/index.js
```

### Duck Hunt

![duckhunt gif](http://i.imgur.com/9eq8jqe.gif)

[See it on YouTube](https://www.youtube.com/watch?v=qLRu9_qdUpo)

1. On your *viewer device*, go to http://localhost:3000/duckhunt.html
2. On your *controller device*, go to http://localhost:3000/controller.html
3. Select the `gyronorm` controller mode
4. Select the `socketio` network mode

5. You need to align both the *viewer* and the *controller* in the same orientation,
if they get out of sync, you will need to long-press on the *controller* to reset it.

On your *viewer*, you need to face north as you re-sync.

---

## Learnings

- [Google W3C WebVR presentation](https://docs.google.com/presentation/d/1CSgOsiyn2PeLGlJCnrmmTYv9FLE_dmCaVKp7fZ-SF2I/edit?usp=sharing)
- Models with faces that have more than 3 vertices will not load in THREE.js loaders (which is what AFrame is using)
- Ctrl + Alt + I opens the AFrame Inspector which you can use to rearrange entities in the scene. You can
copy the resultant HTML

- Youtube Videos need to be downloaded as MP4 or [proxied to be viewable as textures](http://stackoverflow.com/questions/36298195/how-to-render-youtube-videos-as-a-texture-in-a-frame)
- [`` after `