- Timestamp:
- 01/11/07 23:46:10 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlobalLinesRenderer.cpp
r1969 r1970 278 278 else 279 279 mNewTexture->BindDepth(); 280 280 281 mNewTexture->EnableTextureTarget(); 281 282 … … 359 360 void GlobalLinesRenderer::InitScene(const float alpha, const float beta) 360 361 { 361 cout << "here44"<<endl;362 362 AxisAlignedBox3 bbox = 363 363 globalLinesRenderer->mPreprocessor->mKdTree->GetBox(); 364 cout << "here77"<<endl; 364 365 365 const float sceneSize = Magnitude(bbox.Diagonal()); 366 366 … … 457 457 458 458 const float rays_per_sec = rays.size() / TimeDiff(startTime, GetTime()) * 1e-3; 459 cout << "cast " << rays.size() << " samples in " << layers << " layers in " << TimeDiff(startTime, GetTime()) * 1e-3 << " secs (" << rays_per_sec << " r / s)" << endl;459 cout << "cast " << rays.size() << " samples in " << layers << " layers in " << TimeDiff(startTime, GetTime()) * 1e-3 << " secs (" << rays_per_sec << " rays/sec)" << endl; 460 460 return layers; 461 461 } … … 505 505 { 506 506 InitDevIl(); 507 507 cout << "texwidth: " << mTexWidth << " texheight: " << mTexHeight << endl; 508 508 glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE); 509 509 glutInitWindowPosition(50, 50); … … 567 567 // depth and stencil. 568 568 // Note that RT_COPY_TO_TEXTURE is required for depth textures on ATI hardware 569 cout << "texwidth: " << mTexWidth << " texheight: " << mTexHeight << endl; 569 570 570 mNewTexture = new RenderTexture(mTexWidth, mTexHeight, true, true); 571 571 #ifdef ATI … … 633 633 cgGLLoadProgram(sCgPassThroughProgram); 634 634 } 635 cout << "here45" << endl; 635 636 636 const float alpha = 1.1; 637 637 const float beta = 0.9; 638 638 639 InitScene(alpha, beta); 639 cout << "here4005" << endl; 640 640 641 PrintGLerror("init"); 641 642 } … … 781 782 Vector3 clippedOldPt, clippedNewPt; 782 783 783 ClipToViewSpaceBox(oldPt, newPt, clippedOldPt, clippedNewPt);if(1)784 if (ClipToViewSpaceBox(oldPt, newPt, clippedOldPt, clippedNewPt))//;if(1) 784 785 { 785 786 //clippedOldPt = oldPt; … … 818 819 //const AxisAlignedBox3 bbox = mPreprocessor->mViewCellsManager->GetViewSpaceBox(); 819 820 // hack 820 constAxisAlignedBox3 bbox = mPreprocessor->mKdTree->GetBox();821 822 if ((!bbox.ComputeMinMaxT(ray, &tmin, &tmax)) ||823 tmin>=tmax)821 AxisAlignedBox3 bbox = mPreprocessor->mKdTree->GetBox(); 822 823 //bbox.Enlarge(1); 824 if (!bbox.ComputeMinMaxT(ray, &tmin, &tmax) || (tmin >= tmax)) 824 825 { 825 826 return false; 826 827 } 827 828 828 if (tmin >= 1.0f || tmax <= 0.0f)829 if (tmin >= 1.0f || tmax <= 0.0f) 829 830 return false; 830 831 -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r1969 r1970 1373 1373 sampleReverse); 1374 1374 1375 cout << "here2" << endl;1376 1375 mGlobalLinesRenderer->InitGl(); 1377 cout << "here8" << endl; 1378 //return mGlobalLinesRenderer; 1379 } 1380 1381 } 1376 } 1377 1378 } -
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r1969 r1970 272 272 273 273 preprocessor->PrepareHwGlobalLines(); 274 //globalLinesRenderer = new GlobalLinesRenderer(preprocessor); 275 //globalLinesRenderer->InitGl(); 276 cout << "here22" << endl; 274 277 275 globalLinesRenderer->Run(); 278 276
Note: See TracChangeset
for help on using the changeset viewer.