void setup() { ofSetFrameRate(60); ofSetVerticalSync(true); ofBackground(0); video.loadMovie("../../../../../examples/video/videoPlayerExample/bin/data/movies/fingers.mov"); osc_in.setup(9999); ext_time = 0; }
void setup() { ofBackground(0); ofHideCursor(); cam.setup(); cam.set("","Black Syphon"); fisheye.setup(); screenshotTimer.setPeriod(60); ofXml config; config.load("config.xml"); osc.setup(config.getIntValue("osc/port")); oculusRift.baseCamera = &camera; oculusRift.setup(); }
void setup() { ofBackground(255); ofSetFrameRate(60); config.load("config.xml"); defaultLength = config.getFloatValue("cable/length/default"); minLength = config.getFloatValue("cable/length/min"); maxLength = config.getFloatValue("cable/length/max"); host = config.getValue("osc/host"); sendPort = config.getIntValue("osc/sendPort"); receivePort = config.getIntValue("osc/receive"); oscSend.setup(host, sendPort); oscReceive.setup(receivePort); local.setup("Local"); remote.setup("Remote"); zeros.setup("Zeros"); zeros.add(nwZero.setup("NW Zero")); zeros.add(neZero.setup("NE Zero")); zeros.add(seZero.setup("SE Zero")); zeros.add(swZero.setup("SW Zero")); nwZero.addListener(this, &ofApp::zeroNW); neZero.addListener(this, &ofApp::zeroNE); seZero.addListener(this, &ofApp::zeroSE); swZero.addListener(this, &ofApp::zeroSW); local.gui.loadFromFile("settings.xml"); local.gui.setPosition(10, 10); zeros.setPosition(10, 200); remote.gui.setPosition(10, 310); }