One Project Many VPS Locations

Hi

Our Studio is working on a large scale location based AR Tour using VPS. Each VPS location will likely have 10-20MB of assets to load. Does 8thwall have any demo’s or recommendations of architecture for this kind of project? I would love to be able to have one deployed experience, where I control asset loading via query params. It does not look like this is currently possible with Studio.

Say I have 10 locations. Is it easier to create 10 different projects, or is there a way to load assets on the fly with studio? I would love to be able to control what gets loaded and when it gets loaded.

Thanks!

Hi, welcome to the forums!

It’s definitely possible to achieve this in Niantic Studio. Query parameters are universally supported by browsers and can be accessed via JavaScript. You can check out the code portion of this sample project to see how query parameters work: URL Parameters Sample Project.

With this approach, you can dynamically load assets by incorporating the URL into your custom components or leveraging built-in components. For instance, using the GLTFModel component, you can set the src attribute to any URL pointing to a GLB or GLTF file.

Hope this helps with your AR Tour project!

1 Like

This is great. Thank you @GeorgeButler! So by using mesh components with url I can enable and disable scene objects to control loading? Pardon my newbness :slight_smile:

Is there an event for when a mesh is loaded? I don’t see one here: GltfModel | 8th Wall

Thanks again!

The Mesh component allows you to load a mesh from a URL, so it doesn’t need to be part of your project assets. You can also use the GLTF_MODEL_LOADED event to trigger actions once the model is loaded: GLTF_MODEL_LOADED | 8th Wall.

Additionally, if you want to conserve resources when an entity isn’t needed, you can apply the Disabled component to disable it, and remove the component to enable it again.

Awesome thank you @GeorgeButler excited to go deep on this. I really appreciate your quick replies. tyvm!

1 Like

That sounds fantastic! If you need any further assistance, feel free to reach out. And don’t forget to share your project with the community—we’d love to see what you’re creating!

1 Like

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.