Show
Ignore:
Timestamp:
02/24/11 12:54:44 (3 years ago)
Author:
robert
Message:

Removed TrapezoidalShadowMap? due to discovery of patent on algorithm.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgshadow/osgshadow.cpp

    r12189 r12192  
    4343#include <osgShadow/ParallelSplitShadowMap> 
    4444#include <osgShadow/LightSpacePerspectiveShadowMap> 
    45 #include <osgShadow/TrapezoidalShadowMap> 
    4645#include <osgShadow/StandardShadowMap> 
    4746 
     
    602601 
    603602    arguments.getApplicationUsage()->addCommandLineOption("--lispsm", "Select LightSpacePerspectiveShadowMap implementation."); 
    604     arguments.getApplicationUsage()->addCommandLineOption("--tsm", "Select TrapezoidalShadowMap implementation."); 
    605603    arguments.getApplicationUsage()->addCommandLineOption("--msm", "Select MinimalShadowMap implementation."); 
    606     arguments.getApplicationUsage()->addCommandLineOption("--ViewBounds", "MSM, LiSPSM & TSM optimize shadow for view frustum (weakest option)"); 
    607     arguments.getApplicationUsage()->addCommandLineOption("--CullBounds", "MSM, LiSPSM & TSM optimize shadow for bounds of culled objects in view frustum (better option)."); 
    608     arguments.getApplicationUsage()->addCommandLineOption("--DrawBounds", "MSM, LiSPSM & TSM optimize shadow for bounds of predrawn pixels in view frustum (best & default)."); 
    609     arguments.getApplicationUsage()->addCommandLineOption("--mapres", "MSM, LiSPSM & TSM texture resolution."); 
    610     arguments.getApplicationUsage()->addCommandLineOption("--maxFarDist", "MSM, LiSPSM & TSM max far distance to shadow."); 
    611     arguments.getApplicationUsage()->addCommandLineOption("--moveVCamFactor", "MSM, LiSPSM & TSM move the virtual frustum behind the real camera, (also back ground object can cast shadow)."); 
    612     arguments.getApplicationUsage()->addCommandLineOption("--minLightMargin", "MSM, LiSPSM t& TSM the same as --moveVCamFactor."); 
     604    arguments.getApplicationUsage()->addCommandLineOption("--ViewBounds", "MSM, LiSPSM & optimize shadow for view frustum (weakest option)"); 
     605    arguments.getApplicationUsage()->addCommandLineOption("--CullBounds", "MSM, LiSPSM & optimize shadow for bounds of culled objects in view frustum (better option)."); 
     606    arguments.getApplicationUsage()->addCommandLineOption("--DrawBounds", "MSM, LiSPSM & optimize shadow for bounds of predrawn pixels in view frustum (best & default)."); 
     607    arguments.getApplicationUsage()->addCommandLineOption("--mapres", "MSM, LiSPSM & texture resolution."); 
     608    arguments.getApplicationUsage()->addCommandLineOption("--maxFarDist", "MSM, LiSPSM & max far distance to shadow."); 
     609    arguments.getApplicationUsage()->addCommandLineOption("--moveVCamFactor", "MSM, LiSPSM & move the virtual frustum behind the real camera, (also back ground object can cast shadow)."); 
     610    arguments.getApplicationUsage()->addCommandLineOption("--minLightMargin", "MSM, LiSPSM t& the same as --moveVCamFactor."); 
    613611 
    614612    arguments.getApplicationUsage()->addCommandLineOption("-1", "Use test model one."); 
     
    774772            msm = new osgShadow::LightSpacePerspectiveShadowMapDB; 
    775773    }  
    776     else if( arguments.read("--tsm") )  
    777     { 
    778        if( arguments.read( "--ViewBounds" ) ) 
    779             msm = new osgShadow::TrapezoidalShadowMapVB; 
    780        else if( arguments.read( "--CullBounds" ) ) 
    781             msm = new osgShadow::TrapezoidalShadowMapCB; 
    782        else // if( arguments.read( "--DrawBounds" ) )  
    783             msm = new osgShadow::TrapezoidalShadowMapDB; 
    784     } 
    785774    else if( arguments.read("--msm") ) 
    786775    { 
     
    802791    } 
    803792 
    804     if( msm )// Set common MSM & TSM & LISPSM arguments 
     793    if( msm )// Set common MSM & LISPSM arguments 
    805794    { 
    806795        shadowedScene->setShadowTechnique( msm.get() );