All Projects → alfa256 → aframe-mirror-component

alfa256 / aframe-mirror-component

Licence: MIT license
Mirror effect material that works with snapshots of the scene for A-Frame

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to aframe-mirror-component

aframe-registry
[DISCONTINUED] Curated collection of community A-Frame components.
Stars: ✭ 76 (+162.07%)
Mutual labels:  threejs, vr, webvr
zeo
Multiplayer WebVR worlds made out of npm modules.
Stars: ✭ 47 (+62.07%)
Mutual labels:  threejs, vr, webvr
A Mmd
A-Frame MMD component
Stars: ✭ 74 (+155.17%)
Mutual labels:  threejs, vr, webvr
Worlds2
Building Virtual Reality Worlds using Three.js
Stars: ✭ 34 (+17.24%)
Mutual labels:  threejs, vr, webvr
Aframe Effects
A VR Ready Post processing framework for Three.js and/or A-Frame
Stars: ✭ 176 (+506.9%)
Mutual labels:  threejs, vr, webvr
Aframe Vimeo Component
Stream Vimeo videos into WebVR.
Stars: ✭ 62 (+113.79%)
Mutual labels:  threejs, vr, webvr
Konterball
Konterball is a single or 2-player virtual reality game, built for the web as a Google VR Chrome Experiment.
Stars: ✭ 112 (+286.21%)
Mutual labels:  threejs, vr, webvr
3dio Js
JavaScript toolkit for interior apps
Stars: ✭ 255 (+779.31%)
Mutual labels:  threejs, vr, webvr
Patches
Patches is a visual programming editor for building WebVR and WebGL experiences.
Stars: ✭ 164 (+465.52%)
Mutual labels:  threejs, vr, webvr
Remixvr
RemixVR is a tool for collaboratively building customisable VR experiences.
Stars: ✭ 129 (+344.83%)
Mutual labels:  threejs, vr, webvr
A Painter
🎨 Paint in VR in your browser.
Stars: ✭ 539 (+1758.62%)
Mutual labels:  threejs, vr, webvr
a-blast
💥 Save the World From the Cutest Creatures in the Universe!
Stars: ✭ 116 (+300%)
Mutual labels:  threejs, vr, webvr
Aframe Inspector
🔍 Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
Stars: ✭ 469 (+1517.24%)
Mutual labels:  threejs, vr, webvr
spacesvr
A standardized reality for the future of the 3D Web.
Stars: ✭ 135 (+365.52%)
Mutual labels:  threejs, vr, webvr
Ideaspace
😎 Create interactive 3D and VR web experiences for desktop, mobile & VR devices
Stars: ✭ 344 (+1086.21%)
Mutual labels:  threejs, vr, webvr
Awesome Aframe
[DISCONTINUED] Collection of awesome resources for the A-Frame WebVR framework.
Stars: ✭ 1,310 (+4417.24%)
Mutual labels:  threejs, vr, webvr
hologram
Hologram Framework | All-in-one WebVR creation.
Stars: ✭ 84 (+189.66%)
Mutual labels:  threejs, webvr, aframevr
Thehallaframe
WebVR demo that displays art
Stars: ✭ 120 (+313.79%)
Mutual labels:  threejs, vr, webvr
Aframe
🅰️ web framework for building virtual reality experiences.
Stars: ✭ 13,428 (+46203.45%)
Mutual labels:  threejs, vr, webvr
lvr
👓 Augmented Reality for everyone - Out of the world experiences
Stars: ✭ 92 (+217.24%)
Mutual labels:  threejs, vr, webvr

aframe-mirror-component

Version License

Mirror effect material that works with THREE.CubeCamera snapshots of the scene.

Add it to a mesh and it will change its material for a mirror like effect.

If you use it let me know, I'm @alfredofrlp on twitter.

For A-Frame.

LIVE DEMO : WASD + mouse to look around.

Screenshot

API

Property Description Default Value
color material color #ffffff
resolution CubeCamera resolution 128
refraction material refractionRatio 0.95
distance CubeCamera render distance 3000
interval snapshot interval 1000 ms
repeat take snapshot every interval false

For a realtime mirror effect I suggest a low resolution ( 32 or 64 ) and an interval of 150 to 300, low distance also helps. Resolution needs to be a power of 2: 8, 16, 32, 64, 128 ...

Browser

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-mirror-component/dist/aframe-mirror-component.min.js"></script>
</head>

<body>
  <a-scene>
    <a-sphere mirror></a-sphere>
  </a-scene>
</body>

npm

Install via npm:

npm install aframe-mirror-component

Then require and use.

require('aframe');
require('aframe-mirror-component');
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].