Changeset 1636 for GTP/trunk/Lib/Vis


Ignore:
Timestamp:
10/18/06 09:56:53 (18 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
2 edited

Legend:

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

    r1635 r1636  
    517517 
    518518#if 1 
    519         // take render cost of node into account  
    520         // otherwise danger of being stuck in a local minimum!! 
    521         const float factor = mRenderCostDecreaseWeight; 
    522519        float priority; 
    523520         
     
    539536        else 
    540537        { 
    541                 priority = factor * renderCostDecr + (1.0f - factor) * oldRenderCost; 
     538                // take render cost of node into account  
     539                // otherwise danger of being stuck in a local minimum!! 
     540                priority = mRenderCostDecreaseWeight * renderCostDecr +  
     541                                   (1.0f - mRenderCostDecreaseWeight) * oldRenderCost; 
    542542        } 
    543543 
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp

    r1635 r1636  
    935935                // subdivide view space with respect to the objects 
    936936 
    937                 ResetViewSpaceSubdivision(sampleRays, objects); 
     937                if (!ViewSpaceSubdivisionConstructed()) 
     938                { 
     939                        mTQueue.Push(vspVc); 
     940                         
     941                        // view space subdivision constructed 
     942                        mViewSpaceSubdivisionType = mSavedViewSpaceSubdivisionType; 
     943                } 
     944                else 
     945                { 
     946                        ResetViewSpaceSubdivision(sampleRays, objects); 
     947                } 
    938948 
    939949                // process view space candidates 
    940950                RunConstruction(false); 
    941951 
    942                 // view space subdivision constructed 
    943                 mViewSpaceSubdivisionType = mSavedViewSpaceSubdivisionType; 
    944          
    945952                cout << "iteration " << i << " of " << limit << " finished" << endl; 
    946953 
Note: See TracChangeset for help on using the changeset viewer.