- Timestamp:
- 06/29/08 03:33:43 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2806 r2807 234 234 } 235 235 236 camera->SetFar(0.7f * Magnitude(bvh->GetBox().Diagonal()));237 236 238 237 bvh->SetCamera(camera); … … 1001 1000 AxisAlignedBox3 box = bvh->GetBox(); 1002 1001 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; 1005 1007 1006 1008 Vector3 pos = camera->GetPosition(); 1007 1009 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); 1009 1011 1010 1012 visCamera->SetPosition(vizpos); … … 1015 1017 glLoadIdentity(); 1016 1018 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); 1018 1020 1019 1021 glMatrixMode(GL_MODELVIEW);
Note: See TracChangeset
for help on using the changeset viewer.