Skip to content

[Bug] OBJLoader in pydeck with SimpleMeshLayer #9324

@varadinov

Description

@varadinov

Description

I'm trying to use SimpleMeshLayer in pydeck like this:

layer = pdk.Layer(
    "SimpleMeshLayer",
    data=df,
    mesh="https://raw.githubusercontent.com/visgl/deck.gl-data/master/website/humanoid_quad.obj",
    get_position=["lng", "lat"],
    get_color="color",
    pickable=True
)

In the JS documentation the example uses this -> loaders:[OBJLoader]. There is no information how to pass this in pydeck Layer.

I receive this error in the browser:

loading mesh of SimpleMeshLayer({id: 'fb2a7166-b8ca-42fa-bc75-05791a64df50'}): No valid loader found (humanoid_quad.obj, MIME type: "text/plain", first bytes: not available) Error: No valid loader found (humanoid_quad.obj, MIME type: "text/plain", first bytes: not available)

Flavors

  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CartoLayer
  • ArcGIS

Expected Behavior

No response

Steps to Reproduce

Install pydeck.
Use the layer definition from the description.
Review console logs in the browser.

Environment

  • Framework version: pydeck==0.9.1
  • Browser: Chrome Version 131.0.6778.205 (Official Build) (64-bit)
  • OS: Linux / Ubuntu 24.04

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions