Ignore:
Timestamp:
12/22/06 20:08:48 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/Exporter.cpp

    r1843 r1920  
    105105 
    106106bool Exporter::ExportBvHierarchy(const BvHierarchy &bvHierarchy,  
    107                                                                  const int maxPvs, 
     107                                                                 const float maxPvs, 
    108108                                                                 AxisAlignedBox3 *box, 
    109109                                                                 const bool exportBoundingBoxes) 
     
    135135                } 
    136136 
    137         if (maxPvs) // color code pvs 
     137        if (maxPvs > 0) // color code pvs 
    138138                { 
    139139                        mForcedMaterial.mDiffuseColor.b = 1.0f; 
    140                         const float importance = (float)leaf->mObjects.size() / (float)maxPvs; 
     140                        const float importance = (float)leaf->mRenderCost / (float)maxPvs; 
    141141 
    142142                        mForcedMaterial.mDiffuseColor.r = importance; 
Note: See TracChangeset for help on using the changeset viewer.