Changeset 1501 for GTP/trunk/Lib
- Timestamp:
- 09/26/06 19:10:40 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GvsPreprocessor.cpp
r1500 r1501 26 26 Debug << "number of initial samples: " << mInitialSamples << endl; 27 27 Debug << "number of samples per pass: " << mSamplesPerPass << endl; 28 Debug << "threshold: " << mThreshold << endl; 29 Debug << "eps: " << mEps << endl; 28 30 29 31 mStats.open("gvspreprocessor.log"); … … 55 57 bool GvsPreprocessor::HandleRay(VssRay &vssRay) 56 58 { 57 if (!mViewCellsManager->ComputeSampleContribution(vssRay, true, false)) 58 { 59 if (mViewCellsManager->ComputeSampleContribution(vssRay, true, false)) 60 { 61 //cout << "h"; 59 62 mRayQueue.push(&vssRay); 60 63 return true; … … 198 201 // add to ray queue 199 202 EnqueueRays(vssRays); 200 203 /* 201 204 // recursivly subdivide each edge 202 205 for (int i = 0; i < 9; ++ i) … … 210 213 currentRay); 211 214 } 212 215 */ 213 216 return (int)vssRays.size(); 214 217 } … … 240 243 { 241 244 cout << "r" << endl; 242 243 244 245 //-- The plane p = (xp, hit(x), hit(xold)) is intersected 245 246 //-- with the newly found triangle (xold is the previous ray from … … 306 307 307 308 const int gvsSamples = ProcessQueue(); 309 #if 0 308 310 castSamples += gvsSamples; 311 #else 312 castSamples += mInitialSamples; 313 #endif 309 314 //cout << "\ncast " << castSamples << " of " << mSamplesPerPass << endl; 310 315 } … … 324 329 mRayQueue.pop(); 325 330 326 castSamples += HandleRay(*ray);331 castSamples += AdaptiveBorderSampling(*ray); 327 332 } 328 333 -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.vcproj
r1486 r1501 217 217 OptimizeForProcessor="3" 218 218 OptimizeForWindowsApplication="TRUE" 219 AdditionalIncludeDirectories="..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;..\..\..\..\..\..\NonGTP\Boost;..\MultiLevelRayTracing "219 AdditionalIncludeDirectories="..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;..\..\..\..\..\..\NonGTP\Boost;..\MultiLevelRayTracing;"$(QTDIR)\include\QtCore"" 220 220 PreprocessorDefinitions="WIN32;NDEBUG;_LIB;GTP_INTERNAL" 221 221 ExceptionHandling="TRUE" -
GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.cpp
r1500 r1501 2474 2474 2475 2475 // prune more rays to amortize the procedure 2476 int desired = maxRays*0.8f;2476 int desired = (int)(maxRays * 0.8f); 2477 2477 2478 2478 Debug<<"Prunning rays...\nOriginal size "<<stat.rayRefs<<endl<<flush; -
GTP/trunk/Lib/Vis/Preprocessing/src/TestPreprocessor.vcproj
r1344 r1501 193 193 OptimizeForProcessor="3" 194 194 OptimizeForWindowsApplication="TRUE" 195 AdditionalIncludeDirectories="..\include;..\..\..\..\..\..\NonGTP\Boost; "$(QTDIR)\include\QtOpenGl";..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces"195 AdditionalIncludeDirectories="..\include;..\..\..\..\..\..\NonGTP\Boost;..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;"$(QTDIR)\include\QtOpenGl";"$(QTDIR)\include\Qt";"$(QTDIR)\include\QtCore";"$(QTDIR)\include"" 196 196 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;GTP_INTERNAL" 197 197 RuntimeLibrary="2" … … 205 205 <Tool 206 206 Name="VCLinkerTool" 207 AdditionalDependencies="xerces-c_2.lib glew32.lib zdll.lib zziplib.lib devil.lib glut32.lib OpenGL32.Lib glu32.lib Preprocessor.lib RTScene.lib RTWorld.lib "207 AdditionalDependencies="xerces-c_2.lib glew32.lib zdll.lib zziplib.lib devil.lib glut32.lib OpenGL32.Lib glu32.lib Preprocessor.lib RTScene.lib RTWorld.lib QtCore4.lib qtmain.lib QtOpenGL4.lib Qt3Support4.lib QtTest4.lib QtGui4.lib QtGlRenderer.lib" 208 208 OutputFile="../bin/release/Preprocessor.exe" 209 209 LinkIncremental="1" 210 AdditionalLibraryDirectories="..\src\GL;..\lib\release;..\..\Preprocessing\lib\release;..\..\..\..\..\..\NonGTP\Boost\lib;..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\..\..\..\NonGTP\Zlib\lib;..\..\..\..\..\..\NonGTP\Devil\lib;..\MultiLevelRayTracing\RTScene\Release;..\MultiLevelRayTracing\RTWorld\Release "210 AdditionalLibraryDirectories="..\src\GL;..\lib\release;..\..\Preprocessing\lib\release;..\..\..\..\..\..\NonGTP\Boost\lib;..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\..\..\..\NonGTP\Zlib\lib;..\..\..\..\..\..\NonGTP\Devil\lib;..\MultiLevelRayTracing\RTScene\Release;..\MultiLevelRayTracing\RTWorld\Release;"$(QTDIR)\lib";.\QtGlRenderer\Release" 211 211 GenerateDebugInformation="FALSE" 212 212 SubSystem="1" -
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r1492 r1501 1 1 #ifdef GTP_INTERNAL 2 //#define USE_QT 0 3 #endif 4 5 #define USE_QT 0 2 #define USE_QT 1 3 #else 4 #define USE_QT 0 5 #endif 6 6 7 #if USE_QT 7 8 #define USE_BOOST 0 8 9 #else 9 #define USE_BOOST 010 #define USE_BOOST 1 10 11 #endif 11 12
Note: See TracChangeset
for help on using the changeset viewer.