Include the following details (edit as applicable):
- Issue category: Lightship Maps
- Device type & OS version: Android / iOS
- Host machine & OS version: Windows
- Issue Environment : On Device
- Xcode version: Not installed
- ARDK version: Not installed
- Unity version: 2022.3.5f1
- Lightship Maps version: 0.4.0
Presentation:
Hello Lightship Maps developers team and Lightship community!
I am developing a game with AR Foundation on Unity for Android and iOS.
Probably in the future I will migrate to ARDK, at present I want to use Lightship Maps to show the position of the player and other elements.
Description of the issue:
I have placed a minimap in the screen following the instructions:
âA second camera, called âMap Cameraâ, is used to render the map to a render texture which is then displayed to the user on a
RawImage
canvas element.â
As explained in Render-to-Texture Sample
But when I open the scene I have 2 problems: movement and zoom.
Movement problem
When I play the Top-Down Camera Sample I can put my finger over a point on map, represented as a red point on the image, and move it over the screen. And my finger will be always over the same point on the map, as we can see on the image 1 (start) and 2 (finish).
But when I try to do the same over my map, there is a distance between the point in the map and my finger, as we can see on the image 3 (start) and image 4 (finish).
Zoom problem
When zooming in the Top-Down Camera Sample with two fingers, represented as a red point on the image, the zoom will be applied to the center between the two points, as we can see on the image 5 (start) and image 6 (finish).
But when I try to do the same over my map, there is a distance between the point in the map originally aimed and the result, as we can see on the image 7 (start) and image 8 (finish).
Questions
- How can I fix the âMovement problemâ?
- How can I fix the âZoom problemâ?
Thank you for your time.