return ss.str();
}
+ float getRangeMultiplier() const
+ {
+ float rangeMultiplier = 2;
+ if (!_options)
+ return rangeMultiplier;
+ std::stringstream ss(_options->getPluginStringData("SimGear::SPT_RANGE_MULTIPLIER"));
+ ss >> rangeMultiplier;
+ return rangeMultiplier;
+ }
+
const osgDB::Options* _options;
std::vector<unsigned> _pageLevels;
};
pagedLOD->setDatabaseOptions(localOptions.get());
// The break point for the low level of detail to the high level of detail
- float range = 2*sphere.getRadius();
+ float rangeMultiplier = options.getRangeMultiplier();
+ float range = rangeMultiplier*sphere.getRadius();
// Look for a low level of detail tile
std::string lodPath = options.getLodPathForBucketBox(bucketBox);