Ignore:
Timestamp:
01/02/09 23:07:07 (15 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r3242 r3243  
    5858#include "WalkThroughRecorder.h" 
    5959#include "StatsWriter.h" 
     60#include "VisibilitySolutionLoader.h" 
     61#include "ViewCellsTree.h" 
    6062 
    6163 
     
    127129 
    128130string filename("city"); 
     131string visibilitySolution(""); 
    129132 
    130133 
     
    430433                env.GetStringParam(string("statsFilename"), statsFilename); 
    431434                env.GetStringParam(string("filename"), filename); 
     435                env.GetStringParam(string("visibilitySolution"), visibilitySolution); 
    432436 
    433437                //env.GetStringParam(string("modelPath"), model_path); 
     
    461465                cout << "stats filename: " << statsFilename << endl; 
    462466                cout << "filename: " << filename << endl; 
     467                cout << "visibilitySolution: " << visibilitySolution << endl; 
     468                 
    463469 
    464470                //cout << "model path: " << model_path << endl; 
     
    604610        /// set the depth of the bvh depending on the triangles per leaf node 
    605611        bvh->SetVirtualLeaves(trianglesPerVirtualLeaf); 
     612 
     613        /////////// 
     614        //-- load the visibility solution 
     615 
     616        const string vis_filename =  
     617                string(model_path + visibilitySolution + ".vis"); 
     618 
     619        VisibilitySolutionLoader visLoader; 
     620 
     621        ViewCellsTree *viewCellsTree = visLoader.Load(vis_filename, bvh); 
     622 
    606623 
    607624        // set far plane based on scene extent 
Note: See TracChangeset for help on using the changeset viewer.