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
shader.begin(); | |
shader.setUniformTexture("tex", buffer.getTexture(), 0);//白黒の図形を描画したofFbo | |
if (currentVid->isFrameNew()) | |
shader.setUniformTexture("video", currentVid->getTexture(), 1);//ofVideoPlayerのテクスチャ | |
shader.setUniform4f("pl_1", pal.getColorArray(currentPalette)[0]);//配色用のofFloatColor配列 | |
shader.setUniform4f("pl_2", pal.getColorArray(currentPalette)[1]); | |
shader.setUniform4f("pl_3", pal.getColorArray(currentPalette)[2]); | |
shader.setUniform4f("pl_4", pal.getColorArray(currentPalette)[3]); |
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
#include "ofApp.h" | |
//-------------------------------------------------------------- | |
void ofApp::setup(){ | |
ofBackground(0); | |
ofSetDepthTest(true); | |
ofSetRectMode(OF_RECTMODE_CENTER); | |
posA.set(-80, -90, -200); // 開始点を設定 | |
posB.set(100, 120, 130); // 終了点を設定 |
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 liveCamKit::setup() | |
{ | |
flag_checkCutUp = true; | |
lastFrame = 0; | |
} | |
void liveCamKit::update() | |
{ | |
if (source && source->isFrameNew()) | |
{ |
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
#include "main.h" | |
using namespace std; | |
int main(){ | |
atexit(onExit); | |
gpio_init(); | |
phase = PHASE_OFF; |
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
MultiMeshDistort multiMesh; | |
void testApp::update(){ | |
//マウス追従します。multiMesh.update(true);でも同じ処理を試せます | |
clearPoint(); | |
addPoint(ofVec2f(ofGetMouseX(),ofGetMouseY()), | |
200.0, | |
sin(ofGetElapsedTimef())*50.0+50.0, false); |
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
// | |
// ofxSimpleTheta.h | |
// ofxSimpleTheta | |
// | |
// Created by Ovis aries on 2014/01/11. | |
// | |
// | |
#ifndef ofxSimpleTheta_ofxSimpleTheta_h | |
#define ofxSimpleTheta_ofxSimpleTheta_h |
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
#include "littleTimeSequencer.h" | |
void littleTimeSequencer::setup(float duration, bool bLoop) | |
{ | |
targDuration = duration; | |
isPlaying = false; | |
isPause = false; | |
isLoop = bLoop; |