Ignore:
Timestamp:
06/18/06 03:47:06 (18 years ago)
Author:
mattausch
Message:

worked on view-object space partition
fixed some loading bugs
fixeds some exporting bugs using line segments
enabling other methods for view space sampling in ViewCellsManager? OBJECT_DIRECTION_BASED_DISTRIBUTION)
added class interface for a sampling strategy

File:
1 edited

Legend:

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

    r1006 r1020  
    211211        tStack.push(pair<BspNode *, BspNodeGeometry *>(tree.GetRoot(), geom)); 
    212212 
    213         if (maxPvs > 0) 
     213        if (maxPvs) 
    214214                mUseForcedMaterial = true; 
    215215 
     
    238238                else 
    239239                { 
    240                         if (maxPvs > 0) 
     240                        if (maxPvs) 
    241241                        { 
    242242                                BspLeaf *leaf = dynamic_cast<BspLeaf *>(node); 
    243243 
    244244                                mForcedMaterial.mDiffuseColor.b = 1.0f; 
    245                                 float importance = (float)leaf->GetViewCell()->GetPvs().GetSize() / (float)maxPvs; 
     245                                const float importance = (float)leaf->GetViewCell()->GetPvs().GetSize() / (float)maxPvs; 
    246246 
    247247                                mForcedMaterial.mDiffuseColor.r = importance; 
Note: See TracChangeset for help on using the changeset viewer.