- Timestamp:
- 01/18/06 04:55:43 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Makefile
r529 r549 1 1 ############################################################################# 2 2 # Makefile for building: preprocessor 3 # Generated by qmake (2.00a) (Qt 4.1.0) on: ?t 12. I 15:26:5220063 # Generated by qmake (2.00a) (Qt 4.1.0) on: po 16. I 20:32:45 2006 4 4 # Project: preprocessor.pro 5 5 # Template: app -
trunk/VUT/GtpVisibilityPreprocessor/src/RssPreprocessor.cpp
r537 r549 13 13 #include "GlRenderer.h" 14 14 15 static bool useViewSpaceBox = true;15 static bool useViewSpaceBox = false; 16 16 static bool use2dSampling = false; 17 17 … … 82 82 83 83 SetupRay(ray, viewPoint, direction); 84 85 if (!mDetectEmptyViewSpace) 86 ray.mFlags &= ~Ray::CULL_BACKFACES; 87 84 88 // cast ray to KD tree to find intersection with other objects 85 89 Intersectable *objectA, *objectB; … … 101 105 } 102 106 103 bool detectEmptyViewSpace = true; 104 105 if (detectEmptyViewSpace) { 107 108 if (mDetectEmptyViewSpace) { 106 109 SetupRay(ray, pointA, -direction); 107 110 } else 108 111 SetupRay(ray, viewPoint, -direction); 109 112 110 113 if (!mDetectEmptyViewSpace) 114 ray.mFlags &= ~Ray::CULL_BACKFACES; 115 111 116 if (mKdTree->CastRay(ray)) { 112 117 objectB = ray.intersections[0].mObject; … … 122 127 123 128 // if (objectA == NULL && objectB != NULL) { 124 if ( 1) {129 if (mDetectEmptyViewSpace) { 125 130 // cast again to ensure that there is no objectA 126 131 SetupRay(ray, pointB, direction); … … 135 140 136 141 bool validSample = (objectA != objectB); 137 if (0 && detectEmptyViewSpace) { // consider all samples valid138 // check if the viewpoint lies on the line segment AB139 if (Distance(pointA, pointB) <140 Distance(viewPoint, pointA) + Distance(viewPoint, pointB) - Limits::Small) {141 validSample = false;142 }143 }144 145 142 if (validSample) { 146 143 if (objectA) { … … 318 315 // exporter->ExportKdTree(*mKdTree); 319 316 exporter->SetFilled(); 320 exporter->ExportScene(mSceneGraph->mRoot); 317 // temporarily do not export the scene 318 if (0) 319 exporter->ExportScene(mSceneGraph->mRoot); 321 320 exporter->SetWireframe(); 322 321 -
trunk/VUT/GtpVisibilityPreprocessor/src/RssTree.cpp
r537 r549 2088 2088 } 2089 2089 } 2090 2090 2091 float extendedConvexCombinationProb = 0.0f; //0.7f 2092 float silhouetteCheckPercentage = 0.0f; //0.5f 2091 2093 for (int i=0; generated < numberOfRays && i < numberOfTries; i++) { 2092 bool useExtendedConvexCombination = ((nrays >= 2) && (Random(1.0f) < 0.7f)); 2094 bool useExtendedConvexCombination = ((nrays >= 2) && (Random(1.0f) < 2095 extendedConvexCombinationProb)); 2093 2096 2094 2097 Vector3 origin, direction; … … 2163 2166 2164 2167 2165 if (i > numberOfRays /2) {2168 if (i > numberOfRays*(1.0f - silhouetteCheckPercentage)) { 2166 2169 if (exporter) { 2167 2170 VssRay *ray = new VssRay(origin, origin + 100*direction, NULL, NULL); -
trunk/VUT/GtpVisibilityPreprocessor/src/default.env
r547 r549 23 23 useGlRenderer true 24 24 # type sampling 25 type vss26 #type rss25 # type vss 26 type rss 27 27 detectEmptyViewSpace false 28 28 } … … 70 70 RssPreprocessor { 71 71 samplesPerPass 100000 72 initialSamples 50000073 vssSamples 1000000074 vssSamplesPerPass 50000072 initialSamples 1000000 73 vssSamples 20000000 74 vssSamplesPerPass 1000000 75 75 useImportanceSampling true 76 76 … … 87 87 useViewcells true 88 88 updateSubdivision true 89 loadInitialSamples true89 loadInitialSamples true 90 90 storeInitialSamples false 91 91 } … … 107 107 maxStaticMemory 100 108 108 109 splitType regular109 # splitType regular 110 110 # splitType heuristic 111 #splitType hybrid112 splitUseOnlyDrivingAxis true111 splitType hybrid 112 splitUseOnlyDrivingAxis false 113 113 importanceBasedCost false 114 114 … … 168 168 169 169 ViewCells { 170 loadFromFile false170 loadFromFile true 171 171 #type kdTree 172 172 #type vspKdTree … … 200 200 } 201 201 202 filename ../data/soda/viewcells_soda5.xml 202 # filename ../data/soda/viewcells_soda5.xml 203 filename ../data/atlanta/viewcells_atlanta2.xml 203 204 # filename ../data/atlanta/atlanta_viewcells_large.x3d 204 205 # filename ../data/vienna/viewcells-25-sel.x3d -
trunk/VUT/GtpVisibilityPreprocessor/src/preprocessor.pro
r516 r549 44 44 RenderSimulator.cpp VspKdTree.cpp RayInfo.cpp RssTree.cpp RssPreprocessor.cpp \ 45 45 ViewCellsManager.cpp VspBspTree.cpp GlRenderer.cpp \ 46 PreprocessorThread.cpp Renderer.cpp Beam.cpp ViewCellsParser.cpp 46 PreprocessorThread.cpp Renderer.cpp Beam.cpp ViewCellsParser.cpp Tetrahedron3.cpp 47 47
Note: See TracChangeset
for help on using the changeset viewer.