Skip to content

Instantly share code, notes, and snippets.

Elliot Woods elliotwoods

Block or report user

Report or block elliotwoods

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:9286438
#include "ofApp.h"
void ofApp::setup(){
ofSetWindowShape(512, 512);
this->x = 50.0f;
this->min = 0.0f;
View gist:d058807ffbe5207c0cc6
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
View gist:a66163a9fa3f0d8db838
#include "ofApp.h"
#include "ofAppGLFWWindow.h"
void ofApp::setup(){
auto result = ofSystemLoadDialog("Select mesh bin");
if (!result.bSuccess) {
elliotwoods / gist:c5986f04c75b4962d73e
Created Jul 21, 2014
results of matrix multiplication in openFrameworks
View gist:c5986f04c75b4962d73e
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;
View ofApp.cpp
#include "ofApp.h"
void ofApp::setup(){
//cam.setPosition(+100, 800, -100);
cam.rotate(90, +1, 0, 0);
View gist:83767a5bc9db3b2c51be
void MainLoop_OnPresent(object sender, EventArgs e)
if (FInWrite[0] && FInstance.Ready)
var data = FInstance.ReadBack(FInStorageFormat[0]);
if (data == null || data.Length < 16)
throw (new Exception("No data available"));
View FileTextureBaseNode.cs
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;
View gist:e5cc1779f6d75a768c96
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
View Scene.cpp
#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;
View gist:29dc853fce0a05e1c24b
You can’t perform that action at this time.