From Paul Martz, updated the LOD documentation
This commit is contained in:
parent
a59bfdfced
commit
459696fdb2
@ -24,13 +24,13 @@ namespace osg {
|
|||||||
the eye point are rendered at a lower level of detail, and at times
|
the eye point are rendered at a lower level of detail, and at times
|
||||||
of high stress on the graphics pipeline lower levels of detail can
|
of high stress on the graphics pipeline lower levels of detail can
|
||||||
also be chosen.
|
also be chosen.
|
||||||
The children are ordered from most detailed (for close up views) to the least
|
Each child has a corresponding valid range consisting of a minimum
|
||||||
(see from a distance), and a set of ranges are used to decide which LOD is used
|
and maximum distance. Given a distance to the viewer (d), LOD displays
|
||||||
at different view distances, the criteria used is child 'i' is used when
|
a child if min <= d < max. LOD may display multiple children simultaneously
|
||||||
range[i]<dist<range[i+1] is true. This requires there to be n+1 range values where the number of
|
if their corresponding ranges overlap. Children can be in any order,
|
||||||
children is n, since no maximum distance of infinity is assumed. If the number of range values (m)
|
and don't need to be sorted by range or amount of detail. If the number of
|
||||||
is insufficient then the children m through to n will be ignored, only 0..m-1 will be used
|
ranges (m) is less than the number of children (n), then children m+1 through
|
||||||
during rendering.
|
n are ignored.
|
||||||
*/
|
*/
|
||||||
class OSG_EXPORT LOD : public Group
|
class OSG_EXPORT LOD : public Group
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user