question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose model ready through the Entity API

See original GitHub issue

Users want to know when the model is ready so they can have custom functionality when the model is loading and when the scene is ready

From #3910:

Unfortunately this approach won’t really work well for several reasons. The model can change dynamically with time or programatically, but the ready promise can only resolve a single time. So promises may not be the best context here. Additionally, the ModelGraphics object may actually be associated with several different visualizers, so there may not be a single “model ready” event.

Maybe tie it into the boolean returned from DataSourceDisplay.update? This boolean is supposed to the true when when all data sources are ready to be displayed and false otherwise.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
hpinkoscommented, Feb 15, 2019

I don’t have a good answer for what to do for things like this, other than “don’t use the entity API for models” =/ There’s a reason we didn’t add 3D Tiles to the Entity API. If you want more control, you need to work with the primitives at a lower level. These kind of use-cases are just really not what the Entity API was designed for.

1reaction
OmarShehatacommented, Jan 21, 2019

Here’s a potential use case that can’t be done in the Entity layer that I don’t see addressed here. This forum thread is trying to use viewer.trackedEntity, which will not work immediately if the model isn’t loaded. This delay could be anywhere between a few milliseconds to several seconds. The application developer just needs to know when it’s ready to display some sort of loading message/reaction to the user in the mean time. A entity.model.isLoaded boolean could potentially solve this.

Thoughts?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expose Model through the entity API · Issue #7378 - GitHub
The Entity API is meant to provide a level of abstraction away from the underlying primitives. Depending on whether you're using certain dynamic ......
Read more >
Build and consume data entities - Dynamics 365
This tutorial shows how to build an entity and how to consume some out-of-band (OOB) entities in an integration scenario.
Read more >
How can i get model loading event in cesium viewer
A future version of Cesium should expose Model.ready and Model.readyPromise to Entity API, but currently that's not implemented.
Read more >
Creating a machine learning-powered REST API with Amazon ...
You are now ready to build and train the model in your notebook. This notebook creates two model inference endpoints (one for ratings...
Read more >
Sharing your machine learning models through a common API
DEEPaaS API is a software component developed to expose machine learning models through a REST API. In this article we describe how to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found