Select to view content in your preferred language

Map resolution in Unity SDK

174
1
01-13-2025 06:00 AM
MatthewCorbett
New Contributor

I am making an app that places scale-accurate humans on an ArcGIS map. I have all the functionality working without issue, except that I cannot reliably "see" the human objects. I cannot get close enough to them to see them without the basemap becoming black and unusable. I've tried setting altitude for the camera, playing with the extent on the map, etc, but when I get close to the ground and the human objects, the map simply becomes black. Ive also tried different base maps. I included a screenshot of the tabletop map setting below. 

 

MatthewCorbett_0-1736776739286.png

 

1 Reply
AShahbaz
Esri Contributor

Is this specific to the tabletop sample scene?
My guess is that this is a due to the map becoming invisible to the ArcGISCamera. As you zoom in, especially in mountainous areas, the map appear to drift upward, and the ArcGISCamera may end up below the surface. You could try fixing that using either of the below approaches:

  1. Increasing the altitude of the ArcGISCamera (Z of the ArcGISLocation). May want to adjust this dynamically with the level of zoom to avoid a decline in the visual quality of the content being loaded and/or adjust the
  2. Set the surface placement mode of ArcGISCamera to `Relative to Ground` and adjust the Z value if necessary.

If you are still having issues, you could also try turning the ArcGISCamera around when it ends up below the surface (set the pitch of ArcGISLocation of ArcGISCamera to 180).

0 Kudos