#include "testApp.h" //-------------------------------------------------------------- void testApp::setup(){ ofVec3f centre=ofVec3f(ofGetWidth()/2,ofGetHeight(),0); ofVec3f normal=ofVec3f(0,0,1); ray=ofRay(); plane=ofPlane(centre,normal); projector=ofProjector(ofGetWidth(),ofGetHeight()); pos=ofVec3f(ofGetWidth()/2,ofGetHeight()/2,0); } //-------------------------------------------------------------- void testApp::update(){ } //-------------------------------------------------------------- void testApp::draw(){ ofBackground(0,0,0); plane.draw(); float gap=ofGetHeight()-ofGetWidth(); ofPushMatrix(); ofTranslate(0,ofGetHeight(),0); ofRotate(cam_angle,1,0,0); ofTranslate(0,-ofGetHeight(),0); for (float i=0;i