Changeset 416 for trunk/VUT


Ignore:
Timestamp:
11/15/05 18:10:53 (19 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/GtpVisibilityPreprocessor
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/scripts/default.env

    r415 r416  
    133133        #splitPlaneStrategy 130 
    134134         
    135         splitPlaneStrategy 8 
     135        splitPlaneStrategy 12 
    136136         
    137137        maxPolyCandidates 50 
  • trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.cpp

    r411 r416  
    9292 
    9393        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        { 
    9596                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        { 
    97101                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        } 
    98109 
    99110        return mRenderSimulator; 
  • trunk/VUT/GtpVisibilityPreprocessor/src/RenderSimulator.cpp

    r414 r416  
    7878                // compute render time of PVS times probability that view point is in view cell 
    7979                float vcCost = pInVc * RenderPvs(*(*it), mObjRenderCost); 
    80                  
     80                Debug << "p: " << pInVc << " rendercost: " << RenderPvs(*(*it), mObjRenderCost) << endl; 
    8181                renderTime += vcCost; 
    8282 
     
    9999        renderTime /= pInVcTotal; 
    100100        loadPvsOverhead /= pCrossVcTotal; 
     101 
     102        Debug << "bsp RT: " << renderTime << endl; 
     103        Debug << "bsp pvsOverhead: " << loadPvsOverhead << endl; 
    101104 
    102105        mStat.avgRtWithoutOverhead = renderTime; 
  • trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp

    r414 r416  
    548548                cout << "#totalKdPvsSize=" << mKdTree->CollectLeafPvs() << endl; 
    549549   
     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 
    550560        if (mBspTree) 
    551561        { 
    552                 //-- render simulation 
    553                 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  
    559562                //-- post processing of bsp view cells 
    560563        int vcSize = 0; 
     
    599602                         
    600603                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; 
    604608 
    605609                if (1) // export view cells 
     
    660664        //-- several visualizations and statistics 
    661665        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         } 
    671666 
    672667   for (int k=0; k < pvsOut; k++) { 
Note: See TracChangeset for help on using the changeset viewer.