Fixed handling of volume tiles with a region.

This commit is contained in:
Robert Osfield
2014-04-01 18:33:02 +00:00
parent 27b71e3927
commit e5fe59799d
9 changed files with 101 additions and 38 deletions

View File

@@ -491,14 +491,15 @@ bool PropertyAdjustmentCallback::handle(const osgGA::GUIEventAdapter& ea,osgGA::
if (_updateSampleDensity && cpv._sampleRatioProperty.valid())
{
float sampleRatio = v2*4;
float sampleDensity = v4;
float sampleRatio = 1.0/(512*sampleDensity);
OSG_NOTICE<<"Setting sample ratio to "<<sampleRatio<<std::endl;
cpv._sampleRatioProperty->setValue(sampleRatio);
}
if (_updateSampleDensity && cpv._sampleRatioWhenMovingProperty.valid())
{
float sampleRatio = v2*4;
float sampleRatio = (1.0-v2)*20.0;
OSG_NOTICE<<"Setting sample ratio to "<<sampleRatio<<std::endl;
cpv._sampleRatioWhenMovingProperty->setValue(sampleRatio);
}