Ignore:
Timestamp:
01/12/09 19:03:24 (15 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r3270 r3271  
    652652        CollectNodes(mStaticRoot, nodes); 
    653653        //CollectNodes(mRoot, nodes); 
     654        // also add root 
     655        nodes.push_back(mRoot); 
    654656 
    655657        cout << "creating new indices" << endl; 
     
    799801 
    800802        CollectNodes(mDynamicRoot, nodes); 
     803        // also add root 
     804        nodes.push_back(mRoot); 
    801805 
    802806        const unsigned int bufferSize = 8 * (int)nodes.size(); 
     
    813817 
    814818                for (int j = 0; j < 8; ++ j) 
     819                { 
    815820                        (static_cast<Vector3 *>(mVertices))[node->GetId() * 8 + j] = node->GetBox().GetVertex(j); 
     821                } 
    816822        } 
    817823         
Note: See TracChangeset for help on using the changeset viewer.