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.

ScenegraphLayer Conditional Models/Questions

See original GitHub issue

Hi all!

I am looking into using the ScenegraphLayer. After reviewing the documentation I had a few questions that wasn’t completely clear…

  • I see from the deck website example it is providing a static URL to the 3D model.

From the docs it states the scenegraph can be a (URL|Object|Promise).

Would there be a way to display a different model based on a condition of a property/attribute passed as a part of the data object?

  • I see the ScreengraphLayer inherits Base Layer. Safe to assume that I can pass binary attributes similar to PathLayer, TextLayer, etc?

  • I notice the deck website example runs a bit laggy on my machine. Wondering if there are any performance concerns I should be aware of?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
ibgreencommented, Sep 4, 2020

@jfuehner What comes to my mind when I see that code is that you want the layer to keep polling that callback (with some parameter d) and automatically change the model if d.type has changed?

That’s not how deck.gl works. You need to rerender the layer to trigger a change.

0reactions
jfuehnercommented, Sep 4, 2020

@ibgreen Got it, sounds like I will need to group/categorize my data and create multiple ScenegraphLayer’s.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ScenegraphLayer - deck.gl
WebGL-powered visualization framework for large-scale datasets.
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