[osg-users] Transform RangeMode From PIXEL_SIZE_ON_SCREEN to DISTANCE_FROM_EYE_POINT

Mouming Ning 2736331129 at qq.com
Mon Apr 9 02:38:20 PDT 2018


Hi,

Anyone know how to transform RangeMode from  PIXEL_SIZE_ON_SCREEN to DISTANCE_FROM_EYE_POINT?
I found :required_range = cullStack->clampedPixelSize(getBound()) / cullStack->getLODScale() in the source code ,and it means required_range = radius/(center*pixelSizeVector) /LODScale;
but i donot know the meaning of  pixelSizeVector and the LODScale.
I need the formula,please~~

Thank you!

Cheers,
Mouming

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=73275#73275







More information about the osg-users mailing list