Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElevationBasedClipPlanesEvaluator

Abstract evaluator class that adds support for elevation constraints.

remarks

Classes derived from this should implement algorithms that takes into account rendered features height (elevations), such as ground plane is no more flat (or spherical), but contains geometry that should be overlapped by frustum planes.

Hierarchy

Implements

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

maxElevation

  • get maxElevation(): number
  • set maxElevation(elevation: number): void
  • Get maximum elevation to be covered by camera frustum.

    remarks
    note

    If you set this exactly to the maximum rendered feature height (altitude above the sea, you may notice some flickering or even polygons disappearing related to rounding errors or depth buffer precision. In such cases increase [[nearFarMargin]] or add a little bit offset to your assumed maximum elevation.

    note

    Reasonable values are in between (-DeadSeeDepression, MtEverestHeight>, both values are defined in [[EarthConstant]] as [[EarthConstant.MIN_ELEVATION]] and [[EarthConstant.MAX_ELEVATION]] respectively.

    see

    minElevation for more information about precision and rounding errors.

    Returns number

  • Set maximum elevation above sea level to be rendered.

    remarks
    note

    If you set this exactly to the maximum rendered feature height (altitude above the sea, you may notice some flickering or even polygons disappearing related to rounding errors or depth buffer precision. In such cases increase [[nearFarMargin]] or add a little bit offset to your assumed maximum elevation.

    note

    Reasonable values are in between (-DeadSeeDepression, MtEverestHeight>, both values are defined in [[EarthConstant]] as [[EarthConstant.MIN_ELEVATION]] and [[EarthConstant.MAX_ELEVATION]] respectively.

    see

    minElevation for more information about precision and rounding errors.

    Parameters

    • elevation: number

      the elevation (altitude) value in world units (meters).

    Returns void

minElevation

  • get minElevation(): number
  • set minElevation(elevation: number): void
  • Get minimum elevation to be covered by camera frustum.

    remarks
    note

    If you set this parameter to zero you may not see any features rendered if they are just below the sea level more than half of [[nearFarMargin]] assumed. Similarly if set to -100m and rendered features lays exactly in such depression, you may notice that problem. The errors usually come from projection precision loss and depth buffer nature (significant precision loss closer to far plane). Thus is such cases either increase the margin (if you are sure features are just at this elevation, or setup bigger offset for minElevation. Reasonable values are between <-DeadSeaDepression, MtEverestHeight), where the first denotes lowest depression on the Earth defined as EarthConstants.MIN_ELEVATION and the second is the highest point our planet.

    see

    https://developer.nvidia.com/content/depth-precision-visualized

    Returns number

  • Set minimum elevation to be rendered, values beneath the sea level are negative.

    remarks
    note

    If you set this parameter to zero you may not see any features rendered if they are just below the sea level more than half of [[nearFarMargin]] assumed. Similarly if set to -100m and rendered features lays exactly in such depression, you may notice that problem. The errors usually come from projection precision loss and depth buffer nature (significant precision loss closer to far plane). Thus is such cases either increase the margin (if you are sure features are just at this elevation, or setup bigger offset for minElevation. Reasonable values are between <-DeadSeaDepression, MtEverestHeight), where the first denotes lowest depression on the Earth defined as EarthConstants.MIN_ELEVATION and the second is the highest point our planet.

    see

    https://developer.nvidia.com/content/depth-precision-visualized

    Parameters

    • elevation: number

      the minimum elevation (depression) in world units (meters).

    Returns void

Methods

Abstract evaluateClipPlanes

Generated using TypeDoc