Ignore:
Timestamp:
01/13/09 12:43:51 (15 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhExporter.cpp

    r3272 r3273  
    9999         ConstructTriangleRangeMap(bvh, bvh->GetStaticRoot(), first, last); 
    100100 
    101          BvhLeafContainer nodes; 
    102          bvh->CollectLeaves(bvh->GetStaticRoot(), nodes); 
     101         BvhNodeContainer nodes; 
     102         bvh->CollectVirtualLeaves(bvh->GetStaticRoot(), nodes); 
    103103 
    104104         vector<int> triangles; 
    105105 
    106          BvhLeafContainer::const_iterator it, it_end = nodes.end(); 
     106         BvhNodeContainer::const_iterator it, it_end = nodes.end(); 
    107107 
    108108         for (it = nodes.begin(); it != it_end; ++ it) 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ObjExporter.cpp

    r3272 r3273  
    5353         int numVertices = 0; 
    5454 
    55          BvhLeafContainer nodes; 
    56          bvh->CollectLeaves(bvh->GetStaticRoot(), nodes); 
     55         BvhNodeContainer nodes; 
     56         bvh->CollectVirtualLeaves(bvh->GetStaticRoot(), nodes); 
    5757 
    5858         cout << "writing " << nodes.size() << " objects ..." << endl;  
    5959 
    60          BvhLeafContainer::const_iterator it, it_end = nodes.end(); 
     60         BvhNodeContainer::const_iterator it, it_end = nodes.end(); 
    6161 
    6262         int j = 0; 
     
    9999         for (int i = 0; i < numVertices; i += 3) 
    100100         { 
    101                  ostream << "f " << i + 2 << " " << i + 2 << " " << i + 3 << endl; 
     101                 ostream << "f " << i + 1 << " " << i + 2 << " " << i + 3 << endl; 
    102102         } 
    103103 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3272 r3273  
    148148bool useSkylightForIllum = true; 
    149149 
     150bool showFPS = true; 
     151 
    150152static int globalVisibleId = 0; 
    151153 
     
    724726 
    725727 
    726         //ObjExporter().Export(model_path + "myvienna.obj", bvh); 
    727         //BvhExporter().Export(model_path + "myvienna.bv", bvh); 
     728        ObjExporter().Export(model_path + "myvienna.obj", bvh); 
     729        BvhExporter().Export(model_path + "myvienna.bv", bvh); 
    728730 
    729731 
     
    17091711                if (!usePvs) SceneEntity::SetCurrentVisibleId(-1); 
    17101712                break; 
     1713        case ',': 
     1714                // show / hide FPS 
     1715                showFPS = !showFPS; 
     1716                break; 
     1717         
    17111718        default: 
    17121719                return; 
     
    24222429                 
    24232430                if (!showAlgorithmTime) 
    2424                         sprintf(msg[7], "%s:  %6.1f fps", alg_str[renderMode], fps); 
     2431                { 
     2432                        if (showFPS) 
     2433                                sprintf(msg[7], "%s:  %6.1f fps", alg_str[renderMode], fps); 
     2434                } 
    24252435                else 
    24262436                        sprintf(msg[7], "%s:  %6.1f ms", alg_str[renderMode], rTime); 
Note: See TracChangeset for help on using the changeset viewer.