Ignore:
Timestamp:
01/18/09 19:45:20 (15 years ago)
Author:
mattausch
Message:

working on viz for submission

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/VisibilitySolutionLoader.cpp

    r3284 r3285  
    1818ViewCellsTree *VisibilitySolutionLoader::Load(const std::string &filename, 
    1919                                                                                          Bvh *bvh, 
    20                                                                                           float viewCellsScaleFactor) 
     20                                                                                          float &totalSamples, 
     21                                                                                          float &totalTime, 
     22                                                                                          float viewCellsScaleFactor 
     23                                                                                          ) 
    2124{ 
    2225        FILE *fr = fopen(filename.c_str(), "rb"); 
     
    3033        } 
    3134 
    32         float totalSamples; 
    33         float totalTime; 
    34  
    3535        fread(&totalSamples, sizeof(float), 1, fr); 
    3636        fread(&totalTime, sizeof(float), 1, fr); 
     
    157157        CreateIdSortedList2(bvh->GetStaticRoot(), nodes); 
    158158        //CreateIdSortedList(bvh, nodes); 
    159         ofstream outstream("test.log"); 
     159/*      ofstream outstream("test.log"); 
    160160 
    161161        BvhNode *f = ((BvhInterior *)bvh->GetStaticRoot())->GetFront(); 
     
    179179                } 
    180180        } 
    181                  
     181*/               
    182182        for (int i = 0; i < number; ++ i)  
    183183        { 
     184                if ((i % number / 10) ==  (number / 10 - 1)) 
     185                        cout << 100 * (i + 1) / 100 << "percent loaded" << endl; 
     186 
    184187                fread(&entries, sizeof(int), 1, fw); 
    185188 
     
    193196         
    194197                        BvhNode *node = nodes[objectId]; 
    195                         if (i == 100) 
    196                                 outstream << "t " << time << " "; 
     198                        //if (i == 100) outstream << "t " << time << " "; 
    197199                        mViewCells[i]->mPvs.AddEntry(bvh, node, time); 
    198200                } 
    199201        } 
    200202 
    201         outstream.close(); 
     203        //outstream.close(); 
    202204 
    203205        return true; 
Note: See TracChangeset for help on using the changeset viewer.