pydeck: Loading a local .glb file in ScenegraphLayer
Open
Nobody has claimed this yet.
feature
pydeck
- Dominant language
- TypeScript
- Stars
- 14.6k
- Forks
- 2.3k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 42
Description
Discussed in https://github.com/visgl/deck.gl/discussions/6323
Originally posted by harisbal October 25, 2021
At the moment pydeck cannot load a local .glb file to use in the ScenegraphLayer
Assuming that a BoxAnimated.glb file exists in the folder, the following does not work:
import pydeck as pdk
layer = pdk.Layer(
"ScenegraphLayer",
data=[{'coordinates': [-122.466233, 37.684638]}],
scenegraph=r'./BoxAnimated.glb',
get_position="coordinates",
)
view_state = pdk.ViewState(latitude=37.684638, longitude=-122.466233, zoom=18, bearing=0, pitch=0)
r = pdk.Deck(layer, initial_view_state=view_state, map_style="light")
r.show()
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the pydeck example in this issue and the ScenegraphLayer entry point, then review discussion 6323 for the expected handling of local assets. Confirm the behavior with a local BoxAnimated.glb file and ensure the example loads it successfully through pydeck.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100