From 611e49b736e8aeddc85bc2eebf88d153e80a157d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 22 Nov 2005 10:08:00 +0000 Subject: [PATCH] From Chris Hanson, add LODScale support to pixel based LOD range selection. --- src/osg/LOD.cpp | 2 +- src/osg/PagedLOD.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osg/LOD.cpp b/src/osg/LOD.cpp index aa9353d54..2f31c24e0 100644 --- a/src/osg/LOD.cpp +++ b/src/osg/LOD.cpp @@ -54,7 +54,7 @@ void LOD::traverse(NodeVisitor& nv) osg::CullStack* cullStack = dynamic_cast(&nv); if (cullStack) { - required_range = cullStack->clampedPixelSize(getBound()); + required_range = cullStack->clampedPixelSize(getBound()) / cullStack->getLODScale(); } else { diff --git a/src/osg/PagedLOD.cpp b/src/osg/PagedLOD.cpp index a55a7e029..ac4e399fc 100644 --- a/src/osg/PagedLOD.cpp +++ b/src/osg/PagedLOD.cpp @@ -126,7 +126,7 @@ void PagedLOD::traverse(NodeVisitor& nv) osg::CullStack* cullStack = dynamic_cast(&nv); if (cullStack) { - required_range = cullStack->clampedPixelSize(getBound()); + required_range = cullStack->clampedPixelSize(getBound()) / cullStack->getLODScale(); } else {