Changeset 3291 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp
- Timestamp:
- 01/23/09 18:33:15 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp
r3274 r3291 675 675 // collect bvh nodes 676 676 BvhNodeContainer nodes; 677 // also add root 678 nodes.push_back(mRoot); 677 679 // first collect dynamic nodes so we make sure that they are in the beginning 678 680 CollectNodes(mDynamicRoot, nodes); … … 680 682 CollectNodes(mStaticRoot, nodes); 681 683 //CollectNodes(mRoot, nodes); 682 // also add root 683 nodes.push_back(mRoot); 684 684 685 685 686 cout << "creating new indices" << endl; … … 748 749 // collect all nodes 749 750 BvhNodeContainer nodes; 751 // also add root 752 nodes.push_back(mRoot); 750 753 //CollectNodes(mRoot, nodes); 751 754 // first collect dynamic nodes so we make sure that they are in the beginning … … 753 756 // then collect static nodes 754 757 CollectNodes(mStaticRoot, nodes); 755 // also add root756 nodes.push_back(mRoot);757 758 758 759 // assign ids to all nodes of the hierarchy … … 773 774 774 775 nodes.reserve(GetNumNodes()); 776 // also add root 777 nodes.push_back(mRoot); 775 778 // first collect dynamic nodes so we make sure that they are in the beginning 776 779 CollectNodes(mDynamicRoot, nodes); 777 780 // then collect static nodes 778 781 CollectNodes(mStaticRoot, nodes); 779 // also add root780 nodes.push_back(mRoot);781 782 782 783 const unsigned int bufferSize = 8 * (int)nodes.size(); … … 828 829 nodes.clear(); 829 830 830 CollectNodes(mDynamicRoot, nodes);831 831 // also add root 832 832 nodes.push_back(mRoot); 833 834 CollectNodes(mDynamicRoot, nodes); 835 833 836 834 837 const unsigned int bufferSize = 8 * (int)nodes.size();
Note: See TracChangeset
for help on using the changeset viewer.