Ignore:
Timestamp:
07/21/08 03:12:51 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SceneQuery.cpp

    r2838 r2848  
    77#include <IL/il.h> 
    88#include <assert.h> 
    9 #include "RenderTexture.h" 
     9//#include "RenderTexture.h" 
    1010 
    1111 
    1212using namespace std; 
    1313 
    14 static int texWidth = 2048; 
    15 static int texHeight = 2048; 
     14const static int texWidth = 2048; 
     15const static int texHeight = 2048; 
    1616 
    1717 
     
    107107        { 
    108108                // temporal smoothing of depth values 
    109                 const float x = 0.5f; 
     109                const float x = .5f; 
    110110                depth = d * x + depth * (1.0f - x); 
    111111 
     
    131131 
    132132        orthoCam->SetNear(0.0f); 
    133         orthoCam->Yaw(-M_PI * 0.5f); 
     133        orthoCam->Yaw(M_PI * 0.5f); 
    134134 
    135135        Vector3 pos = Vector3(mSceneBox.Center().x, mSceneBox.Center().y, mSceneBox.Max().z); 
     
    165165                glPushMatrix(); 
    166166 
    167                 glOrtho(-xlen, xlen, -ylen, ylen, 0.0f, mSceneBox.Size().z);  
     167                glOrtho(+xlen, -xlen, ylen, -ylen, 0.0f, mSceneBox.Size().z);  
    168168 
    169169                glMatrixMode(GL_MODELVIEW); 
     
    185185 
    186186        GrabDepthBuffer(mDepth, depthTexture); 
    187         //ExportDepthBuffer(mDepth); 
    188         //PrintGLerror("grab"); 
     187        ExportDepthBuffer(mDepth); 
     188        PrintGLerror("grab"); 
    189189 
    190190        DEL_PTR(depthTexture); 
Note: See TracChangeset for help on using the changeset viewer.