Changeset 574 for trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.cpp
- Timestamp:
- 01/25/06 01:44:46 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.cpp
r567 r574 194 194 environment->GetStringValue("ViewCells.type", viewCellsStr); 195 195 196 int constructionSamples = 0;196 int initialSamples = 0; 197 197 198 198 if (strcmp(viewCellsStr, "kdTree") == 0) … … 206 206 Debug << "view cell type: Bsp" << endl; 207 207 208 environment->GetIntValue("BspTree.Construction.samples", constructionSamples); 209 mViewCellsManager = new BspViewCellsManager(mBspTree, constructionSamples); 208 mViewCellsManager = new BspViewCellsManager(mBspTree); 210 209 } 211 210 else if (strcmp(viewCellsStr, "vspBspTree") == 0) … … 215 214 Debug << "view cell type: VspBsp" << endl; 216 215 217 environment->GetIntValue("VspBspTree.Construction.samples", constructionSamples); 218 mViewCellsManager = new VspBspViewCellsManager(mVspBspTree, constructionSamples); 216 mViewCellsManager = new VspBspViewCellsManager(mVspBspTree); 219 217 } 220 218 else if (strcmp(viewCellsStr, "vspKdTree") == 0) … … 222 220 mVspKdTree = new VspKdTree(); 223 221 224 environment->GetIntValue("VspKdTree.Construction.samples", constructionSamples); 225 mViewCellsManager = new VspKdViewCellsManager(mVspKdTree, constructionSamples); 222 mViewCellsManager = new VspKdViewCellsManager(mVspKdTree); 226 223 } 227 224 else if (strcmp(viewCellsStr, "sceneDependent") == 0) … … 231 228 232 229 Debug << "view cell type: Bsp" << endl; 233 environment->GetIntValue("BspTree.Construction.samples", constructionSamples);234 mViewCellsManager = new BspViewCellsManager(mBspTree , constructionSamples);230 231 mViewCellsManager = new BspViewCellsManager(mBspTree); 235 232 } 236 233 else … … 248 245 mRenderSimulator = 249 246 new RenderSimulator(mViewCellsManager, objRenderCost, vcOverhead, moveSpeed); 250 251 int postProcessSamples = 0; 252 int visSamples = 0; 253 254 environment->GetIntValue("ViewCells.PostProcess.samples", postProcessSamples); 255 environment->GetIntValue("ViewCells.Visualization.samples", visSamples); 256 257 mViewCellsManager->SetPostProcessSamples(postProcessSamples); 258 mViewCellsManager->SetVisualizationSamples(visSamples); 247 259 248 mViewCellsManager->SetRenderer(mRenderSimulator); 260 249 261 262 250 //-- parse view cells construction method 263 251 environment->GetBoolValue("ViewCells.loadFromFile", mLoadViewCells); 264 252 char buf[100]; 253 265 254 if (mLoadViewCells) 266 255 {
Note: See TracChangeset
for help on using the changeset viewer.