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
/* | |
Javascript port of CubicVR 3D engine for WebGL | |
by Charles J. Cliffe | |
http://www.cubicvr.org/ | |
May be used under the terms of LGPL v3.0 or greater. | |
*/ | |
var CubicVR = null; | |
var CubicVR_GLCore = new Object(); |
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
/* | |
Javascript port of CubicVR 3D engine for WebGL | |
by Charles J. Cliffe | |
http://www.cubicvr.org/ | |
May be used under the terms of LGPL v3.0 or greater. | |
*/ | |
var CubicVR = null; | |
var CubicVR_GLCore = new Object(); |
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
OSX MozAudio Build Guide: Audio13k | |
---------------------------------- | |
Acquire: | |
sudo port sync | |
sudo port install mercurial libidl autoconf213 | |
Get Source: First go to parent directory of where you'd like to checkout |
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
/* | |
P R O C E S S I N G . J S - Summit Version - f1lt3r, remote image, hint | |
a port of the Processing visualization language | |
License : MIT | |
Developer : John Resig: http://ejohn.org | |
Web Site : http://processingjs.org | |
Java Version : http://processing.org | |
Github Repo. : http://github.com/jeresig/processing-js |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <sys/time.h> | |
void gluInvertMatrix(const double m[16], double invOut[16]) | |
{ | |
double inv[16], det; | |
int i; |
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 multiSplit(split_str, split_chars) { | |
var arr = split_str.split(split_chars[0]); | |
for (var i = 1, iMax = split_chars.length; i < iMax; i++) { | |
var sc = split_chars[i]; | |
for (var j = 0, jMax = arr.length; j < jMax; j++) { | |
var arsplit = arr[j].split(sc); | |
if (arsplit.length > 1) { | |
for (var k = 0; k < arsplit.length; k++) { | |
if (arsplit[k].trim() !== "") { |
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
<script id="vs" type="x-shader/x-vertex"> | |
void main(void) | |
{ | |
vertexTexCoordOut = cubicvr_texCoord(); | |
gl_Position = matrixProjection * matrixModelView * cubicvr_transform(); | |
vertexNormalOut = matrixNormal * cubicvr_normal(); | |
cubicvr_lighting(); |
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
// SceneObject with motion constructor, xml/json/id/url compatible. | |
var boxObject = new CubicVR.SceneObject({ | |
mesh:boxMesh, | |
motion: { | |
position: { | |
0.0: { x: 0, y: 1 }, | |
1.0: { x: 1 }, | |
2.0: { x: -1, y: 0 }, | |
3.0: { x: -0.5 }, | |
4.0: { x: 0, y: 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
var interval; | |
// finishes when time-stepped 30fps reaches a virtual 20 seconds (600/30 = 20) | |
var ml = new CubicVR.MainLoop(function(timer,gl) { | |
// ... | |
if (timer.getNumUpdates()===600) { | |
clearInterval(interval); | |
finished(); | |
} | |
}, true, true); // true 3rd param prevents mainloop from starting.. |
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
``` | |
[DEBUG] stream re-init sps: 252 | |
[DEBUG] stream re-init numPackets*sps: 106848 | |
Set sample rate: 2560000 | |
mir_sdr_SetFs: Sample Freq requested 2559999.942780 | |
mir_sdr_2500_SetRegister(0x04, 0x05c28f) | |
mir_sdr_2500_SetRegister(0x03, 0x011797) | |
mir_sdr_SetFs: Fs->FsNomHz+dFsHz=2560000.0+0.0Hz=2559999.9Hz FsToggle->0 |
OlderNewer