Skip to content

Parse mesh url to load in threejs editor via search query/urlparam #29246

@jo-chemla

Description

@jo-chemla

Description

It would be useful for the threejs editor to support importing mesh files on load, by parsing a search-query or urlparam. The simplest solution would simply to load a single mesh file, but this could be extended to loading an arbitrary threejs project, or collection of meshes files via their urls.

Solution

The mesh urls could be parsed via a meshes array search query like https://threejs.org/editor?meshes=[{mesh_url}]. The threejs project could be parsed via a threejs_project urlparam. This would probably happen inside the dev/editor/index.html

Alternatives

Equivalent feature requested on f3d web viewer.
3dviewer.net does it this way https://3dviewer.net/#model=${mesh_url}, but this does not work with every mesh url.

Additional context

This would make it easier to inspect mesh files lying accessible on the web via a server endpoint using the threejs editor. My interest is integrating a mesh viewer 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 radiantearth/stac-browser#465 for context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions