Changeset 522


Ignore:
Timestamp:
01/12/06 13:20:25 (18 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/GtpVisibilityPreprocessor
Files:
1 added
4 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/scripts/default.env

    r521 r522  
    3030        samplesPerPass  100000 
    3131        initialSamples 300000 
    32         vssSamples 1000000 
     32        vssSamples 2000000 
    3333        vssSamplesPerPass 100000 
    3434        useImportanceSampling true 
    3535        loadInitialSamples  false 
    3636        storeInitialSamples false 
    37         useViewSpaceBox true 
     37        useViewSpaceBox false 
    3838} 
    3939 
     
    5454        minSize         0.001 
    5555        maxCostRatio    0.9 
    56         maxRayContribution 0.5 
     56        maxRayContribution 0.05 
    5757         
    5858        maxTotalMemory  200 
     
    170170ViewCells { 
    171171        loadFromFile false 
    172         exportToFile false 
     172        exportToFile true 
    173173        #type kdTree 
    174174        #type vspKdTree 
     
    179179         
    180180        height 5.0 
    181         maxViewCells 100 
     181        maxViewCells 100000 
    182182        #percentage of total visible objects where pvs is considered invalid 
    183         maxPvsRatio 1 
     183        maxPvsRatio 0.05 
    184184                 
    185185        delayedConstruction true 
     
    188188        PostProcess { 
    189189                # how much samples are used for post processing 
    190                 samples 100000 
     190                samples 200000 
    191191        } 
    192192 
     
    199199                colorCode Random 
    200200                exportRays false 
    201                 exportGeometry true 
     201                exportGeometry false 
    202202        } 
    203203         
     
    206206#       filename ../data/vienna/viewcells-25.x3d 
    207207#       filename ../data/vienna/viewcells-large-sel.x3d 
    208         filename ../scripts/viewcells_soda.xml 
     208        filename ../scripts/viewcells_vienna.xml 
    209209} 
    210210 
     
    246246        PostProcess { 
    247247                maxCostRatio 0.005 
    248                 minViewCells 6000 
     248                minViewCells 200 
    249249                maxPvsSize   50000 
    250250        } 
     
    257257VspBspTree { 
    258258        Construction { 
    259                 samples 500000 
     259                samples 900000 
    260260                epsilon 0.005 
    261261                randomize false 
     
    287287        Termination { 
    288288                # parameters used for autopartition 
    289                 minRays                 1500 
     289                minRays                 500 
    290290                minPolygons             -1 
    291291                maxDepth                30 
     
    293293                minArea                 0.0001 
    294294                #minArea                0.000 
    295                 maxRayContribution      0.05 
    296                 maxCostRatio            0.9 
    297                 missTolerance           2 
     295                maxRayContribution      0.3 
     296                maxCostRatio            0.93 
     297                missTolerance           3 
    298298                #maxAccRayLength        100 
    299299                 
     
    318318        PostProcess { 
    319319                maxCostRatio 0.1 
    320                 minViewCells 150 
    321                 maxPvsSize   1000 
     320                minViewCells 6000 
     321                maxPvsSize   10000 
    322322                useRaysForMerge true 
    323323        } 
  • trunk/VUT/GtpVisibilityPreprocessor/src/Beam.cpp

    r513 r522  
    6565  return result; 
    6666} 
     67 
     68 
     69void Beam::ComputeFrustum(float &near, float &far, 
     70                                                  float &left, float &right, 
     71                                                  float &bottom, float &top, 
     72                                                  const AxisAlignedBox3 &sceneBBox) 
     73{ 
     74        const float xDirRange = mDirBox.Max().x - mDirBox.Min().x; 
     75        const float yDirRange = mDirBox.Max().y - mDirBox.Min().y; 
     76 
     77        near = 1; // NOTE: what is the best value for near and far plane? 
     78        far = sceneBBox.Size(sceneBBox.Size().DrivingAxis()); 
     79 
     80        left = 1.0f / tan(xDirRange * 0.5); 
     81        right = 1.0f / tan(xDirRange * 0.5); 
     82 
     83        bottom = 1.0f / tan(yDirRange * 0.5); 
     84        top = 1.0f / tan(yDirRange * 0.5); 
     85} 
  • trunk/VUT/GtpVisibilityPreprocessor/src/Beam.h

    r513 r522  
    3535          const AxisAlignedBox3 &dBox); 
    3636   
    37    
    38   int 
    39           ComputeIntersection(const AxisAlignedBox3 &box); 
     37  void ComputeFrustum(float &near, float &far, 
     38                                          float &left, float &right, 
     39                                          float &bottom, float &top, 
     40                                          const AxisAlignedBox3 &sceneBBox); 
     41 
     42  int ComputeIntersection(const AxisAlignedBox3 &box); 
    4043 
    4144  bool IsValid() { return mFlags & VALID; } 
     
    4548  { 
    4649  } 
    47    
    4850}; 
    4951 
Note: See TracChangeset for help on using the changeset viewer.