Ignore:
Timestamp:
08/31/08 15:27:31 (16 years ago)
Author:
mattausch
Message:

corrected views

File:
1 edited

Legend:

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

    r2887 r2888  
    103103bool SceneQuery::CalcIntersection(Vector3 &pt) 
    104104{ 
    105         const int px = (pt.x - mSceneBox.Min(0)) * (texWidth - 1) / mSceneBox.Size(0); 
    106         const int py = (pt.y - mSceneBox.Min(1)) * (texHeight - 1) / mSceneBox.Size(1); 
     105        const int px = (mSceneBox.Max(0) - pt.x) * (texWidth - 1) / mSceneBox.Size(0); 
     106        const int py = (mSceneBox.Max(1) - pt.y) * (texHeight - 1) / mSceneBox.Size(1); 
    107107 
    108108        float d = mDepth[px + py * texHeight]; 
     
    137137 
    138138        orthoCam->SetNear(0.0f); 
    139         orthoCam->SetDirection(Vector3(0, 0, 1)); 
     139        orthoCam->SetDirection(Vector3(0, 0, -1)); 
    140140 
    141141        cout << orthoCam->GetDirection() << endl; 
Note: See TracChangeset for help on using the changeset viewer.