Ignore:
Timestamp:
02/08/07 15:46:23 (17 years ago)
Author:
bittner
Message:

simple ray separated

File:
1 edited

Legend:

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

    r2076 r2105  
    123123  AxisAlignedBox3 box = 
    124124        mPreprocessor.mViewCellsManager->GetViewSpaceBox(); 
    125          
     125   
    126126  float b[12]={ 
    127127        box.Min().x, 
     
    139139  }; 
    140140 
     141#if 0 
     142  static vector<SimpleRay *> pointerArray; 
     143 
     144  if (pointerArray.size()!=rays.size()) { 
     145        // realloc the pointerarray 
     146        pointerArray.resize(rays.size()); 
     147  } 
     148 
     149  // init pointer array 
     150  SimpleRay *p = &pointerArray[0]; 
     151  for (i=0; i < rays.size(); i++, p++) 
     152        pointerArray[i] = p; 
     153#endif 
     154   
    141155  _SortRays(rays, 
    142156                        0, 
     
    162176  int i; 
    163177 
     178  //const int batchsize = 16384; 
    164179  const int batchsize = 8192; 
    165  
    166   //  if (r - l < 32*batchsize) 
    167   //    offset = 3; 
    168          
    169   //  if (depth%5==0) 
     180  //const int batchsize = 128; 
     181 
     182  //if (r - l < 16*batchsize) 
     183  //    offset = 3; 
     184         
     185  //  if (depth%2==0) 
    170186  //    offset = 3; 
    171187   
     
    305321                                                 hitA.mObject, 
    306322                                                 mPreprocessor.mPass, 
    307                                                  simpleRay.mPdf 
     323                                                 1.0f //simpleRay.mPdf 
    308324                                                 ); 
    309325#if DEBUG_RAYCAST 
     
    336352                        hitB.mObject, 
    337353                        mPreprocessor.mPass, 
    338                         simpleRay.mPdf 
     354                        1.0f //simpleRay.mPdf 
    339355                        ); 
    340356 
Note: See TracChangeset for help on using the changeset viewer.