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
void testApp::setup(){ | |
ofBackground(0, 0, 0); | |
ofSetVerticalSync(true); | |
ofSetLogLevel(OF_LOG_VERBOSE); | |
ancho = 640; | |
alto = 480; | |
///// lo lleno al tuntun | |
for(int y = 0; y < alto ; y++){ | |
for (int x=0; x<ancho; x++) { |
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
stty raw crtscts -F /dev/ttyAMA0 |
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
http://smbjorklund.no/ssh-login-without-password-using-os-x |
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
http://www.markszulc.com/blog/2012/09/03/installing-ffmpeg-with-h264-support-on-mac-os-x-mountain-lion/ |
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
ofxGstreamer | |
descargar addon | |
https://github.com/arturoc/ofxGStreamer | |
- http://mknod.jp/?cat=13 | |
descargar e instalar | |
+ http://gstreamer.freedesktop.org/data/pkg/osx/1.2.2/gstreamer-1.0-1.2.2-universal.pkg | |
+ http://gstreamer.freedesktop.org/data/pkg/osx/1.0.8/gstreamer-1.0-1.0.8-universal.pkg | |
+ http://gstreamer.freedesktop.org/data/pkg/osx/1.2.1/gstreamer-1.0-1.2.1-universal-packages.dmg |
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
ofColor getAverageColor(const ofPixels & pix) { | |
int pixelSize = pix.size(); | |
int r = 0, g = 0, b = 0; | |
for (int i=0; i<pixelSize; i++) { | |
ofColor c = pix[i]; | |
r += (c >> 16) & 0xFF; | |
g += (c >> 8) & 0xFF; |
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
cd /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns | |
sudo mv AppleUSBFTDI.kext AppleUSBFTDI.disabled | |
sudo touch /System/Library/Extensions | |
/// restart | |
-install driver |
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
varying vec2 TexCoord; | |
void main(void) | |
{ | |
TexCoord = gl_MultiTexCoord0.st; | |
gl_Position = ftransform(); | |
} | |
/////// | |
varying vec2 TexCoord; |
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
#version 150 | |
//precision mediump float; | |
uniform sampler2DRect tex0; | |
uniform sampler2DRect u_Texture2; | |
in vec2 v_TexCoordinate; | |
out vec4 fragColor; | |
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
#version 150 | |
uniform mat4 projectionMatrix; | |
uniform mat4 modelViewMatrix; | |
uniform mat4 modelViewProjectionMatrix; | |
in vec4 position; | |
in vec2 texcoord; | |
out vec2 v_TexCoordinate; |
OlderNewer