Skip to content

Instantly share code, notes, and snippets.

@ofTheo
ofTheo / gist:4685231
Created January 31, 2013 18:45
faster ofQTKitVideoGrabber uses 32ARGB as capture format and then swizzles with the old convertPixels function from ofQTUtils.cpp messy and hacky ( uses extern ) but useful to try out. it also prints out frame latency (seconds) and fps.
#include "ofQTKitGrabber.h"
#import <QTKit/QTKit.h>
#import <QuickTime/QuickTime.h>
//This Objective-C class contains all the OS specific
//Stuff we need for pulling images from a video camera feed
//the QTCaptureVideoPreviewOutput is a non-blocking frame receiver delegate
//for a QTCaptureSession
@ofTheo
ofTheo / gist:4259544
Created December 11, 2012 15:51
iosE2ShaderExample - try uncommenting line 13
#include "testApp.h"
#include "ofGLES2Renderer.h"
ofEasyCam cam;
//--------------------------------------------------------------
void testApp::setup(){
ofBackground(40);
ofSetVerticalSync(false);
ofEnableAlphaBlending();
@ofTheo
ofTheo / gist:4245137
Created December 9, 2012 14:19
OF iOS image picker from library example
#include "testApp.h"
ofxiPhoneImagePicker camera;
ofImage photo;
//--------------------------------------------------------------
void testApp::setup(){
ofBackground(0);
}
3d/advanced3dExample/
3d/cameraParentingExample/
3d/cameraRibbonExample/
3d/easyCamExample/
3d/meshFromCamera/
3d/modelNoiseExample/
3d/normalsExample/
3d/ofBoxExample/
3d/orientationExample/
3d/pointCloudExample/
@ofTheo
ofTheo / gist:2836647
Created May 30, 2012 14:26
0071 git commit log
8fdd2f1 Re-enabled MoviesTask in ofQuickTimePlayer to fix multithreaded movie playback
a6d738a fixes for iphone sound stream
d549e09 updated arch install scripts, added arch to readme.linux
c6053ab ofRectangle: Added ofPoint-based constructor to be consistent with the corresponding set(ofPoint ...) function.
895b000 Replaced relative paths with OF_ROOT
c474e7c removed if statement in ofRectangle::inside()function to be consistent with the ofRectangle::== and ofRectangle::!= operators.
f1e9cc4 Added linux 32 bit fullCBP.
9115253 Fixed makefile exclude dirs.
3c0cd68 fixed vc project for advanced3d example
bcc4b07 removed unnecessary project vs2010
if( settings.useDepth ){
if(settings.depthAsTexture){ //depth as a texture - possibly stencil also.
//TODO: add depthAsTexture support for iOS / Android
#ifndef TARGET_OPENGLES
GLuint attachment;
depthBufferTex.texData.textureTarget = settings.textureTarget;
if( settings.useStencil ){
#include "ofConstants.h"
#include "ofFbo.h"
#include "ofAppRunner.h"
#include "ofUtils.h"
#include "ofGraphics.h"
#include "ofGLRenderer.h"
#include <map>
//#ifndef TARGET_OPENGLES
#include "ofConstants.h"
#include "ofFbo.h"
#include "ofAppRunner.h"
#include "ofUtils.h"
#include "ofGraphics.h"
#include "ofGLRenderer.h"
#include <map>
//#ifndef TARGET_OPENGLES
/*
---------------------------------------------------------------------------
Open Asset Import Library (ASSIMP)
---------------------------------------------------------------------------
Copyright (c) 2006-2010, ASSIMP Development Team
All rights reserved.
Redistribution and use of this software in source and binary forms,
@ofTheo
ofTheo / gist:2661196
Created May 11, 2012 17:31
fbo test example.
#include "testApp.h"
ofFbo fbo;
//--------------------------------------------------------------
void testApp::setup(){
//ofxiPhoneSetOrientation(OFXIPHONE_ORIENTATION_LANDSCAPE_RIGHT);
bikers.loadImage("images/bikers.jpg");
gears.loadImage("images/gears.gif");
tdf.loadImage("images/tdf_1972_poster.jpg");