- Timestamp:
- 08/31/08 15:27:31 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SceneQuery.cpp
r2887 r2888 103 103 bool SceneQuery::CalcIntersection(Vector3 &pt) 104 104 { 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); 107 107 108 108 float d = mDepth[px + py * texHeight]; … … 137 137 138 138 orthoCam->SetNear(0.0f); 139 orthoCam->SetDirection(Vector3(0, 0, 1));139 orthoCam->SetDirection(Vector3(0, 0, -1)); 140 140 141 141 cout << orthoCam->GetDirection() << endl;
Note: See TracChangeset
for help on using the changeset viewer.