Changeset 362
- Timestamp:
- 10/23/06 15:46:03 (2 years ago)
- Files:
-
- branches/Dirk_RenderTraversalWork/Source/System/Action/RenderTraversal/OSGScreenLOD.inl (modified) (2 diffs)
- branches/Dirk_RenderTraversalWork/Source/System/Action/RenderTraversal/testOcclusionCulling.cpp (modified) (4 diffs)
- branches/Dirk_RenderTraversalWork/Source/System/RenderingBackend/OSGDrawEnv.inl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Dirk_RenderTraversalWork/Source/System/Action/RenderTraversal/OSGScreenLOD.inl
r360 r362 57 57 { 58 58 Matrixr worldToScreen; 59 #if 1 59 #if 1 60 60 Camera* cam = ra->getCamera(); 61 61 Viewport* vp = ra->getViewport(); … … 151 151 } 152 152 153 if (index >= numLevels) 154 { 155 index=numLevels-1; 156 } 157 153 158 154 159 ra->useNodeList(); branches/Dirk_RenderTraversalWork/Source/System/Action/RenderTraversal/testOcclusionCulling.cpp
r360 r362 51 51 RenderAction *act = NULL; 52 52 RenderAction *debugact = NULL; 53 54 // create the scene 55 NodePtr scene; 53 56 54 57 GLUTWindowPtr mainwin; … … 543 546 break; 544 547 548 case 'W': 549 { 550 std::string sss = "out.osb"; 551 OSG::SceneFileHandler::the()->write(scene, sss.c_str()); 552 } 553 break; 554 545 555 #ifdef OSG_WITH_NVPERFSDK 546 556 case 'e': … … 580 590 } 581 591 582 // create the scene583 NodePtr scene;584 592 585 593 if(argc > 1) … … 603 611 glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE); 604 612 605 glutInitWindowSize( 500, 500);613 glutInitWindowSize(1024, 768); 606 614 mainwinid = glutCreateWindow("OpenSG"); 607 615 branches/Dirk_RenderTraversalWork/Source/System/RenderingBackend/OSGDrawEnv.inl
r361 r362 79 79 { 80 80 _cameraViewing = matrix; 81 _cameraToWorld.invertFrom(matrix); 81 82 _worldToScreen.setValue(_cameraProjection); 82 83 _worldToScreen.mult(_cameraProjectionTrans); 83 84 _worldToScreen.mult(_cameraViewing); 84 85 85 } 86 86 … … 113 113 const Matrixr &DrawEnv::getWorldToScreen(void) const 114 114 { 115 return _ cameraToWorld;115 return _worldToScreen; 116 116 } 117 117
