Changeset 2807 for GTP


Ignore:
Timestamp:
06/29/08 03:33:43 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2806 r2807  
    234234        } 
    235235 
    236         camera->SetFar(0.7f * Magnitude(bvh->GetBox().Diagonal())); 
    237236 
    238237        bvh->SetCamera(camera); 
     
    10011000        AxisAlignedBox3 box = bvh->GetBox(); 
    10021001 
    1003         const float xoffs = box.Size().x * 0.5f; 
    1004         const float yoffs = box.Size().y * 0.5f; 
     1002        // set far for viz 
     1003        camera->SetFar(0.35f * Magnitude(box.Diagonal())); 
     1004 
     1005        const float offs = box.Size().x * 0.3f; 
     1006        //const float yoffs = box.Size().y * 0.5f; 
    10051007 
    10061008        Vector3 pos = camera->GetPosition(); 
    10071009 
    1008         Vector3 vizpos = Vector3(box.Min().x, box.Min().y + 700, box.Min().z + box.Size().z * 50); 
     1010        Vector3 vizpos = Vector3(box.Min().x + 20, box.Min().y + 500, box.Min().z + box.Size().z * 50); 
    10091011         
    10101012        visCamera->SetPosition(vizpos); 
     
    10151017        glLoadIdentity(); 
    10161018         
    1017         glOrtho(-xoffs, xoffs, -xoffs, xoffs, 0.0f, box.Size().z * 100.0f);  
     1019        glOrtho(-offs, offs, -offs, offs, 0.0f, box.Size().z * 100.0f);  
    10181020 
    10191021        glMatrixMode(GL_MODELVIEW); 
Note: See TracChangeset for help on using the changeset viewer.