From 0e8f0361c1068eb4c2f634dfcf4e1762d87f40d2 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sat, 31 Mar 2012 16:44:02 +0100 Subject: implementing trap door --- rayhit/src/testApp.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'rayhit/src/testApp.cpp') diff --git a/rayhit/src/testApp.cpp b/rayhit/src/testApp.cpp index 392e84d..5e1bd14 100644 --- a/rayhit/src/testApp.cpp +++ b/rayhit/src/testApp.cpp @@ -27,10 +27,10 @@ void testApp::setup(){ cam=ofCamera(); //cam defaults to (0,0,0); - cam.setPosition(ofGetWidth()/2,ofGetHeight()/2,ofGetHeight()); + cam.setPosition(ofGetWidth()/2,ofGetHeight()/2,-ofGetWidth()); //cam.setOrientation(ofVec3f(0,0,1)); - cam.lookAt(ofVec3f(ofGetWidth()/2,ofGetHeight()/2,0)); - cam.setFov(54.13); + cam.lookAt(ofVec3f(ofGetWidth()/2,ofGetHeight()/2,0),ofVec3f(0, -1, 0)); + cam.setFov(42.0); //39.85); //53.13); //ofVec3f campoint=cam.getLookAtDir(); //printf("camera at %f,%f,%f looking %f,%f,%f\n",cam.getX(),cam.getY(),cam.getZ(),campoint.x,campoint.y,campoint.z); cam_angle=0; @@ -49,7 +49,7 @@ void testApp::update(){ void testApp::draw(){ ofBackground(0,0,0); - //cam.begin(); + cam.begin(); plane.draw(); @@ -82,7 +82,7 @@ void testApp::draw(){ } */ - //cam.end(); + cam.end(); } -- cgit v1.2.3