Ignore:
Timestamp:
08/30/06 21:54:49 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1299 r1302  
    521521                // use a small box outside of the scene 
    522522                box.Scale(Vector3(0.1f,0.5f,0.5f)); 
    523                 box.Translate(Vector3(Magnitude(mKdTree->GetBox().Size())*0.5, 0, 0)); 
     523                box.Translate(Vector3(Magnitude(mKdTree->GetBox().Size())*0.5f, 0, 0)); 
    524524          } else { 
    525525                float s = box.Size(0); 
     
    692692          GenerateRays(mRssSamplesPerPass*ratios[0], RSS_BASED_DISTRIBUTION, rays); 
    693693 
    694           rays.NormalizePdf((int)rays.size()); 
     694          rays.NormalizePdf((float)rays.size()); 
    695695           
    696696          CastRays(rays, tmpVssRays); 
     
    702702#endif 
    703703          times[0] = TimeDiff(t1, GetTime()); 
    704           nrays[0] = rays.size(); 
     704          nrays[0] = (int)rays.size(); 
    705705           
    706706          mStats<<"#RssRelContrib"<<endl<<contributions[0]/nrays[0]<<endl; 
     
    713713                GenerateRays(mRssSamplesPerPass*ratios[1], SPATIAL_BOX_BASED_DISTRIBUTION, rays); 
    714714                CastRays(rays, tmpVssRays); 
    715                 castRays += rays.size(); 
     715                castRays += (int)rays.size(); 
    716716#if ADD_RAYS_IN_PLACE  
    717717                contributions[1] = mViewCellsManager->ComputeSampleContributions(tmpVssRays, true, false); 
     
    720720#endif 
    721721          times[1] = TimeDiff(t1, GetTime()); 
    722           nrays[1] = rays.size(); 
     722          nrays[1] = (int)rays.size(); 
    723723 
    724724          mStats<<"#SpatialRelContrib"<<endl<<contributions[1]/nrays[1]<<endl; 
     
    735735                GenerateRays(mRssSamplesPerPass*ratios[2], DIRECTION_BASED_DISTRIBUTION, rays); 
    736736                CastRays(rays, tmpVssRays); 
    737                 castRays += rays.size(); 
     737                castRays += (int)rays.size(); 
    738738#if ADD_RAYS_IN_PLACE  
    739739                contributions[2] = mViewCellsManager->ComputeSampleContributions(tmpVssRays, true, false); 
     
    742742#endif 
    743743                times[2] = TimeDiff(t1, GetTime()); 
    744                 nrays[2] = rays.size(); 
     744                nrays[2] = (int)rays.size(); 
    745745                 
    746746                mStats<<"#DirectionalRelContrib"<<endl<<contributions[2]/nrays[2]<<endl; 
     
    790790          CastRays(rays, vssRays); 
    791791          cout<<"done."<<endl; 
    792           castRays += rays.size(); 
     792          castRays += (int)rays.size(); 
    793793          if (mUseViewcells) { 
    794794                /// compute view cell contribution of rays 
Note: See TracChangeset for help on using the changeset viewer.