diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-03-31 16:44:02 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-03-31 16:44:02 +0100 |
| commit | 0e8f0361c1068eb4c2f634dfcf4e1762d87f40d2 (patch) | |
| tree | 96a4eb154c1ac2dbe5ad4e04d4e33b281832e441 /rayhit/src | |
| parent | 623e1924aeea83ea70c8ae7f645b067f17a293ea (diff) | |
implementing trap door
Diffstat (limited to 'rayhit/src')
| -rw-r--r-- | rayhit/src/testApp.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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(); } |
