Ignore:
Timestamp:
01/10/08 13:17:34 (16 years ago)
Author:
bittner
Message:

sceneBox bugfix

Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
21 edited

Legend:

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

    r2575 r2588  
    525525        //TestEvaluation(sc); 
    526526 
    527 #ifdef PERFTIMER    
     527#ifdef USE_PERFTIMER    
    528528        // fill view cells cache 
    529529        mNodeTimer.Entry(); 
     
    636636        UpdateViewCells(sc); 
    637637 
    638 #ifdef PERFTIMER   
     638#ifdef USE_PERFTIMER   
    639639        mNodeTimer.Exit(); 
    640640#endif 
     
    651651                                                                ) 
    652652{ 
    653 #ifdef PERFTIMER   
     653#ifdef USE_PERFTIMER   
    654654        mSubdivTimer.Entry(); 
    655655#endif 
     
    724724        } 
    725725         
    726 #ifdef PERFTIMER   
     726#ifdef USE_PERFTIMER   
    727727        mSubdivTimer.Exit(); 
    728728#endif 
     
    788788                                                                                   const bool preprocessViewCells) 
    789789{ 
    790 #ifdef PERFTIMER   
     790#ifdef USE_PERFTIMER   
    791791  mPlaneTimer.Entry(); 
    792792#endif 
     
    834834        } 
    835835 
    836 #ifdef PERFTIMER   
     836#ifdef USE_PERFTIMER   
    837837        mPlaneTimer.Exit(); 
    838838#endif 
     
    840840        /////////////////// 
    841841 
    842 #ifdef PERFTIMER   
     842#ifdef USE_PERFTIMER   
    843843        mEvalTimer.Entry(); 
    844844#endif 
     
    997997#endif 
    998998 
    999 #ifdef PERFTIMER   
     999#ifdef USE_PERFTIMER   
    10001000        mEvalTimer.Exit(); 
    10011001#endif 
     
    16911691                                                                                                        const int axis)                                                                                  
    16921692{ 
    1693 #ifdef PERFTIMER   
     1693#ifdef USE_PERFTIMER   
    16941694        mSortTimer.Entry(); 
    16951695#endif   
     
    17001700        CreateLocalSubdivisionCandidates(*objects, &mSubdivisionCandidates, !mUseGlobalSorting, axis); 
    17011701         
    1702 #ifdef PERFTIMER   
     1702#ifdef USE_PERFTIMER   
    17031703        mSortTimer.Exit(); 
    17041704#endif 
     
    18581858                                                                                 bool useVisibilityBasedHeuristics) 
    18591859{ 
    1860 #ifdef PERFTIMER   
     1860#ifdef USE_PERFTIMER   
    18611861        mSplitTimer.Entry(); 
    18621862#endif 
     
    19451945        backObjects = nBackObjects[bestAxis]; 
    19461946 
    1947 #ifdef PERFTIMER   
     1947#ifdef USE_PERFTIMER   
    19481948        mSplitTimer.Exit(); 
    19491949#endif 
     
    22982298        //-- use view cells cache 
    22992299 
    2300 #ifdef PERFTIMER   
     2300#ifdef USE_PERFTIMER   
    23012301        mCollectTimer.Entry(); 
    23022302#endif 
     
    23322332        } 
    23332333 
    2334 #ifdef PERFTIMER   
     2334#ifdef USE_PERFTIMER   
    23352335        mCollectTimer.Exit(); 
    23362336#endif 
     
    23452345                                                                                  const bool onlyUnmailedRays) 
    23462346{ 
    2347 #ifdef PERFTIMER   
     2347#ifdef USE_PERFTIMER   
    23482348        mCollectTimer.Entry(); 
    23492349#endif 
     
    23892389        } 
    23902390 
    2391 #ifdef PERFTIMER   
     2391#ifdef USE_PERFTIMER   
    23922392        mCollectTimer.Exit(); 
    23932393#endif 
     
    24652465                                                                  const bool onlyUnmailedRays) 
    24662466{ 
    2467 #ifdef PERFTIMER   
     2467#ifdef USE_PERFTIMER   
    24682468        mCollectTimer.Entry(); 
    24692469#endif 
     
    25092509        } 
    25102510 
    2511 #ifdef PERFTIMER   
     2511#ifdef USE_PERFTIMER   
    25122512        mCollectTimer.Exit(); 
    25132513#endif 
  • GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.h

    r2575 r2588  
    1515#include "HierarchyManager.h" 
    1616 
    17 #ifdef PERFTIMER 
     17#ifdef USE_PERFTIMER 
    1818#include "Timer/PerfTimer.h" 
    19 #endif // PERFTIMER 
     19#endif // USE_PERFTIMER 
    2020 
    2121namespace GtpVisibilityPreprocessor { 
     
    681681        void CreateUniqueObjectIds(); 
    682682 
    683 #ifdef PERFTIMER   
     683#ifdef USE_PERFTIMER   
    684684        PerfTimer mNodeTimer; 
    685685        PerfTimer mSubdivTimer; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/DifferenceSampling.cpp

    r2575 r2588  
    66#include "ViewCellsManager.h" 
    77#include "Preprocessor.h" 
    8 #ifdef PERFTIMER   
     8#ifdef USE_PERFTIMER   
    99#include "Timer/PerfTimer.h" 
    1010#endif 
     
    1515 
    1616 
    17 #ifdef PERFTIMER   
     17#ifdef USE_PERFTIMER   
    1818PerfTimer sFilterTimer; 
    1919#endif 
     
    6868 
    6969         
    70 #ifdef PERFTIMER   
     70#ifdef USE_PERFTIMER   
    7171        sFilterTimer.Entry(); 
    7272#endif 
     
    7878                                                                                filteredPvs); 
    7979 
    80 #ifdef PERFTIMER   
     80#ifdef USE_PERFTIMER   
    8181        sFilterTimer.Exit(); 
    8282#endif 
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp

    r2587 r2588  
    8484        mSceneGraph->CollectObjects(&mObjects); 
    8585 
     86#if 1 
    8687        viewCellsManager->GetViewPoint(mViewPoint); 
    87  
    8888        mViewDirection = Vector3(0,0,1); 
    89  
     89#else 
     90        mViewPoint = Vector3(1099.9,183.0,-387); 
     91        mViewDirection = Vector3(-0.6,0,-0.8); 
     92#endif 
    9093        mFrame = 0; 
    9194        mWireFrame = false; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Halton.cpp

    r2575 r2588  
     1#include "common.h" 
    12#include "Halton.h" 
    23 
    3 #ifdef PERFTIMER   
     4#ifdef USE_PERFTIMER   
    45#include "Timer/PerfTimer.h" 
    56#endif 
     7 
    68 
    79#define PREGENERATE_HALTON 0 
     
    1012 
    1113   
    12 #ifdef PERFTIMER   
     14#ifdef USE_PERFTIMER 
    1315PerfTimer haltonTimer; 
    1416#endif 
  • GTP/trunk/Lib/Vis/Preprocessing/src/HavranRayCaster.cpp

    r2585 r2588  
    190190 
    191191#if 0 
    192   SimpleRayContainer::const_iterator sit, sit_end = rays.end(); 
    193  
     192  SimpleRayContainer::const_iterator sit = rays.begin() + offset; 
     193  SimpleRayContainer::const_iterator sit_end = sit + 16; 
     194   
    194195  // no acceleration for ray bundles implemented right now 
    195196  for (sit = rays.begin(); sit != sit_end; ++ sit)  
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp

    r2575 r2588  
    409409        double sortTime, evalTime, nodeTime, splitTime, subdTime, planeTime, collectTime, viewCellsTime; 
    410410 
    411 #ifdef PERFTIMER         
     411#ifdef USE_PERFTIMER     
    412412        sortTime = mBvHierarchy->mSortTimer.TotalTime(); 
    413413        evalTime = mBvHierarchy->mEvalTimer.TotalTime(); 
     
    417417        planeTime = mBvHierarchy->mPlaneTimer.TotalTime(); 
    418418        collectTime = mBvHierarchy->mCollectTimer.TotalTime(); 
    419 #endif // #ifdef PERFTIMER  
     419#endif // #ifdef USE_PERFTIMER  
    420420         
    421421        cout << "bvh times" 
     
    439439                 << endl; 
    440440 
    441 #ifdef PERFTIMER   
     441#ifdef USE_PERFTIMER   
    442442        sortTime = mVspTree->mSortTimer.TotalTime(); 
    443443        evalTime = mVspTree->mEvalTimer.TotalTime(); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Makefile

    r2585 r2588  
    11############################################################################# 
    22# Makefile for building: preprocessor 
    3 # Generated by qmake (2.00a) (Qt 4.1.2) on: st 9. I 14:48:54 2008 
     3# Generated by qmake (2.00a) (Qt 4.1.2) on: ?t 10. I 11:42:01 2008 
    44# Project:  preprocessor.pro 
    55# Template: app 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp

    r2586 r2588  
    11021102   
    11031103  KdTreeStatistics(cout); 
     1104  sceneBox = mKdTree->GetBox(); 
     1105 
    11041106  cout << mKdTree->GetBox() << endl; 
    11051107   
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.h

    r2582 r2588  
    208208        /// kD-tree organizing the scene graph (occluders + occludees) + viewcells 
    209209        KdTree *mKdTree; 
    210         AxisAlignedBox3 sceneBox; 
     210  AxisAlignedBox3 sceneBox; 
    211211        /// View space partition bsp tree 
    212212        VspBspTree *mVspBspTree; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp

    r2586 r2588  
    88#include "RssTree.h" 
    99#include "Mutation.h" 
    10 #if TODO 
    1110#include "FilterBasedDistribution.h" 
    12 #endif 
    1311#include "DifferenceSampling.h" 
    1412 
    1513 
    16 #ifdef PERFTIMER 
     14#ifdef USE_PERFTIMER 
    1715#include "Timer/PerfTimer.h" 
    1816#endif 
     
    2119 
    2220 
    23 #ifdef PERFTIMER 
     21#ifdef USE_PERFTIMER 
    2422extern PerfTimer haltonTimer; 
    2523extern PerfTimer pvsTimer; 
     
    216214 
    217215 
    218 bool SpatialBoxBasedDistribution::GenerateSample(SimpleRay &ray) 
    219 { 
    220  
    221         Vector3 origin, direction;  
    222  
    223         float r[6]; 
    224         sHalton.GetNext(6, r); 
    225          
    226         mPreprocessor.mViewCellsManager->GetViewPoint(origin, Vector3(r[0], 
    227                                                                                                                                   r[1], 
    228                                                                                                                                   r[2])); 
    229  
    230         direction = mPreprocessor.sceneBox.GetRandomPoint(Vector3(r[3], 
    231                                                                                                           r[4], 
    232                                                                                                           r[5])) - origin; 
    233          
    234         const float c = Magnitude(direction); 
    235          
    236         if (c <= Limits::Small)  
    237                 return false; 
    238  
    239         const float pdf = 1.0f; 
    240  
    241         direction *= 1.0f / c; 
    242         ray = SimpleRay(origin, direction, SPATIAL_BOX_BASED_DISTRIBUTION, pdf); 
    243    
    244         //cout << "d " << direction << " o: " << origin; 
    245          
    246         return true; 
     216bool 
     217SpatialBoxBasedDistribution::GenerateSample(SimpleRay &ray) 
     218{ 
     219   
     220  Vector3 origin, direction;  
     221   
     222  float r[6]; 
     223  sHalton.GetNext(6, r); 
     224   
     225  //  mPreprocessor.mViewCellsManager->GetViewPoint(origin, Vector3(r[0], 
     226  //                                                                                                                            r[1], 
     227  //                                                                                                                            r[2])); 
     228 
     229  origin = mPreprocessor.sceneBox.GetRandomPoint(Vector3(r[0], 
     230                                                                                                                 r[1], 
     231                                                                                                                 r[2])); 
     232   
     233  direction = mPreprocessor.sceneBox.GetRandomPoint(Vector3(r[3], 
     234                                                                                                                        r[4], 
     235                                                                                                                        r[5])) - origin; 
     236 
     237  //  cout<<mPreprocessor.sceneBox<<endl; 
     238  //  cout<<r[0]<<" "<<r[1]<<" "<<r[2]<<" "<<r[3]<<" "<<r[4]<<" "<<r[5]<<endl; 
     239  //  cout << " o: " << origin << "d " << direction << endl; 
     240 
     241  const float c = Magnitude(direction); 
     242   
     243  if (c <= Limits::Small)  
     244        return false; 
     245   
     246  const float pdf = 1.0f; 
     247   
     248  direction *= 1.0f / c; 
     249  ray = SimpleRay(origin, direction, SPATIAL_BOX_BASED_DISTRIBUTION, pdf); 
     250   
     251   
     252  return true; 
    247253} 
    248254 
     
    250256bool ReverseObjectBasedDistribution::GenerateSample(SimpleRay &ray) 
    251257{ 
    252         Vector3 origin, direction;  
    253  
    254         mPreprocessor.mViewCellsManager->GetViewPoint(origin); 
    255  
    256         Vector3 point; 
    257         Vector3 normal; 
    258          
    259         const int i = (int)RandomValue(0, (float)mPreprocessor.mObjects.size() - 0.5f); 
    260  
    261         Intersectable *object = mPreprocessor.mObjects[i]; 
    262  
    263         object->GetRandomSurfacePoint(point, normal); 
    264          
    265         direction = origin - point; 
    266          
    267         // $$ jb the pdf is yet not correct for all sampling methods! 
    268         const float c = Magnitude(direction); 
    269          
    270         if ((c <= Limits::Small) || (DotProd(direction, normal) < 0)) 
     258  Vector3 origin, direction;  
     259   
     260  mPreprocessor.mViewCellsManager->GetViewPoint(origin); 
     261   
     262  Vector3 point; 
     263  Vector3 normal; 
     264   
     265  const int i = (int)RandomValue(0, (float)mPreprocessor.mObjects.size() - 0.5f); 
     266   
     267  Intersectable *object = mPreprocessor.mObjects[i]; 
     268   
     269  object->GetRandomSurfacePoint(point, normal); 
     270   
     271  direction = origin - point; 
     272   
     273  // $$ jb the pdf is yet not correct for all sampling methods! 
     274  const float c = Magnitude(direction); 
     275   
     276  if ((c <= Limits::Small) || (DotProd(direction, normal) < 0)) 
    271277        { 
    272                 return false; 
    273         } 
    274  
    275         // $$ jb the pdf is yet not correct for all sampling methods! 
    276         const float pdf = 1.0f; 
    277          
    278         direction *= 1.0f / c; 
    279         // a little offset 
    280         point += direction * 0.001f; 
    281  
    282         ray = SimpleRay(point, direction, REVERSE_OBJECT_BASED_DISTRIBUTION, pdf); 
    283          
    284         return true; 
     278          return false; 
     279        } 
     280   
     281  // $$ jb the pdf is yet not correct for all sampling methods! 
     282  const float pdf = 1.0f; 
     283   
     284  direction *= 1.0f / c; 
     285  // a little offset 
     286  point += direction * 0.001f; 
     287   
     288  ray = SimpleRay(point, direction, REVERSE_OBJECT_BASED_DISTRIBUTION, pdf); 
     289   
     290  return true; 
    285291} 
    286292 
     
    607613  if (1) 
    608614  { 
    609 #ifdef PERFTIMER 
    610           const float vcTime = viewCellCastTimer.TotalTime(); 
    611           const float pvsTime = pvsTimer.TotalTime(); 
    612           const float haltonTime = haltonTimer.TotalTime(); 
    613            
    614           cout << "view cell cast time: " << vcTime << " s" << endl; 
    615           cout << "pvs time: " << pvsTime << " s" << endl; 
    616           cout << "halton time: "<< haltonTime << " s" << endl; 
    617  
    618           Debug << "view cell cast time: " << vcTime << " s" << endl; 
    619           Debug << "pvs time: " << pvsTime << " s" << endl; 
    620           Debug << "halton time: "<< haltonTime << " s" << endl; 
     615#ifdef USE_PERFTIMER 
     616        const float vcTime = viewCellCastTimer.TotalTime(); 
     617        const float pvsTime = pvsTimer.TotalTime(); 
     618        const float haltonTime = haltonTimer.TotalTime(); 
     619         
     620        cout << "view cell cast time: " << vcTime << " s" << endl; 
     621        cout << "pvs time: " << pvsTime << " s" << endl; 
     622        cout << "halton time: "<< haltonTime << " s" << endl; 
     623         
     624        Debug << "view cell cast time: " << vcTime << " s" << endl; 
     625        Debug << "pvs time: " << pvsTime << " s" << endl; 
     626        Debug << "halton time: "<< haltonTime << " s" << endl; 
    621627#else 
    622           cout << "Timers not supported" << endl; 
    623           Debug << "Timers for PVS,Halton,Viewcell not supported" << endl; 
     628        cout << "Timers not supported" << endl; 
     629        Debug << "Timers for PVS,Halton,Viewcell not supported" << endl; 
    624630#endif 
    625631  } 
     
    735741                                        } else 
    736742                                          if (strcmp(curr, "filter_based")==0) { 
    737 #if TODO 
    738743                                                mDistributions.push_back(new FilterBasedDistribution(mPreprocessor)); 
    739 #endif 
    740744                                          } 
    741745                                        else if (strcmp(curr, "difference")==0) { 
  • GTP/trunk/Lib/Vis/Preprocessing/src/SimpleRay.h

    r2575 r2588  
    5454   
    5555  SimpleRay(const Vector3 &o, 
    56             const Vector3 &d, 
    57             const unsigned char distribution, 
    58             const float weight, 
    59             const unsigned char flags = F_BIDIRECTIONAL 
    60             ): 
     56                        const Vector3 &d, 
     57                        const unsigned char distribution, 
     58                        const float weight, 
     59                        const unsigned char flags = F_BIDIRECTIONAL 
     60                        ): 
    6161    mOrigin(o), 
    6262    mDirection(d), 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp

    r2575 r2588  
    1515#include "BvHierarchy.h" 
    1616 
    17 #ifdef PERFTIMER   
     17#ifdef USE_PERFTIMER   
    1818#include "Timer/PerfTimer.h" 
    1919#endif 
     
    2525#define TYPE_LEAF -3 
    2626 
    27 #ifdef PERFTIMER   
     27#ifdef USE_PERFTIMER   
    2828static PerfTimer sPvsTimer; 
    2929static PerfTimer sSearchTimer; 
     
    26882688        Intersectable *obj; 
    26892689 
    2690 #ifdef PERFTIMER   
     2690#ifdef USE_PERFTIMER   
    26912691        sPvsTimer.Entry(); 
    26922692#endif 
     
    27062706        } 
    27072707 
    2708 #ifdef PERFTIMER 
     2708#ifdef USE_PERFTIMER 
    27092709        sPvsTimer.Exit(); 
    27102710#endif   
     
    27432743        queue<ViewCell *> tStack; 
    27442744 
    2745 #ifdef PERFTIMER   
     2745#ifdef USE_PERFTIMER   
    27462746        sPvsTimer.Start(); 
    27472747#endif 
     
    27812781        } 
    27822782 
    2783 #ifdef PERFTIMER   
     2783#ifdef USE_PERFTIMER   
    27842784        Debug << "needed " << sPvsTimer.TotalTime() << " secs for pvs loading" << endl; 
    27852785#endif 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r2586 r2588  
    2525#include "SceneGraph.h" 
    2626 
    27 #ifdef PERFTIMER   
     27#ifdef USE_PERFTIMER   
    2828#include "Timer/PerfTimer.h" 
    29 #endif // PERFTIMER 
     29#endif // USE_PERFTIMER 
    3030 
    3131#define USE_RAY_LENGTH_AS_CONTRIBUTION 0 
     
    4343 
    4444 
    45 #ifdef PERFTIMER   
     45#ifdef USE_PERFTIMER   
    4646PerfTimer viewCellCastTimer; 
    4747PerfTimer pvsTimer; 
     
    10831083        int id; 
    10841084 
    1085 #ifdef PERFTIMER   
     1085#ifdef USE_PERFTIMER   
    10861086        PerfTimer boxTimer; 
    10871087 
     
    10991099 
    11001100 
    1101 #ifdef PERFTIMER   
     1101#ifdef USE_PERFTIMER   
    11021102        boxTimer.Exit(); 
    11031103 
     
    21282128        } 
    21292129 
    2130 #ifdef PERFTIMER   
     2130#ifdef USE_PERFTIMER   
    21312131        cout << "view cell cast time: " << viewCellCastTimer.TotalTime() << " s" << endl; 
    21322132        Debug << "view cell cast time: " << viewCellCastTimer.TotalTime() << " s" << endl; 
     
    28962896        ViewCell::NewMail(); 
    28972897 
    2898 #ifdef PERFTIMER   
     2898#ifdef USE_PERFTIMER   
    28992899        viewCellCastTimer.Entry(); 
    29002900#endif 
     
    29172917        } 
    29182918 
    2919 #ifdef PERFTIMER   
     2919#ifdef USE_PERFTIMER   
    29202920        viewCellCastTimer.Exit(); 
    29212921#endif 
     
    29382938        Intersectable *terminationObj; 
    29392939 
    2940 #ifdef PERFTIMER   
     2940#ifdef USE_PERFTIMER   
    29412941        objTimer.Entry(); 
    29422942#endif 
     
    29442944        terminationObj = ray.mTerminationObject; 
    29452945 
    2946 #ifdef PERFTIMER   
     2946#ifdef USE_PERFTIMER   
    29472947        objTimer.Exit(); 
    29482948 
     
    29722972        { 
    29732973                if (rand() < (RAND_MAX / 10)) 
    2974                         cout << "rayd: " /*<< ray.GetOrigin() << " " << ray.GetTermination() << " "*/ << Normalize(ray.GetDir()) << " " << endl; 
     2974                  //                    cout << "rayd: " /*<< ray.GetOrigin() << " " << ray.GetTermination() << " "*/ << Normalize(ray.GetDir()) << " " << endl; 
    29752975                mVizBuffer.AddRay(&ray); 
    29762976        } 
    29772977#endif 
    2978 #ifdef PERFTIMER   
     2978#ifdef USE_PERFTIMER   
    29792979        pvsTimer.Exit(); 
    29802980#endif 
     
    72237223        CLEAR_CONTAINER(tmpRays); 
    72247224 
    7225 #ifdef PERFTIMER   
     7225#ifdef USE_PERFTIMER   
    72267226        cout << "view cell cast time: " << viewCellCastTimer.TotalTime() << " s" << endl; 
    72277227        Debug << "view cell cast time: " << viewCellCastTimer.TotalTime() << " s" << endl; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParser.cpp

    r2575 r2588  
    147147                EndObjectSpaceHierarchy(); 
    148148                Debug << "object space hierarchy parsed" << endl; 
    149 #ifdef PERFTIMER   
     149#ifdef USE_PERFTIMER   
    150150                mObjectTimer.Exit(); 
    151151#endif 
     
    156156                CreateViewCellsManager(); 
    157157 
    158 #ifdef PERFTIMER   
     158#ifdef USE_PERFTIMER   
    159159                Debug << "pvs time: " << mPvsTimer.TotalTime() << endl; 
    160160                Debug << "object time: " << mObjectTimer.TotalTime() << endl; 
     
    301301        const long startTime = GetTime(); 
    302302         
    303 #ifdef PERFTIMER   
     303#ifdef USE_PERFTIMER   
    304304        mBoxTimer.Entry(); 
    305305#endif 
     
    324324                  << TimeDiff(startTime, GetTime()) * 1e-6 << " secs" << endl; 
    325325 
    326 #ifdef PERFTIMER   
     326#ifdef USE_PERFTIMER   
    327327        mBoxTimer.Exit(); 
    328328#endif 
     
    487487 
    488488                mCurrentState = PARSE_OBJECTSPACE_HIERARCHY; 
    489 #ifdef PERFTIMER   
     489#ifdef USE_PERFTIMER   
    490490                mObjectTimer.Entry(); 
    491491#endif 
     
    547547        } 
    548548 
    549 #ifdef PERFTIMER   
     549#ifdef USE_PERFTIMER   
    550550        mPvsTimer.Entry(); 
    551551#endif 
     
    591591        } 
    592592         
    593 #ifdef PERFTIMER   
     593#ifdef USE_PERFTIMER   
    594594        mPvsTimer.Exit(); 
    595595#endif 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsParserXerces.h

    r2575 r2588  
    1515#endif 
    1616 
    17 #ifdef PERFTIMER   
     17#ifdef USE_PERFTIMER   
    1818#include "Timer/PerfTimer.h" 
    1919#endif 
     
    168168  int nObjects; 
    169169   
    170 #ifdef PERFTIMER   
     170#ifdef USE_PERFTIMER   
    171171  PerfTimer mBoxTimer; 
    172172  PerfTimer mPvsTimer; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp

    r2575 r2588  
    709709                                                        const bool globalCriteriaMet) 
    710710{ 
    711 #ifdef PERFTIMER   
     711#ifdef USE_PERFTIMER   
    712712        mSubdivTimer.Entry(); 
    713713#endif 
     
    790790        } 
    791791 
    792 #ifdef PERFTIMER   
     792#ifdef USE_PERFTIMER   
    793793        mSubdivTimer.Exit(); 
    794794#endif 
     
    800800                                                                           bool computeSplitPlane) 
    801801{ 
    802 #ifdef PERFTIMER   
     802#ifdef USE_PERFTIMER   
    803803        mPlaneTimer.Entry(); 
    804804#endif 
     
    823823        } 
    824824         
    825 #ifdef PERFTIMER   
     825#ifdef USE_PERFTIMER   
    826826        mPlaneTimer.Exit(); 
    827827        mEvalTimer.Entry(); 
     
    924924 
    925925        //cout << "vsp render cost decrease=" << renderCostDecr << endl; 
    926 #ifdef PERFTIMER   
     926#ifdef USE_PERFTIMER   
    927927        mEvalTimer.Exit(); 
    928928#endif 
     
    957957                                                                        VspTraversalData &backData) 
    958958{ 
    959 #ifdef PERFTIMER   
     959#ifdef USE_PERFTIMER   
    960960        mNodeTimer.Entry(); 
    961961#endif   
     
    10521052        interior->mTimeStamp = mHierarchyManager->mTimeStamp ++; 
    10531053 
    1054 #ifdef PERFTIMER   
     1054#ifdef USE_PERFTIMER   
    10551055        mNodeTimer.Exit(); 
    10561056#endif 
     
    11141114                                                                                float maxBand) 
    11151115{ 
    1116 #ifdef PERFTIMER   
     1116#ifdef USE_PERFTIMER   
    11171117        mSortTimer.Entry(); 
    11181118#endif 
     
    11661166                sort(mLocalSubdivisionCandidates->begin(), mLocalSubdivisionCandidates->end()); 
    11671167 
    1168 #ifdef PERFTIMER   
     1168#ifdef USE_PERFTIMER   
    11691169        mSortTimer.Exit(); 
    11701170#endif 
     
    15871587                                                                float &pBack) 
    15881588{ 
    1589 #ifdef PERFTIMER   
     1589#ifdef USE_PERFTIMER   
    15901590        mSplitTimer.Entry(); 
    15911591#endif 
     
    16851685        pBack = nProbBack[bestAxis]; 
    16861686 
    1687 #ifdef PERFTIMER   
     1687#ifdef USE_PERFTIMER   
    16881688        mSplitTimer.Exit(); 
    16891689#endif 
     
    31743174void VspTree::GetViewCells(const VssRay &ray, ViewCellContainer &viewCells) 
    31753175{ 
    3176 #ifdef PERFTIMER   
     3176#ifdef USE_PERFTIMER   
    31773177        mViewCellsTimer.Entry(); 
    31783178#endif 
     
    31933193        CastLineSegment(origin, termination, viewCells, false); 
    31943194 
    3195 #ifdef PERFTIMER   
     3195#ifdef USE_PERFTIMER   
    31963196        mViewCellsTimer.Exit(); 
    31973197#endif 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.h

    r2575 r2588  
    1212#include "SubdivisionCandidate.h" 
    1313#include "HierarchyManager.h" 
    14 #ifdef PERFTIMER 
     14#ifdef USE_PERFTIMER 
    1515#include "Timer/PerfTimer.h" 
    16 #endif // PERFTIMER 
     16#endif // USE_PERFTIMER 
    1717 
    1818 
     
    672672        //////////// 
    673673 
    674 #ifdef PERFTIMER   
     674#ifdef USE_PERFTIMER   
    675675        PerfTimer mSortTimer; 
    676676        PerfTimer mSplitTimer; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/common.h

    r2585 r2588  
    3030#if defined(_MSC_VER) 
    3131// use perftimer only on msvc 
    32 #define PERFTIMER 
     32#define USE_PERFTIMER 
    3333 
    3434// define __SSE__ macro as it is not defined under MSVC 
  • GTP/trunk/Lib/Vis/Preprocessing/src/default.env

    r2583 r2588  
    5353        useGlDebugger false 
    5454# 0 = INTERNAL  1 = MLRT 2 = HAVRAN 
    55         rayCastMethod 2 
     55        rayCastMethod 1 
    5656         
    5757#       type sampling 
  • GTP/trunk/Lib/Vis/Preprocessing/src/run_test2

    r2583 r2588  
    4646#PREFIX=../work/plots/atlanta2-rss9 
    4747 
     48#-rss_distributions=direction+spatial+mutation \ 
    4849 
    4950$COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 
    50 -rss_distributions=direction+spatial+mutation \ 
     51-rss_distributions=direction+spatial \ 
    5152-view_cells_use_kd_pvs+ -af_use_kd_pvs+ -view_cells_filter_width=1.0 \ 
    5253-preprocessor_visibility_file=$PREFIX-i-mixed-b1-n4a.xml \ 
Note: See TracChangeset for help on using the changeset viewer.