Ignore:
Timestamp:
01/23/09 18:33:15 (15 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp

    r3274 r3291  
    675675        // collect bvh nodes 
    676676        BvhNodeContainer nodes; 
     677        // also add root 
     678        nodes.push_back(mRoot); 
    677679        // first collect dynamic nodes so we make sure that they are in the beginning 
    678680        CollectNodes(mDynamicRoot, nodes); 
     
    680682        CollectNodes(mStaticRoot, nodes); 
    681683        //CollectNodes(mRoot, nodes); 
    682         // also add root 
    683         nodes.push_back(mRoot); 
     684         
    684685 
    685686        cout << "creating new indices" << endl; 
     
    748749        // collect all nodes 
    749750        BvhNodeContainer nodes; 
     751        // also add root 
     752        nodes.push_back(mRoot); 
    750753        //CollectNodes(mRoot, nodes); 
    751754        // first collect dynamic nodes so we make sure that they are in the beginning 
     
    753756        // then collect static nodes 
    754757        CollectNodes(mStaticRoot, nodes); 
    755         // also add root 
    756         nodes.push_back(mRoot); 
    757758 
    758759        // assign ids to all nodes of the hierarchy 
     
    773774 
    774775        nodes.reserve(GetNumNodes()); 
     776        // also add root 
     777        nodes.push_back(mRoot); 
    775778        // first collect dynamic nodes so we make sure that they are in the beginning 
    776779        CollectNodes(mDynamicRoot, nodes); 
    777780        // then collect static nodes 
    778781        CollectNodes(mStaticRoot, nodes); 
    779         // also add root 
    780         nodes.push_back(mRoot); 
    781782 
    782783        const unsigned int bufferSize = 8 * (int)nodes.size(); 
     
    828829        nodes.clear(); 
    829830 
    830         CollectNodes(mDynamicRoot, nodes); 
    831831        // also add root 
    832832        nodes.push_back(mRoot); 
     833         
     834        CollectNodes(mDynamicRoot, nodes); 
     835 
    833836 
    834837        const unsigned int bufferSize = 8 * (int)nodes.size(); 
Note: See TracChangeset for help on using the changeset viewer.