- Timestamp:
- 11/15/05 18:10:53 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/scripts/default.env
r415 r416 133 133 #splitPlaneStrategy 130 134 134 135 splitPlaneStrategy 8135 splitPlaneStrategy 12 136 136 137 137 maxPolyCandidates 50 -
trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.cpp
r411 r416 92 92 93 93 Debug << "render simulator using render cost=" << objRenderCost << ", vc overhead=" << vcOverhead << ", move speed=" << moveSpeed << endl; 94 if (ViewCell::sHierarchy = ViewCell::BSP) 94 if (ViewCell::sHierarchy == ViewCell::BSP) 95 { 95 96 mRenderSimulator = new BspViewCellRenderSimulator(objRenderCost, vcOverhead, moveSpeed, mBspTree); 96 else // KD view cells 97 Debug << "creating bsp render simulator" << endl; 98 } 99 else if (ViewCell::sHierarchy == ViewCell::KD)// KD view cells 100 { 97 101 mRenderSimulator = new KdViewCellRenderSimulator(objRenderCost, vcOverhead, moveSpeed, mKdTree); 102 Debug << "creating kd render simulator" << endl; 103 } 104 else 105 { 106 Debug << "not implemented yet" << endl; 107 return NULL; 108 } 98 109 99 110 return mRenderSimulator; -
trunk/VUT/GtpVisibilityPreprocessor/src/RenderSimulator.cpp
r414 r416 78 78 // compute render time of PVS times probability that view point is in view cell 79 79 float vcCost = pInVc * RenderPvs(*(*it), mObjRenderCost); 80 80 Debug << "p: " << pInVc << " rendercost: " << RenderPvs(*(*it), mObjRenderCost) << endl; 81 81 renderTime += vcCost; 82 82 … … 99 99 renderTime /= pInVcTotal; 100 100 loadPvsOverhead /= pCrossVcTotal; 101 102 Debug << "bsp RT: " << renderTime << endl; 103 Debug << "bsp pvsOverhead: " << loadPvsOverhead << endl; 101 104 102 105 mStat.avgRtWithoutOverhead = renderTime; -
trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp
r414 r416 548 548 cout << "#totalKdPvsSize=" << mKdTree->CollectLeafPvs() << endl; 549 549 550 //-- render simulation 551 cout << "\nevaluating bsp view cells render time before merge ... "; 552 GetRenderSimulator()->SimulateRendering(); 553 554 cout << " finished" << endl; 555 556 cout << GetRenderSimulator()->mStat << endl; 557 Debug << GetRenderSimulator()->mStat << endl; 558 559 550 560 if (mBspTree) 551 561 { 552 //-- render simulation553 cout << "\nevaluating bsp view cells render time before merge ... ";554 GetRenderSimulator()->SimulateRendering();555 556 cout << "avg render time: " << GetRenderSimulator()->mStat << endl;557 Debug << "avg render time: " << GetRenderSimulator()->mStat << endl;558 559 562 //-- post processing of bsp view cells 560 563 int vcSize = 0; … … 599 602 600 603 GetRenderSimulator()->SimulateRendering(); 601 602 cout << "render time: " << GetRenderSimulator()->mStat << endl; 603 Debug << "render time: " << GetRenderSimulator()->mStat << endl; 604 cout << " finished" << endl; 605 606 cout << GetRenderSimulator()->mStat << endl; 607 Debug << GetRenderSimulator()->mStat << endl; 604 608 605 609 if (1) // export view cells … … 660 664 //-- several visualizations and statistics 661 665 if (1) { 662 663 if (ViewCell::sHierarchy == ViewCell::KD)664 {665 cout << "\nevaluating kd view cells render time ... ";666 Real rt = GetRenderSimulator()->SimulateRendering();667 668 cout << "avg render time: " << rt * 1e-3 << endl;669 Debug << "avg render time: " << rt * 1e-3 << endl;670 }671 666 672 667 for (int k=0; k < pvsOut; k++) {
Note: See TracChangeset
for help on using the changeset viewer.