WorldWindEarth / WorldWindAndroid

The WorldWind Android "Community Edition" SDK (WWA-CE) includes the library, examples and tutorials for building 3D virtual globe applications for phones and tablets.
https://worldwind.earth/WorldWindAndroid/
Other
16 stars 7 forks source link

Fix/elevation processing in rendering #13

Closed ComBatVision closed 5 years ago

ComBatVision commented 5 years ago

Description of the Change

Added globe.getElevationAtLocation() method to determine real (not-tessellated) elevation at specified location. Fixed GL near clip distance calculation and limit Navigator to avoid camera below terrain. Fixed lookAt position calculation for gestures to rotate around point on terrain (not at zero altitude point). Add Elevation value output into exabple application.

Why Should This Be In Core?

There was a terrain visualization implemented, but it did not used in camera clip distance calculation and during gestures processing.

Benefits

Correct behavior of camera respecting terrain elevation.

Potential Drawbacks

None

Applicable Issues

9

10