Skip to content

Instantly share code, notes, and snippets.

View elliotwoods's full-sized avatar

Elliot Woods elliotwoods

View GitHub Profile
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <cv.h>
#include <highgui.h>
using namespace cv;
using namespace std;
CANON SOFTWARE DEVELOPMENT KIT DISTRIBUTION AGREEMENT
ATTENTION: PLEASE READ THIS DOCUMENT. THIS IS AN AGREEMENT BETWEEN YOU, THE DEVELOPER OF SOFTWARE SOLUTIONS ("DEVELOPER"), AND CANON EUROPA N.V., HAVING ITS PLACE OF BUSINESS AT, BOVENKERKERWEG 59-61, 1185 XB, AMSTELVEEN, THE NETHERLANDS, THE OWNER OF THE SOFTWARE, AS HEREINAFTER DEFINED ("CANON").
BY SELECTING THE "ACCEPT" BUTTON AT THE BOTTOM OF THIS AGREEMENT YOU AGREE TO BE BOUND BY THE TERMS OF THIS AGREEMENT AND WILL BE ABLE TO DOWNLOAD THE SOFTWARE. IF YOU SELECT "DECLINE", THE SOFTWARE SHALL NOT BE ACCESSIBLE.
WHEREAS, Canon has developed and/or possesses the rights to license certain Software, (as described below), and Developer desires to distribute the Software as part of a software package developed or to be developed or enhanced by Developer ("Developer Software Package");
The license set forth below is given by Canon with respect to the software files and associated on-line or electronic documentation which are downloaded from Canon’s web
#region usings
using System;
using System.ComponentModel.Composition;
using System.Runtime.InteropServices;
using SlimDX;
//using SlimDX.Direct3D9;
using VVVV.Core.Logging;
using VVVV.PluginInterfaces.V1;
using VVVV.PluginInterfaces.V2;
@elliotwoods
elliotwoods / etherdream.cpp
Created August 9, 2016 06:07
Etherdream cross-platform (C++11)
/* Ether Dream interface library
*
* Copyright 2011-2012 Jacob Potter
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of either the GNU General Public License version 2
* or 3, or the GNU Lesser General Public License version 3, as published
* by the Free Software Foundation, at your option.
*
* This program is distributed in the hope that it will be useful,
@elliotwoods
elliotwoods / ofApp.cpp
Created July 2, 2016 02:17
ofxMultiTrack test osc subscrier
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
this->receiver.setup(4444);
this->subscriber.setup("localhost", 2046);
{
ofxOscMessage message;
message.setAddress("/addClient");
@elliotwoods
elliotwoods / FileTexture.cs
Created June 14, 2016 07:00
FreeImage version of FileTexture for DX11
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VVVV.PluginInterfaces.V2;
using VVVV.DX11;
using FeralTic.DX11.Resources;
using VVVV.PluginInterfaces.V1;
using System.ComponentModel.Composition;
using FeralTic.DX11;
#include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main( ){
ofGLFWWindowSettings windowSettings;
windowSettings.glVersionMajor = 4;
windowSettings.glVersionMinor = 0;
auto window = ofCreateWindow(windowSettings);
@elliotwoods
elliotwoods / alphafbo.cpp
Created May 26, 2016 04:40 — forked from HalfdanJ/alphafbo.cpp
ofFbo with premultiplied alpha
// Kudos to armadilly
fbo.begin();
{
///pre-multiply background color of the fbo for correct blending!
ofClear(ofColor(fboBgColor * (fboBgColor.a / 255.) , fboBgColor.a));
//Set this blending mode for anything you draw INSIDE the fbo
glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
//your draw code here!
}
@elliotwoods
elliotwoods / LightField.hpp
Created May 20, 2016 02:47
Light Field rendering techniques
Texture2D RayStart : PREVIOUS;
Texture2D RayTransmit;
Texture2D MirrorData;
class Ray {
bool valid;
float3 s;
float3 t;
int mirrorIndex;
The C compiler identification is MSVC 19.0.23506.0
The CXX compiler identification is MSVC 19.0.23506.0
Check for working C compiler using: Visual Studio 14 2015 Win64
Check for working C compiler using: Visual Studio 14 2015 Win64 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 14 2015 Win64
Check for working CXX compiler using: Visual Studio 14 2015 Win64 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done