Skip to content

Parse mesh url from url-param search query to load https://f3d.app/web?mesh={mesh_url} #1595

@jo-chemla

Description

@jo-chemla

Is your feature request related to a problem? Please describe.
Long-time f3d user, however I just discovered the https://f3d.app/web WASM build which does look great so thanks a lot! It would be great if one could pass to the viewer a url-param which indicates a mesh file to load.

Describe the solution you'd like
f3d could parse mesh url given search query like the following: https://f3d.app/web?mesh={mesh_url}
Regarding at how the webassembly/app.html loads supported meshes on file select, it seem that this could be hacked to initially load a model if the urlparam search query is detected.

Some os urlparams seem to be parsed here, but only to know which os to look for the wasm build.

Describe alternatives you've considered
3dviewer.net does it this way - although a weird hash # replaces the question-mark in the search-query: https://3dviewer.net/#model=${mesh_url}.

Additional context
This would make it easier to inspect mesh files lying accessible on the web via a server endpoint using f3d. My interest is integrating f3d within STAC-browser (Spartio-Temporal Asset Catalogs) which is made to explore and standardize geospatial assets, among which meshes are an important part - see PR here for context

Contribution
Would love to contribute, although I don't know mulch about the f3d codebase. Would need some pointers, the implementation probably has to happen in the app.html file, but building/bundling the wasm seem hard once implementation is finished.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions