Objects that persist for all users?

Hi,
Is there a simple way to ensure that everyone using the WebAR has a common experience - that they see the same objects, and that if one person’s action generates an object in a given area, others can see it and interact with it?

Have you looked into Shared AR?

Note: Shared AR is supported on Plus, Pro, and Enterprise plans. It is not supported for Starter plans.

Demo

Yes, and it seemed like that was something of a walled garden where people could interact with a limited group, rather than with the entire population of users. Am I misperceiving that?

@Pranada @Rickard_Elimaa the Shared AR module is great for synchronizing game state between users within a session, but it currently doesn’t provide persistence. Game state only persists through the duration of a room’s lifecycle.

To achieve what you want, you’ll need some type of persistent data store, such as a database. For example the database could store all of the objects and their positions/rotations/scale so later when a different user comes along, the database is queried and the scene is recreated for them.

Might check out this module created by @Diego_Aguirre!: Firebase Realtime Database Module

3 Likes

Hi! Nice to meet you @Pranada and thanks @TonyT for tagging me out!

Hey Pranada, I suggest you to check this article that contains instructions and code examples that… include Pokémon’s hahaha

This article includes Firebase set-up too :grin:

I hope you find it useful, still if you bump in any difficulty don’t hesitate to reach out!

Hi I have tried to use this module recently but I am unable to authenticate I get an unauthorized code. I also see that firebase has an API per web app, but I was a bit confused from the tutorial if the project api was the app api? I tried entering this data but I did not work for me ): I am using the new editor with a custom component importing the module, could let me know if there is a way to use it like that? thanks!

Hi, welcome to the forum!

The SharedAR module is no longer supported, additionally it’s not intended to work with Studio. We’re looking into building something similar for the future.

Thank you, I was asking about the Firebase Realtime Module, Is there a way to import or install the firebase sdk to run in a module on 8thwall?

At the moment you can’t install npm packages in either Studio, Editor or Modules. Typically to get around this we’ve seen users use CDN packaged versions of libraries however it’s something we’re looking into improving.

Gotcha, thanks. To use CDN packaged versions I would need to use the legacy editor correct?

Since all 8th Wall experiences are at their core Javascript client-side applications you can easily inject it in by using a custom component in Studio.

1 Like