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

Applying Placemark.imageRotation to non-squre images stretch them #31

Closed ComBatVision closed 2 years ago

ComBatVision commented 3 years ago

Description

Applying Placemark.imageRotation to non-squre images stretch them. 120925094-df67f380-c6a4-11eb-8a66-fa78e91450ab 120925104-f575b400-c6a4-11eb-92b3-f65c1264f0b0 120925132-2229cb80-c6a5-11eb-984c-83c136ece8e0

Steps to Reproduce

Specify any non-square image as source of Placemark and set any non-zero imageRotation.

Expected behavior: Image should save its proportions

Actual behavior: Image stretch to original width and height

Reproduces how often: always

Additional info

JS code base has the same issue. Java code base use GL2 instead of Matrix for rotation and has no issue. https://github.com/WorldWindEarth/worldwindjs/issues/63