Changeset 566


Ignore:
Timestamp:
01/23/06 03:34:48 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r564 r566  
    273273                                                   AxisAlignedBox3 *forcedBoundingBox) 
    274274{ 
    275     mStat.nodes = 1; 
     275        mStat.nodes = 1; 
    276276        mBox.Initialize();      // initialise BSP tree bounding box 
    277277 
     
    26402640                                mMergeQueue.push(mc); 
    26412641                                ++ candidates; 
     2642                                if ((candidates % 1000) == 0) 
     2643                                { 
     2644                                        cout << "collected " << candidates << " merge candidates" << endl; 
     2645                                } 
    26422646                        } 
    26432647                } 
     
    31213125 
    31223126        // HACK for visualization 
    3123         ViewCellContainer viewCells; 
     3127        /*ViewCellContainer viewCells; 
    31243128        ViewCell::NewMail(); 
    31253129        CollectViewCells(mRoot, true, viewCells, true); 
    31263130        for (int i = 0; i < viewCells.size(); ++i) 
    31273131                viewCells[i]->SetId((int)RandomValue(0, Real(256*256*256))); 
    3128          
     3132        */ 
    31293133        Material m; 
    31303134        m.mDiffuseColor.r = 0; 
     
    31383142                mMergeQueue.pop(); 
    31393143 
     3144 
     3145                // visualize neighbors 
    31403146                m = RandomMaterial(); 
    3141                 // visualize neighbors 
    31423147                exporter->SetForcedMaterial(m); 
    31433148                 
     
    31513156                //m.mDiffuseColor.b = ((mc.GetLeaf1()->GetViewCell()->GetId()>>16) & 256)/ 255.0f; 
    31523157                exporter->SetForcedMaterial(m); 
    3153  
    31543158                exporter->ExportPolygons(geom1.mPolys); 
    31553159                 
     
    31583162                //m.mDiffuseColor.b = ((mc.GetLeaf2()->GetViewCell()->GetId()>>16) & 256)/ 255.0f; 
    31593163                //exporter->SetForcedMaterial(m); 
    3160  
    31613164                exporter->ExportPolygons(geom2.mPolys); 
    31623165        } 
     
    32393242        const int pvs2 = AddedPvsSize(vc2->GetPvs(), *leaf->mPvs); 
    32403243 
     3244        // dont' shuffle leaves with pvs > max 
    32413245        if (pvs1 + pvs2 > mViewCellsManager->GetMaxPvsSize()) 
    32423246                return 1e15f; 
     
    32553259        } 
    32563260 
    3257         const float cost1 = pvs1 * p1; 
    3258         const float cost2 = pvs2 * p2; 
     3261        const float cost1 = (float)pvs1 * p1; 
     3262        const float cost2 = (float)pvs2 * p2; 
    32593263 
    32603264        return cost1 + cost2; 
Note: See TracChangeset for help on using the changeset viewer.