Skip to content

Add support for resolving models from Icosa view page URLs #744

@Exairnous

Description

@Exairnous

Is your feature request related to a problem? Please describe.
Icosa models can be brought into Hubs via the upload option or Ctrl+V pasting if you have the API URL, but this isn't very user friendly or discoverable.

Describe the solution you'd like
Support for resolving Icosa models from their view page URLs should be added, similar to how Sketchfab view pages are handled.
E.g. pasting https://sketchfab.com/3d-models/shiba-faef9fe5ace445e7b2989d1c1ece361c into a Hubs room will load the model rather than previewing the page. Google Poly URLs also used to work this way.

So, for example, https://icosa.gallery/view/eke7qcu_FR2 should automatically resolve to http://api.icosa.gallery/v1/assets/eke7qcu_FR2 and load the model, rather than previewing the page when pasted into a Hubs room.

Describe alternatives you've considered
None.

Additional context
The needed modifications can probably be based off of this code: https://github.com/Hubs-Foundation/reticulum/pull/501/files#diff-466e850938cfeaae016678e1ab2b328f907c2b5c7620a19ded2470dfad504b54L297-L309

API link support was introduced with #743

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions