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