Show
Ignore:
Timestamp:
03/17/11 16:37:39 (4 years ago)
Author:
robert
Message:

Added SampleDensityWhenMovingProperty? to control LOD property of osgVolume.

Files:
1 modified

Legend:

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

    r12186 r12255  
    15771577        osgVolume::AlphaFuncProperty* ap = new osgVolume::AlphaFuncProperty(alphaFunc); 
    15781578        osgVolume::SampleDensityProperty* sd = new osgVolume::SampleDensityProperty(0.005); 
     1579        osgVolume::SampleDensityWhenMovingProperty* sdwm = new osgVolume::SampleDensityWhenMovingProperty(0.02); 
    15791580        osgVolume::TransparencyProperty* tp = new osgVolume::TransparencyProperty(1.0); 
    15801581        osgVolume::TransferFunctionProperty* tfp = transferFunction.valid() ? new osgVolume::TransferFunctionProperty(transferFunction.get()) : 0; 
     
    15851586            cp->addProperty(ap); 
    15861587            cp->addProperty(sd); 
     1588            cp->addProperty(sdwm); 
    15871589            cp->addProperty(tp); 
    15881590            if (tfp) cp->addProperty(tfp);