osgearth icon indicating copy to clipboard operation
osgearth copied to clipboard

Clamping does not work with rectangles

Open Himbeertoni opened this issue 5 years ago • 0 comments

Hi, if I edit the tests/scene_clamping.earth file to use a rectangle instead of a circle, the rectangle outline does not follow the terrain contour (the circles do): osgearth_clamp To reproduce: start osgEarth viewer: /osgearth_pickd /home/lang/dev/osgearth/tests/scene_clamping.earth

I replaced the circle with a rectangle by using the following code <rectangle name="Circle clamped directly to the ground"> <position lat="22.074" long="-159.606"/> <width value="1.2" units="km"/> <height value="1.2" units="km"/> <style type="text/css"> stroke: #00ff00; stroke-width: 2px; stroke-tessellation-size: 500m; altitude-binding: vertex; altitude-clamping: terrain; altitude-technique: scene; render-depth-offset: true; </style> </rectangle>

Himbeertoni avatar Apr 16 '19 12:04 Himbeertoni