WebWorldWind icon indicating copy to clipboard operation
WebWorldWind copied to clipboard

Fix Placemark rotation and tilt

Open ComBatVision opened this issue 2 years ago • 0 comments

Description of the Change

  1. Change order of unitSquareTransform matrix operations to fix image stretching on rotation and apply correct pivot point. Original code stretched texture instead of rotation and made rotation around texture center instead of specified offset point.
  2. Normalize unitSquareTransform matrix Z-range to prevent texture clipping on tilting. Original code had incorrect tilting approach.

Why Should This Be In Core?

Original code had incorrect placemark orientation processing logic and should be fixed.

Benefits

Now Placemarks are correctly rotated and tilted.

Potential Drawbacks

None

Applicable Issues

https://github.com/WorldWindEarth/worldwindjs/issues/63

ComBatVision avatar Mar 27 '22 17:03 ComBatVision