Skip to content

Instantly share code, notes, and snippets.

View elliotwoods's full-sized avatar

Elliot Woods elliotwoods

View GitHub Profile
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofxAssets::AssetRegister.addAddon("ofxCvGui");
ofSetWindowShape(512, 512);
ofSetFrameRate(60.0f);
this->x = 50.0f;
this->min = 0.0f;
libopencv_core.a(algorithm.o):
00078e14 s EH_frame0
00078e84 s EH_frame1
0006e0b4 s GCC_except_table105
0006e804 s GCC_except_table106
0006e8c4 s GCC_except_table111
0006e940 s GCC_except_table112
0006e9f8 s GCC_except_table131
0006ea10 s GCC_except_table133
#include "ofApp.h"
#include "ofAppGLFWWindow.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetVerticalSync(true);
ofBackground(0);
auto result = ofSystemLoadDialog("Select mesh bin");
if (!result.bSuccess) {
@elliotwoods
elliotwoods / gist:c5986f04c75b4962d73e
Created July 21, 2014 17:00
results of matrix multiplication in openFrameworks
cout << ((ofMatrix4x4::newTranslationMatrix(1.0f, 0.0f, 0.0f) * ofMatrix4x4::newScaleMatrix(0.0f, 0.0f, 0.0f)) * ofVec3f(1.0f, 0.0f, 0.0f)) << endl;
//0, 0, 0
cout << ((ofMatrix4x4::newScaleMatrix(0.0f, 0.0f, 0.0f) * ofMatrix4x4::newTranslationMatrix(1.0f, 0.0f, 0.0f)) * ofVec3f(1.0f, 0.0f, 0.0f)) << endl;
//0, 0, 0
cout << ((ofMatrix4x4::newTranslationMatrix(1.0f, 0.0f, 0.0f) * ofMatrix4x4::newScaleMatrix(0.0f, 0.0f, 0.0f)) * ofVec4f(1.0f, 0.0f, 0.0f, 1.0f)) << endl;
//0, 0, 0, 1
cout << ((ofMatrix4x4::newScaleMatrix(0.0f, 0.0f, 0.0f) * ofMatrix4x4::newTranslationMatrix(1.0f, 0.0f, 0.0f)) * ofVec4f(1.0f, 0.0f, 0.0f, 1.0f)) << endl;
@elliotwoods
elliotwoods / ofApp.cpp
Last active August 29, 2015 14:04
handProject
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
cam.setFixUpwards(false);
cam.setCursorDraw(true);
//cam.setPosition(+100, 800, -100);
cam.rotate(90, +1, 0, 0);
@elliotwoods
elliotwoods / gist:83767a5bc9db3b2c51be
Created August 12, 2014 10:56
old dds implementation
void MainLoop_OnPresent(object sender, EventArgs e)
{
if (FInWrite[0] && FInstance.Ready)
{
try
{
var data = FInstance.ReadBack(FInStorageFormat[0]);
if (data == null || data.Length < 16)
{
throw (new Exception("No data available"));
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using SlimDX;
using SlimDX.Direct3D11;
using VVVV.PluginInterfaces.V1;
There was an error during the execution of this program.
The application might become unstable and even useless.
It's recommended that you save your work and close this application.
The composition remains unchanged. The changes were rejected because of the following error(s): The composition produced multiple composition errors, with 4 root causes. The root causes are provided below. Review the CompositionException.Errors property for more detailed information.
1) More than one export was found that matches the constraint:
ContractName VVVV.PluginInterfaces.V2.IStartableRegistry
RequiredTypeIdentity VVVV.PluginInterfaces.V2.IStartableRegistry
#include "Scene.h"
const ofVec3f roomMin(0.0f, 0.0f, 0.0f);
const ofVec3f roomMax(11.0f, 5.0f, 7.5f);
const ofVec3f roomScale = roomMax - roomMin;
const ofVec3f roomCenter = (roomMin + roomMax) / 2.0f;
//----------
Scene::Scene() {
this->grid = false;
https://link.getsync.com/?f=Music&sz=0&s=JKAQO4UBUJ7XISSHO2DX5LUQULUPOYDO&i=CRJL7MYV4CXGLNHAL7P2JKKXUWLETPD5K&p=CCSPRMMA75O6XVNFEZJVOS3A4FDD2HVN&e=1412072628