- http://absulit.com/portfolio/demo/webvr/001/
- https://www.clicktorelease.com/code/polygon-shredder/vr/ #positional
- https://www.clicktorelease.com/tmp/threejs/webvr-physics/ #positional #input #haptic
- https://janusweb.metacade.com/ https://github.com/jbaicoianu/janusweb/
- https://jzitelli.github.io/poolvr/
- https://kuva.io/block-background/ #positional #input
- https://www.shadertoy.com/results?filter=vr
- https://vr-batted-ball-vis.herokuapp.com/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author mrdoob / http://mrdoob.com/ | |
* @author mikael emtinger / http://gomo.se/ | |
* @author alteredq / http://alteredqualia.com/ | |
* @author WestLangley / http://github.com/WestLangley | |
*/ | |
THREE.Object3D = function () { | |
this.id = THREE.Object3DIdCount ++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) { | |
viewer.addEventListener( 'load', function ( event ) { | |
viewer.contentWindow.innerWidth -= 10; | |
viewer.contentWindow.innerHeight -= 2; | |
} ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author mrdoob / http://mrdoob.com/ | |
*/ | |
function html2canvas( element ) { | |
var range = document.createRange(); | |
function getRect( rect ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author mrdoob / http://mrdoob.com/ | |
*/ | |
function Layers() { | |
this.mask = 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function JSONParseAsync( text, callback ) { | |
var code = 'onmessage = function ( e ) { postMessage( JSON.parse( e.data ) ); close(); }'; | |
var blob = new Blob( [ code ], { type: 'text/plain' } ); | |
var worker = new Worker( window.URL.createObjectURL( blob ) ); | |
worker.addEventListener( 'message', function ( e ) { callback( e.data ); } ); | |
worker.postMessage( text ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
palette="/tmp/palette.png" | |
filters="fps=25,scale=640:-1:flags=lanczos" | |
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette | |
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use to transform normals with transformation of | |
// arbitrary non-uniform scales (including negative) | |
// and skewing. The code assumes the last column of m is | |
// [0,0,0,1]. More info here: | |
// https://github.com/graphitemaster/normals_revisited | |
mat3 adjoint( in mat4 m ) | |
{ | |
return mat3( | |
m[1][1]*m[2][2]-m[1][2]*m[2][1], |
Originally posted in Google+ in 2012-10-28
Some weeks ago some people pointed me to +Steve Newcomb's "game engine" famo.us ($1.1M funding).
If you haven't seen it, here's their presentation at TechCrunch Disrupt:
http://techcrunch.com/2012/09/10/famo-us-is-a-gaming-engine-for-3d-interfaces/