Changeset 2725


Ignore:
Timestamp:
05/29/08 00:31:59 (16 years ago)
Author:
mattausch
Message:

siggraph asia submission

Location:
GTP/trunk/Lib/Vis/Preprocessing
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/run_demo_arena

    r2684 r2725  
    99 
    1010#COMMAND="./release/preprocessor.exe -preprocessor_quit_on_finish+" 
    11 COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish- -preprocessor_use_gl_renderer+ -preprocessor_evaluate_filter- -samples_per_evaluation=5000000 -samples_per_pass=500000 -total_samples=100000000" 
     11COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish- -preprocessor_use_gl_renderer+ -preprocessor_evaluate_filter- -samples_per_evaluation=5000000 -samples_per_pass=500000 -total_samples=100000000 -view_cells_import_random_viewcells+" 
    1212 
    13 #SCENE=../data/Arena/arena-high-lods.obj 
    14 SCENE=../data/Arena/arena_trees.obj 
     13SCENE=../data/Arena/arena-high-lods.obj 
     14#SCENE=../data/Arena/arena_trees.obj 
    1515 
    1616#VIEWCELLS=../data/Arena/arena-high-lods-57000-viewcells.xml.gz 
    1717#VIEWCELLS=../data/Arena/arena-high-lods-10000-viewcells.xml.gz 
    1818VIEWCELLS=../data/Arena/arena-high-lods-5000-viewcells.xml.gz 
     19VIEWPOINTS=../data/arena/arena_key_cropped.vp 
    1920 
    2021# SCENE=../data/Pompeii/PompeiiTen.obj 
     
    3738-preprocessor_stats=$PREFIX-i-mixed-b1-n4a.log \ 
    3839-preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4a.hlog \ 
     40 -view_cells_random_viewpoint_list=$VIEWPOINTS \ 
    3941demo1.env 
    4042 
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/run_demo_vienna

    r2724 r2725  
    88 
    99 
    10 SCENE=../data/vienna/vienna_cropped.obj 
     10#SCENE=../data/vienna/vienna_cropped.obj 
    1111#SCENE=../data/vienna/city_full.obj 
    12 #SCENE=../data/vienna/city_full_hp.obj 
     12SCENE=../data/vienna/city_full_hp.obj 
    1313#SCENE=../data/vienna/vienna_rep.obj 
    1414 
    1515VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz 
    16 #VIEWCELLS=../data/vienna/vienna_cropped-seq-3000-false-20-viewcells.xml.gz 
    17 VIEWCELLS=../data/vienna/vienna_cropped-57000-viewcells.xml.gz 
     16VIEWCELLS=../data/vienna/vienna_cropped-seq-3000-false-20-viewcells.xml.gz 
     17#VIEWCELLS=../data/vienna/vienna_cropped-57000-viewcells.xml.gz 
    1818VIEWPOINTS=../data/vienna/testwalk.vp 
    1919 
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/run_gvs_vps.sh

    r2723 r2725  
    1212 
    1313#SCENE=../data/Arena/arena-high-lods.obj 
    14 #VIEWCELLS=../data/Arena/arena-high-lods-5000-viewcells.xml.gz 
     14SCENE=../data/Arena/arena_trees.obj 
     15VIEWCELLS=../data/Arena/arena-high-lods-5000-viewcells.xml.gz 
    1516#SCENE=../data/vienna/vienna_cropped.obj 
    1617#SCENE=../data/roofs_new.obj 
    17 SCENE=../data/vienna/city_full_hp.obj 
     18#SCENE=../data/vienna/city_full_hp.obj 
    1819#SCENE=../data/vienna/vienna_rep.obj 
    1920 
    20  
    2121#SCENE=../data/vienna/vienna_cropped.obj 
    22 VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz 
    23 VIEWPOINTS=../data/vienna/testwalk.vp 
     22#VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz  
     23#VIEWPOINTS=../data/vienna/testwalk.vp 
     24VIEWPOINTS=../data/arena/arena_key_cropped.vp 
    2425 
    2526#LOG_PREFIX=../src/SG08/rebut-arena-pixel2 
    2627#LOG_PREFIX=../src/SG08/full 
    27 LOG_PREFIX=../src/SG08/city_full 
     28LOG_PREFIX=../src/SG08/arena_trees 
    2829 
    2930ENVIRONMENT=gvs.env 
     
    3940-preprocessor_use_vbos- \ 
    4041-gvs_epsilon=0.0001 \ 
    41 -gvs_total_samples=1000000 \ 
    42 -gvs_samples_per_pass=1000000 \ 
     42-gvs_total_samples=100000 \ 
     43-gvs_samples_per_pass=100000 \ 
    4344-gvs_initial_samples=16 \ 
    44 -gvs_max_viewcells=5000 \ 
    45 -gvs_min_contribution=500 \ 
     45-gvs_max_viewcells=200000 \ 
     46-gvs_min_contribution=2000 \ 
    4647-gvs_per_viewcell=true \ 
    4748-preprocessor_detect_empty_viewspace+ \ 
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp

    r2721 r2725  
    104104                mViewDirection = Vector3(-0.604798, 0, 0.796379); 
    105105 
    106                 if (0) { 
     106                if (1) { 
    107107 
    108108                // outside 
     
    15731573        int i = 0; 
    15741574 
     1575        // $ tmp matt: somehow this is not properly initialised 
     1576        ClearErrorBuffer(); 
     1577        cout << "here4 " << mPvsErrorBuffer.size() << endl; 
    15751578        for (sit = viewPoints.begin(); sit != sit_end; ++ sit, ++ i)  
    15761579        { 
     
    15841587                mViewDirection = sray.mDirection; 
    15851588 
     1589                cout << "handling vp " << mFrame << " " << mViewPoint << " " << mViewDirection << endl; 
    15861590                // skip all frames which have already 0 pixel error 
    15871591                // $$ Reverted back by JB for efficiency 
    1588                 if (mPvsErrorBuffer[i].mError > 0.0f)  
    1589                 { 
     1592                if (1)//mPvsErrorBuffer[i].mError > 0.0f)  
     1593                { 
     1594                        cout << "here3" << endl; 
    15901595                        // compute the pixel error 
    15911596                        mPvsErrorBuffer[i].mError = GetPixelError(pvsSize, mPvsStat.pass); 
    15921597                        mPvsErrorBuffer[i].mPvsSize = pvsSize; 
    15931598 
    1594                         if (0 && (mPvsErrorBuffer[i].mError * GetWidth() * GetHeight() > 0) && (pvsSize > 0))  
     1599                        if ((mPvsErrorBuffer[i].mError * GetWidth() * GetHeight() > 0) && (pvsSize > 0))  
    15951600                        { 
    15961601                                cout << "error in frame " << i << "," << mViewPoint << "," << mViewDirection << " "  
  • GTP/trunk/Lib/Vis/Preprocessing/src/GvsPreprocessor.cpp

    r2717 r2725  
    243243                        //if (!node) cerr << "e " << obj->GetBox() << " " << ray.mTermination << endl; else  
    244244                        if (!node->Mailed()) 
    245                         {//cout<<"o "; 
     245                        { 
    246246                                // add to pvs 
    247247                                node->Mail(); 
     
    442442 
    443443        ////////// 
    444         //-- fill up simple rays with random rays so we can cast 16 
     444        //-- fill up simple rays with random rays so we can cast 16 rays simultaniosly 
    445445 
    446446        //const int numRandomRays = 0; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp

    r2723 r2725  
    2020#include "ObjectPlacer.h" 
    2121 
    22 #define TEASER 1 
    23  
     22#define TEASER 0 
    2423#define USE_CG 1 
    2524 
     
    247246 
    248247                // mat_specular and mat_shininess are NOT default values 
    249                 /*GLfloat mat_ambient[] = {0.2f, 0.2f, 0.2f, 1.0f}; 
     248                GLfloat mat_ambient[] = {0.5f, 0.5f, 0.5f, 1.0f}; 
    250249                GLfloat mat_diffuse[] = {1.0f, 1.0f, 1.0f, 1.0f}; 
    251250                GLfloat mat_specular[] = {0.3f, 0.3f, 0.3f, 1.0f}; 
     
    256255                glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular); 
    257256                glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess); 
    258                 */ 
    259  
    260                 GLfloat light_ambient[] = {0.1, 0.1, 0.1, 1.0}; 
     257                 
     258                GLfloat light_ambient[] = {0.3, 0.3, 0.3, 1.0}; 
     259                //GLfloat light_diffuse[] = {0.6, 0.6, 0.6, 1.0}; 
    261260                GLfloat light_diffuse[] = {0.6, 0.6, 0.6, 1.0}; 
    262261                GLfloat light_specular[] = {1.0, 1.0, 1.0, 1.0}; 
     
    272271                glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse); 
    273272                glLightfv(GL_LIGHT0, GL_SPECULAR, light_specular); 
     273                glLightfv (GL_LIGHT0, GL_POSITION, light_position); 
    274274                 
    275275                glColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE); 
    276276                glEnable(GL_COLOR_MATERIAL); 
    277277 
    278                 GLfloat lmodel_ambient[] = {0.1f, 0.1f, 0.1f, 1.0f}; 
     278                GLfloat lmodel_ambient[] = {0.3f, 0.3f, 0.3f, 1.0f}; 
    279279                glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient); 
    280280 
     
    306306        RenderPvs(pvs); 
    307307 
    308         //cout << "rendered nodes: " << mRenderedNodes << endl; 
    309  
    310308        //glColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_FALSE); 
    311309        //glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_FALSE); 
     
    340338        pErrorPixels = (float)pixelCount / (GetWidth() * GetHeight()); 
    341339 
    342         const int pixelThres = -1; 
     340        const int pixelThres = 0; 
    343341 
    344342        // some error happened 
    345         if (pixelCount > pixelThres)  
     343        if (1)//pixelCount > pixelThres)  
    346344        { 
    347345                cout << "f " << mFrame << " id " << viewcell->GetId() << " pvs " << pvsSize  
     
    468466         
    469467        // mat_specular and mat_shininess are NOT default values 
    470         GLfloat mat_ambient[] = {0.1f, 0.1f, 0.1f, 1.0f}; 
     468        GLfloat mat_ambient[] = {0.5f, 0.5f, 0.5f, 1.0f}; 
    471469        GLfloat mat_diffuse[] = {1.0f, 1.0f, 1.0f, 1.0f}; 
    472470        GLfloat mat_specular[] = {0.3f, 0.3f, 0.3f, 1.0f}; 
     
    482480 
    483481        // a light       
    484         GLfloat light_ambient[] = {0.05, 0.05, 0.05, 1.0}; 
    485     GLfloat light_diffuse[] = {0.7, 0.7, 0.7, 1.0}; 
    486     GLfloat light_specular[] = {0.3, 0.3, 0.3, 1.0}; 
    487     //GLfloat light_position[] =  {0.f, .0f, 0.f, 1.0f}; 
     482        GLfloat light_ambient[] = {0.3, 0.3, 0.3, 1.0}; 
     483    GLfloat light_diffuse[] = {0.6, 0.6, 0.6, 1.0}; 
     484    GLfloat light_specular[] = {1.0, 1.0, 1.0, 1.0}; 
     485    GLfloat light_position[] =  {0.f, .0f, 0.f, 1.0f}; 
    488486    //GLfloat light_position[] =  {600.0f, 250.0f, -500.f, 1.0f}; 
    489487    //GLfloat light_position[] = {278.0f, 548.8f,279.0f, 1.0f}; 
     
    495493        glLightfv(GL_LIGHT0, GL_SPECULAR, light_specular); 
    496494 
    497         glLightf(GL_LIGHT0, GL_CONSTANT_ATTENUATION, 1); 
    498         glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, 0); 
    499         glLightf(GL_LIGHT0, GL_QUADRATIC_ATTENUATION, 0); 
    500          
    501         //      GLfloat light1_position[] =  {-22.076887, 21.070816, 50.272095}; 
    502          
    503         // GLfloat light1_position[] =  {0, 0, -100}; 
     495        glLightfv(GL_LIGHT0, GL_POSITION, light_position); 
     496         
     497        //glDisable(GL_LIGHT0); 
     498        glEnable(GL_LIGHT0); 
    504499 
    505500        glLightfv(GL_LIGHT1, GL_AMBIENT, light_ambient); 
     
    507502        glLightfv(GL_LIGHT1, GL_SPECULAR, light_specular); 
    508503 
    509         glLightf(GL_LIGHT1, GL_CONSTANT_ATTENUATION, 1.0f); 
    510         glLightf(GL_LIGHT1, GL_LINEAR_ATTENUATION, 0); 
    511         glLightf(GL_LIGHT1, GL_QUADRATIC_ATTENUATION, 0); 
    512  
    513  
    514         glLightfv(GL_LIGHT2, GL_AMBIENT, light_ambient); 
    515         glLightfv(GL_LIGHT2, GL_DIFFUSE, light_diffuse); 
    516         glLightfv(GL_LIGHT2, GL_SPECULAR, light_specular); 
    517          
    518          
    519         glEnable(GL_LIGHT0); 
    520         glEnable(GL_LIGHT1);  
    521         glEnable(GL_LIGHT2);  
    522  
    523          
    524         GLfloat lmodel_ambient[] = {0.05f, 0.05f, 0.05f, 1.0f}; 
     504        // set position of the light2 
     505        GLfloat infinite_light2[] = {  -0.3, 1.5, 1.0, 0.0  }; 
     506        glLightfv (GL_LIGHT1, GL_POSITION, infinite_light2); 
     507        //glEnable(GL_LIGHT1); 
     508 
     509        GLfloat lmodel_ambient[] = {0.3f, 0.3f, 0.3f, 1.0f}; 
    525510        glLightModelfv(GL_LIGHT_MODEL_AMBIENT, lmodel_ambient); 
    526511         
     
    605590                if (i == mCurrentDynamicObjectIdx) 
    606591                        glColor3f(1, 0, 1); 
    607                 else 
    608                         glColor3f(0, 1, 0); 
     592                else glColor3f(0.6f, 0.6f, 0.6f); 
    609593 
    610594                _RenderDynamicObject(*dit); 
    611595        } 
    612596         
    613         glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); 
     597        //glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); 
    614598} 
    615599 
     
    1007991        SetupCameraProjection(width(), height()); 
    1008992        SetupCamera(); 
    1009  
    1010         GLfloat light0_position[] =  {22.495655, 21.070816, -1001.375000}; 
    1011         GLfloat light1_position[] =  {-22.076887, 21.070816, -997.272095}; 
    1012         GLfloat light2_position[] =  { 0.3, 1.5, -0.3, 0.0  }; 
    1013  
    1014         glLightfv (GL_LIGHT0, GL_POSITION, light0_position); 
    1015         glLightfv (GL_LIGHT1, GL_POSITION, light1_position); 
    1016         glLightfv (GL_LIGHT2, GL_POSITION, light2_position); 
    1017993 
    1018994        if (mRenderErrors)  
     
    12141190 
    12151191        // export frame buffer during walkthrough 
    1216         mExportFrameBuffer = true; 
    1217         //mExportFrameBuffer = false; 
    1218  
    1219         SetSceneCut(1000); 
     1192        //mExportFrameBuffer = true; 
     1193        mExportFrameBuffer = false; 
     1194 
     1195        const int sceneCut = 339; 
     1196        SetSceneCut(sceneCut); 
    12201197        mControlWidget = new QtRendererControlWidget(NULL); 
    12211198 
     
    12341211        connect(mControlWidget, SIGNAL(SetSceneCut(int)), this, SLOT(SetSceneCut(int))); 
    12351212        connect(mControlWidget, SIGNAL(SetTopDistance(int)), this, SLOT(SetTopDistance(int))); 
     1213        connect(mControlWidget, SIGNAL(SetMaxRenderCost(int)), this, SLOT(SetMaxRenderCost(int))); 
    12361214        connect(mControlWidget, SIGNAL(SetTransparency(int)), this, SLOT(SetTransparency(int))); 
    12371215 
     
    12851263 
    12861264        setWindowTitle("PVS Visualization"); 
     1265// view cell cut: 300 
     1266        mMaxRenderCost = 500; 
     1267        mMaxRenderCost = 762; 
    12871268 
    12881269        // setting the main window size here 
    12891270        //resize(800, 600); 
    1290         resize(640, 480); 
    1291          
     1271        //resize(400, 300); 
     1272                resize(512, 320); 
    12921273        mControlWidget->show(); 
    12931274 
     
    13481329        AxisAlignedBox3 sceneBox = mViewCellsManager->GetViewSpaceBox(); 
    13491330         
    1350         //float x = 1.0f; 
    1351         //float y = 20.0f; 
    1352         //float z = 80.0f; 
    1353  
    1354         float x = 20.0f; 
    1355         float y = 20.0f; 
    1356         float z = 20.0f; 
     1331        //float x = 20.0f; float y = 20.0f; float z = 80.0f; 
     1332        float x = 20.0f; float y = 20.0f; float z = 20.0f; 
    13571333 
    13581334        AxisAlignedBox3 box(Vector3(0.5f * x, 0, -0.5f * z), Vector3(-0.5f * x, y, 0.5f * z)); 
     1335        //AxisAlignedBox3 box(Vector3(0.5f * x, 0, 0), Vector3(-0.5f * x, y, z)); 
    13591336 
    13601337//      box.Scale(Vector3(0.02f, 0.1f, 0.1f)); 
     
    15601537        s.sprintf("PVS TRI: %08d", (int)mCurrentPvsCost); 
    15611538        //renderText(290, 70, s, font40); 
    1562         renderText(325, 40, s, font40); 
     1539        renderText(200, 40, s, font40); 
     1540#if 0 
    15631541        s.sprintf("error: %3.3f %", mRenderError * 100.0f); 
    15641542        renderText(20, 40, s, font40); 
    1565  
     1543#endif 
    15661544        //renderText(290, 70, s, font40); 
    15671545        glEnable(GL_LIGHTING); 
     
    16191597                mSceneCutPlane.mD = -DotProd(mSceneCutPlane.mNormal, p); 
    16201598 
     1599                cout << "cut view cells at " << number << endl; 
    16211600                updateGL(); 
    16221601        } 
     
    16371616} 
    16381617 
     1618 
     1619void 
     1620QtGlRendererWidget::SetMaxRenderCost(int number) 
     1621{ 
     1622        mMaxRenderCost = number * 1000.0f; 
     1623        cout << "max render cost at " << number << endl; 
     1624        updateGL(); 
     1625} 
     1626 
    16391627void QtGlRendererWidget::SetTransparency(int number) 
    16401628{ 
     
    16461634float QtGlRendererWidget::ComputeRenderCost(ViewCell *vc) 
    16471635{ 
    1648         float renderCost = 0; 
    1649  
     1636         
    16501637#ifdef USE_VERBOSE_PVS 
     1638        // $matt temp 
     1639        return vc->GetPvs().mStats.mWeightedTriangles; 
     1640 
    16511641        if (mShowDistanceWeightedPvs) 
    16521642        { 
     
    16711661                                                                                  int &maxPiercingRays,  
    16721662                                                                                  float &maxRelativeRays,  
    1673                                                                                   float &maxRcCost) 
     1663                                                                                  float &maxCost) 
    16741664{ 
    16751665        maxPvs = -1; 
    16761666        maxPiercingRays = 1; // not zero for savety 
    16771667        maxRelativeRays = Limits::Small; // not zero for savety 
    1678         maxRcCost = Limits::Small; 
     1668        maxCost = Limits::Small; 
    16791669 
    16801670        for (size_t i = 0; i < viewCells.size(); ++ i)  
     
    17081698                else if (mShowWeightedCost) 
    17091699                { 
    1710                         const float rcCost = ComputeRenderCost(vc); 
    1711                         mViewCellsManager->UpdateScalarPvsCost(vc, rcCost); 
    1712  
    1713                         if (rcCost > maxRcCost) 
    1714                                 maxRcCost = rcCost; 
     1700                        const float rCost = ComputeRenderCost(vc); 
     1701                        mViewCellsManager->UpdateScalarPvsCost(vc, rCost); 
     1702 
     1703                        if (rCost > maxCost) 
     1704                                maxCost = rCost; 
    17151705                } 
    17161706        } 
     
    17421732         
    17431733        int maxPvs, maxPiercingRays; 
    1744         float maxRelativeRays, maxRcCost; 
    1745  
    1746         ComputeMaxValues(viewcells, maxPvs, maxPiercingRays, maxRelativeRays, maxRcCost); 
    1747         //cout << "maxRcCost: " << maxRcCost << endl; 
     1734        float maxRelativeRays, maxCost; 
     1735 
     1736        ComputeMaxValues(viewcells, maxPvs, maxPiercingRays, maxRelativeRays, maxCost); 
     1737        static int currentMaxCost = 0; 
     1738 
     1739        if (maxCost > currentMaxCost + 100000) 
     1740        { 
     1741                currentMaxCost = maxCost; 
     1742                cout << "maxCost: " << maxCost << endl; 
     1743        } 
    17481744 
    17491745        // set the max render cost to fixed value 
    1750         //maxRcCost = 1000.0f; 
     1746        maxCost = mMaxRenderCost; 
    17511747 
    17521748        // transparency  
     
    18001796        { 
    18011797                if (!mShowComparison) 
    1802                         AssignImportanceByRelativeValue(viewcells, maxPvs, maxPiercingRays, maxRelativeRays, maxRcCost); 
     1798                        AssignImportanceByRelativeValue(viewcells, maxPvs, maxPiercingRays, maxRelativeRays, maxCost); 
    18031799                else 
    18041800                { 
     
    20932089        /////////////////////////// 
    20942090 
    2095          
    20962091        QGroupBox *groupBox = new QGroupBox("Ray visualization"); 
    20972092        QVBoxLayout *vbox2 = new QVBoxLayout; 
     
    21252120        connect(cb, SIGNAL(toggled(bool)), SIGNAL(SetShowDistribution4(bool))); 
    21262121 
    2127  
    21282122        vbox2->addStretch(1); 
    21292123        groupBox->setLayout(vbox2); 
     
    22232217        connect(cb, SIGNAL(toggled(bool)), SIGNAL(SetRenderErrors(bool))); 
    22242218 
    2225 #if REMOVE_TEMPORARY 
     2219#if 0 
    22262220        cb = new QCheckBox("Render cost curve", hbox); 
    22272221        hlayout->addWidget(cb); 
     
    22332227        cb->setChecked(false); 
    22342228        connect(cb, SIGNAL(toggled(bool)), SIGNAL(SetShowRays(bool))); 
    2235 #if REMOVE_TEMPORARY     
     2229#if 0    
    22362230        cb = new QCheckBox("Show Comparison", hbox); 
    22372231        hlayout->addWidget(cb); 
     
    22522246        vh->addWidget(groupBox, 0, 0); 
    22532247 
    2254 #if REMOVE_TEMPORARY 
     2248 
    22552249        QGroupBox *groupBox2 = CreateRenderCostPanel(hbox); 
    22562250        vh->addWidget(groupBox2, 0, 0); 
    2257          
     2251#if 0    
    22582252        QGroupBox *groupBox3 = CreateRayVisualizationPanel(hbox); 
    22592253        vh->addWidget(groupBox3, 0, 0); 
     
    22952289        connect(slider, SIGNAL(valueChanged(int)), SIGNAL(SetSceneCut(int))); 
    22962290 
    2297  
     2291#if 0 
    22982292        cb = new QCheckBox("Use spatial filter", vbox); 
    22992293        vbox->layout()->addWidget(cb); 
     
    23142308 
    23152309        connect(slider, SIGNAL(valueChanged(int)), SIGNAL(SetSpatialFilterSize(int))); 
    2316  
     2310#endif 
    23172311        //////////////////////////// 
    23182312 
     
    23362330 
    23372331        /////////////////////////////////////////// 
    2338  
     2332#if 0 
    23392333        cb = new QCheckBox("Top View", vbox); 
    23402334        vbox->layout()->addWidget(cb); 
     
    23552349        connect(slider, SIGNAL(valueChanged(int)), SIGNAL(SetTopDistance(int))); 
    23562350         
     2351#endif 
     2352        label = new QLabel("Max render cost"); 
     2353        vbox->layout()->addWidget(label); 
     2354         
     2355        slider = new QSlider(Qt::Horizontal, vbox); 
     2356        vbox->layout()->addWidget(slider); 
     2357        slider->show(); 
     2358        slider->setRange(1, 1000); 
     2359        slider->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); 
     2360         
     2361        slider->setValue(500); 
     2362 
     2363 
     2364        connect(slider, SIGNAL(valueChanged(int)), SIGNAL(SetMaxRenderCost(int))); 
     2365         
     2366 
    23572367 
    23582368        /////////////////////////////////////////// 
     
    24952505                                                                                        GlRendererBuffer::PvsErrorEntry &pvsErrorEntry) 
    24962506{ 
    2497  
     2507#if 0 
    24982508        QListWidgetItem *i = mPvsErrorWidget->item(row); 
    24992509        QString s; 
     
    25052515        } 
    25062516        mPvsErrorWidget->update(); 
     2517#endif 
    25072518} 
    25082519 
     
    26932704                sViewPointsListIt = sViewPointsList.begin(); 
    26942705        } 
     2706        else 
     2707                cerr << "view points list empty" << endl; 
     2708                 
    26952709} 
    26962710 
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.h

    r2709 r2725  
    126126  void SetSceneCut(int); 
    127127  void SetTopDistance(int); 
     128  void SetMaxRenderCost(int); 
    128129  void SetHidingCost(int); 
    129130  void SetVisibilityFilterSize(int); 
     
    251252        bool mExportFrameBuffer; 
    252253 
     254        float mMaxRenderCost; 
     255 
    253256        DynamicObjectsContainer mDynamicPvsObjects; 
    254257 
     
    405408        void 
    406409                SetTopDistance(int dist); 
     410 
     411        void 
     412                SetMaxRenderCost(int dist); 
    407413 
    408414        void 
  • GTP/trunk/Lib/Vis/Preprocessing/src/TestPreprocessor05.vcproj

    r2715 r2725  
    157157                                LinkIncremental="1" 
    158158                                AdditionalLibraryDirectories="&quot;$(QTDIR)\lib&quot;;..\src\GL;&quot;..\lib05\$(ConfigurationName)&quot;;..\..\..\..\..\..\NonGTP\Boost\lib;..\..\..\..\..\..\NonGTP\Zlib\lib;..\..\..\..\..\..\NonGTP\Devil\lib;&quot;..\MultiLevelRayTracing\RTScene\$(ConfigurationName)&quot;;&quot;..\MultiLevelRayTracing\RTWorld\$(ConfigurationName)&quot;;&quot;QtInterface\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\..\NonGTP\Xerces\xerces-c_2_8_0\lib&quot;;&quot;$(CG_LIB_PATH)&quot;" 
    159                                 GenerateDebugInformation="true" 
     159                                GenerateDebugInformation="false" 
    160160                                SubSystem="1" 
    161161                                LargeAddressAware="2" 
Note: See TracChangeset for help on using the changeset viewer.