Changeset 854 for trunk/vizservers


Ignore:
Timestamp:
Jan 18, 2008, 6:39:54 PM (17 years ago)
Author:
vrinside
Message:

Fixed glPushMatrix/glPopMatrix calls

Location:
trunk/vizservers/nanovis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/vizservers/nanovis/NvColorTableRenderer.cpp

    r580 r854  
    2020
    2121    glViewport(0, 0, width, height);
     22
    2223    glMatrixMode(GL_PROJECTION);
    2324    glPushMatrix();
    2425    glLoadIdentity();
    2526    gluOrtho2D(0, width, 0, height);
     27
    2628    glMatrixMode(GL_MODELVIEW);
    2729    glPushMatrix();
     
    4446        _fonts->resize(width, height);
    4547        _fonts->begin();
     48
    4649        glPushMatrix();
    47         glTranslatef(width - 110, 5, 0.0f);
    48         _fonts->draw("Quantum dot lab - www.nanohub.org");
     50            glTranslatef(width - 110, 5, 0.0f);
     51            _fonts->draw("Quantum dot lab - www.nanohub.org");
    4952        glPopMatrix();
     53
    5054        glPushMatrix();
    51         glTranslatef(30, height - 25, 0.0f);
    52         _fonts->draw("%.08lf", rangeMin);
     55            glTranslatef(30, height - 25, 0.0f);
     56            _fonts->draw("%.08lf", rangeMin);
    5357        glPopMatrix();
     58
    5459        glPushMatrix();
    55         glTranslatef(width - 110, height - 25, 0.0f);
    56         _fonts->draw("%.08lf", rangeMax);
     60            glTranslatef(width - 110, height - 25, 0.0f);
     61            _fonts->draw("%.08lf", rangeMax);
     62        glPopMatrix();
     63
    5764        _fonts->end();
    5865    }
  • trunk/vizservers/nanovis/nanovis.cpp

    r851 r854  
    13501350    //assert(glGetError()==0);
    13511351   
    1352     //lic->convolve(); //flow line integral convolution
    1353     //psys->advect(); //advect particles
    1354    
    13551352    //start final rendering
    13561353    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //clear screen
     
    13951392        }
    13961393       
    1397         glPushMatrix();
     1394        // TBD : This will be removed after being sure that all the functions work well.
     1395        //glPushMatrix();
     1396       
    13981397        //now render things in the scene
    13991398        if (axis_on) {
     
    14141413            particleRenderer->render();
    14151414        }
    1416         //lic->render();        //display the line integral convolution result
    14171415        //soft_display_verts();
    14181416        //perf->enable();
    1419         //psys->render();
    14201417        //perf->disable();
    14211418        //fprintf(stderr, "particle pixels: %d\n", perf->get_pixel_count());
    14221419        //perf->reset();
    14231420       
    1424         perf->enable();
     1421        //perf->enable();
    14251422        vol_renderer->render_all();
     1423        //perf->disable();
    14261424       
    1427         perf->disable();
    1428        
    1429         for (unsigned int i = 0; i < heightMap.size(); ++i) {
     1425        for (unsigned int i = 0; i < heightMap.size(); ++i)
     1426        {
    14301427            if (heightMap[i]->isVisible()) {
    14311428                heightMap[i]->render(renderContext);
    1432             }
     1429                }
    14331430        }
    14341431        glPopMatrix();
Note: See TracChangeset for help on using the changeset viewer.