Ignore:
Timestamp:
01/25/06 01:44:46 (18 years ago)
Author:
mattausch
Message:

finished function for view cell construction
removed bsp rays from vspbspmanager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.cpp

    r567 r574  
    194194        environment->GetStringValue("ViewCells.type", viewCellsStr); 
    195195 
    196         int constructionSamples = 0; 
     196        int initialSamples = 0; 
    197197         
    198198        if (strcmp(viewCellsStr, "kdTree") == 0) 
     
    206206                Debug << "view cell type: Bsp" << endl; 
    207207 
    208                 environment->GetIntValue("BspTree.Construction.samples", constructionSamples); 
    209                 mViewCellsManager = new BspViewCellsManager(mBspTree, constructionSamples); 
     208                mViewCellsManager = new BspViewCellsManager(mBspTree); 
    210209        } 
    211210        else if (strcmp(viewCellsStr, "vspBspTree") == 0) 
     
    215214                Debug << "view cell type: VspBsp" << endl; 
    216215 
    217                 environment->GetIntValue("VspBspTree.Construction.samples", constructionSamples); 
    218                 mViewCellsManager = new VspBspViewCellsManager(mVspBspTree, constructionSamples); 
     216                mViewCellsManager = new VspBspViewCellsManager(mVspBspTree); 
    219217        } 
    220218        else if (strcmp(viewCellsStr, "vspKdTree") == 0) 
     
    222220                mVspKdTree = new VspKdTree();            
    223221         
    224                 environment->GetIntValue("VspKdTree.Construction.samples", constructionSamples); 
    225         mViewCellsManager = new VspKdViewCellsManager(mVspKdTree, constructionSamples); 
     222                mViewCellsManager = new VspKdViewCellsManager(mVspKdTree); 
    226223        } 
    227224        else if (strcmp(viewCellsStr, "sceneDependent") == 0) 
     
    231228 
    232229                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); 
    235232        } 
    236233        else 
     
    248245        mRenderSimulator =  
    249246                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 
    259248        mViewCellsManager->SetRenderer(mRenderSimulator); 
    260249 
    261          
    262250        //-- parse view cells construction method 
    263251        environment->GetBoolValue("ViewCells.loadFromFile", mLoadViewCells); 
    264252        char buf[100]; 
     253 
    265254        if (mLoadViewCells) 
    266255        { 
Note: See TracChangeset for help on using the changeset viewer.