Changeset 3264


Ignore:
Timestamp:
01/11/09 01:43:51 (16 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
2 edited

Legend:

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

    r3262 r3264  
    88#include "RenderState.h" 
    99#include "Material.h" 
     10#include "BvhConstructor.h" 
    1011#include "gzstream.h" 
    1112 
     
    14951496        // the movements of the objects within 
    14961497 
     1498        cout << "creating dynamic bvh branch"  << endl; 
     1499 
    14971500        DEL_PTR(mDynamicRoot); 
    1498  
     1501        -- mNumNodes; 
     1502 
     1503#if 0 
     1504        BvhConstructor bvhConstructor(mGeometry, (int)mStaticGeometrySize, (int)mGeometrySize - 1); 
     1505 
     1506        int numNodes; 
     1507        mDynamicRoot = bvhConstructor.Construct(numNodes); 
     1508 
     1509        mNumNodes += numNodes; 
     1510 
     1511#else 
    14991512        BvhLeaf *l = new BvhLeaf(mRoot); 
    15001513        mDynamicRoot = l; 
     
    15071520        l->mArea = l->mBox.SurfaceArea(); 
    15081521         
    1509         cout << "creating dynamic bvh branch"  << endl; 
    1510  
    15111522        if (mDynamicGeometrySize) 
    15121523        { 
    15131524                mDynamicRoot = SubdivideLeaf(l, 0); 
    15141525        } 
     1526#endif 
    15151527} 
    15161528 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhConstructor.h

    r3262 r3264  
    1313class BvhConstructor 
    1414{ 
     15public: 
     16 
    1517        BvhConstructor(SceneEntity **entities, int first, int last); 
    1618 
Note: See TracChangeset for help on using the changeset viewer.