Changeset 2667 for GTP/trunk/Lib
- Timestamp:
- 04/30/08 05:45:38 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r2665 r2667 1542 1542 float error = GetPixelError(pvsSize); 1543 1543 1544 1545 // emit UpdatePvsErrorItem(i, 1546 // mPvsErrorBuffer[i]); 1547 // swapBuffers(); 1544 1548 mPvsErrorBuffer[i].mError = error; 1545 1549 mPvsErrorBuffer[i].mPvsSize = pvsSize; -
GTP/trunk/Lib/Vis/Preprocessing/src/GvsPreprocessor.cpp
r2666 r2667 960 960 961 961 ComputeViewCell(vc); 962 // $$ JB HACK compute just first viewcell 963 // break; 962 964 } 963 965 } … … 1155 1157 { 1156 1158 ComputeRenderError(); 1157 // recompute once more1159 // and second time 1158 1160 ComputeRenderError(); 1159 1161 // and third time 1162 ComputeRenderError(); 1160 1163 } 1161 1164 -
GTP/trunk/Lib/Vis/Preprocessing/src/Makefile
r2638 r2667 1 1 ############################################################################# 2 2 # Makefile for building: preprocessor 3 # Generated by qmake (2.00a) (Qt 4.1.2) on: st 23. I 19:46:5320083 # Generated by qmake (2.00a) (Qt 4.1.2) on: út 18. III 16:04:11 2008 4 4 # Project: preprocessor.pro 5 5 # Template: app … … 63 63 $(MAKE) -f $(MAKEFILE).Debug uninstall 64 64 65 Makefile: preprocessor.pro C:/Qt/4.1.2/mkspecs/win32-msvc .net\qmake.conf C:/Qt/4.1.2/mkspecs/qconfig.pri \65 Makefile: preprocessor.pro C:/Qt/4.1.2/mkspecs/win32-msvc2005\qmake.conf C:/Qt/4.1.2/mkspecs/qconfig.pri \ 66 66 C:\Qt\4.1.2\mkspecs\features\qt_config.prf \ 67 67 C:\Qt\4.1.2\mkspecs\features\exclusive_builds.prf \ -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2665 r2667 158 158 glColorMask(GL_FALSE, GL_TRUE, GL_FALSE, GL_FALSE); 159 159 glColor3f(0,1,0); 160 161 glDepthFunc(GL_LESS); 162 glDepthMask(GL_TRUE); 160 glDepthFunc(GL_LESS ); 163 161 glEnable(GL_DEPTH_TEST); 162 163 glDisable(GL_STENCIL_TEST); 164 165 pvsSize = pvs.GetSize(); 166 167 Intersectable::NewMail(); 168 169 if (pvsSize == 0) 170 return 0.0f; 171 172 RenderPvs(pvs); 173 174 //glColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_FALSE); 175 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); 164 176 165 177 glStencilFunc(GL_EQUAL, 0x0, 0x1); 166 178 glStencilOp(GL_KEEP, GL_KEEP, GL_INCR); 167 168 pvsSize = pvs.GetSize();169 170 if (pvsSize == 0)171 return 0.0f;172 173 RenderPvs(pvs);174 175 //glColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_FALSE);176 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);177 179 glEnable(GL_STENCIL_TEST); 180 178 181 glColor3f(1,0,0); 179 182 -
GTP/trunk/Lib/Vis/Preprocessing/src/default.env
r2647 r2667 7 7 8 8 #filename ./data/arena-high-lods.obj 9 filename ./data/vienna/vienna_cropped.obj9 #filename ./data/vienna/vienna_cropped.obj 10 10 #filename ./data/PowerPlantM.obj 11 11 -
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r2664 r2667 157 157 #endif 158 158 159 160 161 162 163 164 165 166 167 168 169 159 InitTiming(); 160 Debug.open("debug.log"); 161 162 Environment::GetSingleton()->Parse(argc, argv, USE_EXE_PATH); 163 MeshKdTree::ParseEnvironment(); 164 165 char buff[128]; 166 Environment::GetSingleton()->GetStringValue("Preprocessor.type", buff); 167 string preprocessorType(buff); 168 169 if (!(preprocessor = PreprocessorFactory::CreatePreprocessor(preprocessorType))) 170 170 { 171 171 Environment::DelSingleton();
Note: See TracChangeset
for help on using the changeset viewer.