Ignore:
Timestamp:
06/22/08 09:33:20 (17 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
2 edited

Legend:

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

    r2796 r2797  
    3838        if (d > 0.0f) 
    3939        { 
    40                 pt.z =  mSceneBox.Min().z + mSceneBox.Size().z * d; 
     40                pt.z =  mSceneBox.Max().z - mSceneBox.Size().z * d; 
    4141                cout << "new depth " << pt.z << " (" << d << ")" << endl; 
    4242 
     
    6464        orthoCam->SetPosition(pos); 
    6565 
    66         glPixelStorei(GL_PACK_ROW_LENGTH, viewport[2]); 
     66        //glPixelStorei(GL_PACK_ROW_LENGTH, viewport[2]); 
    6767 
    6868        // hack: should create offscreen buffer for this 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r2796 r2797  
    233233        visualization = new Visualization(bvh, camera, NULL, &state); 
    234234 
    235         sceneQuery = new SceneQuery(bvh->GetBox(), traverser); 
     235        //sceneQuery = new SceneQuery(bvh->GetBox(), traverser); 
    236236 
    237237        glutMainLoop(); 
     
    495495         
    496496        Vector3 playerPos = camera->GetPosition(); 
    497         sceneQuery->CalcIntersection(playerPos); 
     497        //sceneQuery->CalcIntersection(playerPos); 
    498498        camera->SetPosition(playerPos); 
    499499 
Note: See TracChangeset for help on using the changeset viewer.