- Timestamp:
- 01/18/09 19:45:20 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/VisibilitySolutionLoader.cpp
r3284 r3285 18 18 ViewCellsTree *VisibilitySolutionLoader::Load(const std::string &filename, 19 19 Bvh *bvh, 20 float viewCellsScaleFactor) 20 float &totalSamples, 21 float &totalTime, 22 float viewCellsScaleFactor 23 ) 21 24 { 22 25 FILE *fr = fopen(filename.c_str(), "rb"); … … 30 33 } 31 34 32 float totalSamples;33 float totalTime;34 35 35 fread(&totalSamples, sizeof(float), 1, fr); 36 36 fread(&totalTime, sizeof(float), 1, fr); … … 157 157 CreateIdSortedList2(bvh->GetStaticRoot(), nodes); 158 158 //CreateIdSortedList(bvh, nodes); 159 ofstream outstream("test.log");159 /* ofstream outstream("test.log"); 160 160 161 161 BvhNode *f = ((BvhInterior *)bvh->GetStaticRoot())->GetFront(); … … 179 179 } 180 180 } 181 181 */ 182 182 for (int i = 0; i < number; ++ i) 183 183 { 184 if ((i % number / 10) == (number / 10 - 1)) 185 cout << 100 * (i + 1) / 100 << "percent loaded" << endl; 186 184 187 fread(&entries, sizeof(int), 1, fw); 185 188 … … 193 196 194 197 BvhNode *node = nodes[objectId]; 195 if (i == 100) 196 outstream << "t " << time << " "; 198 //if (i == 100) outstream << "t " << time << " "; 197 199 mViewCells[i]->mPvs.AddEntry(bvh, node, time); 198 200 } 199 201 } 200 202 201 outstream.close();203 //outstream.close(); 202 204 203 205 return true;
Note: See TracChangeset
for help on using the changeset viewer.