-
Notifications
You must be signed in to change notification settings - Fork 20
Issue with 3D Model Animation #244
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
base: master
Are you sure you want to change the base?
Conversation
…er some time of animation there is tile loading issue )
Sameri11
left a comment
There was a problem hiding this 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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
I'm glad to hear the changes helped! We will need some additional time to investigate the remaining issues. Thank you for your patience. |
|
Hello! I was wondering if there’s been any progress on the issue? |

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.