Skip to content

Conversation

@GevorgAnt
Copy link

The 3D model intermittently disappears from the map during or after animation. Additionally, after a period of animation, map tiles stop loading—only previously loaded tiles remain visible.

…er some time of animation there is tile loading issue )
Copy link
Contributor

@Sameri11 Sameri11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! I've added a comment describing how to handle mapObjectManager so model won't dissapear from map after a while.
About performance – we have example which is kinda similar to this one, it also handles object's properties (position, angle, etc) with animators, but there're some hacks which adds smoothness to it, such as coroutines, AnimatorSet etc. Can you please check it out? https://github.com/2gis/mobile-sdk-android-demo/blob/master/app/src/main/java/ru/dgis/sdk/demo/SimulateNavigationActivity.kt

), time = Duration.ofMilliseconds(300)
)
//loading 3d model
val mapObjectManager = MapObjectManager(map)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mapObjectManager has to be activity's level variable or field so it won't destroyed by garbage collector after onMapReady finished.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,

Thank you for providing the SimulateNavigationActivity example. I have integrated your MapObjectManager changes and adopted the coroutine-driven AnimatorSet approach. As a result, my 3D model now remains visible on the map indefinitely. However, I am still encountering two issues:

Tile-loading stutters and intermittent re-renders during continuous animation, despite driving position and bearing updates via coroutines and AnimatorSet.

Animation and tile-fetching pause after an extended period—the model’s animation stops and the map ceases to request new tiles, displaying only those that were previously loaded.

photo_2025-07-02_12-11-08

@Sameri11
Copy link
Contributor

Sameri11 commented Jul 2, 2025

I'm glad to hear the changes helped! We will need some additional time to investigate the remaining issues. Thank you for your patience.

@GevorgAnt
Copy link
Author

Hello! I was wondering if there’s been any progress on the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants