Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/placemark rotation and tilt #251

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

ComBatVision
Copy link

@ComBatVision ComBatVision commented Mar 27, 2022

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.
  3. Change Placemark default depth offset from -0.1 to -0.015 to prevent texture from protruding through the terrain.
  4. Fix placemarks altitude mode in PlacemarksMilStd2525Activity to be correctly rendered on the top of the surface. Original code had absolute 0 altitude which was under the surface.
  5. Use billboarding approach of MilStd2525 placemarks rendering to prevent clipping them by terrain (as described in MIL-STD-2525C APPENDIX F.5.1.1.2).
  6. Add missed Placemark label functionality the same way as in JS codebase.

Why Should This Be In Core?

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

Benefits

Now Placemarks are correctly rotated, tilted and located related to the terrain.
Partially implemented Placemark label code is now complete and can be used.

Potential Drawbacks

None

Applicable Issues

WorldWindEarth#31

1) Change order of unitSquareTransform matrix operations to fix image stretching on rotation and apply correct pivot point.
2) Normalize unitSquareTransform matrix Z-range to prevent texture clipping on tilting.
PJHogan
PJHogan previously approved these changes Mar 27, 2022
…texture from protruding through the terrain.

Fix placemarks altitude mode in PlacemarksMilStd2525Activity to be correctly rendered on the top of the surface.
Use billboarding approach of placemarks rendering to prevent clipping by terrain as described in MIL-STD-2525C APPENDIX F.5.1.1.2.
PJHogan
PJHogan previously approved these changes Mar 27, 2022
PJHogan
PJHogan previously approved these changes Mar 29, 2022
PJHogan
PJHogan previously approved these changes Mar 29, 2022
@ComBatVision ComBatVision force-pushed the fix/placemark-rotation-and-tilt branch from a9947ee to 9377485 Compare March 30, 2022 06:08
PJHogan
PJHogan previously approved these changes Apr 23, 2022
PJHogan
PJHogan previously approved these changes Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants