Got a pet of your own? Take them with you anywhere you go. Here in Webaverse if you have a pet, modeled in .glb format, you can bring it to life and it will follow you wherever you want.
Hosted Webaverse Environments:
To get started with a personalized pet, follow these simple steps.
- Go to the GitHub “fox” example repo: https://github.com/webaverse/fox and fork it to your personal account.
- Add your own .glb model into the repo —- Or just use one of the existing models that’s already there.
- Next, open the .metaversefile and edit it.
- Search the file for “.glb” ***and update the reference from “.glb” to the name of the model you want to use (i.e., **“mymodel.glb” ). ****Then save and commit the changes. For more information about .metaversefile, look here.
- Your model is now ready to be used in any Webaverse scene! There’s just one last step required in order to reference it from a hosted Webaverse installation: enable the GitHub Page on your repo. Head over to the settings for the repo, go to the Pages section, set the branch as master and save it. Finally, make a note of the GitHub page URL for later.
bandicam 2022-02-19 22-29-09-026.mp4
- You can use any of our template scenes or make your own. To add a model in a template scene, go the “app/scenes” folder in your cloned Webaverse app and open any of the .scn files.
- Copy and paste this into the .scn file right before the closing “]” bracket.
,{
"position": [
0,
1,
0
],
"quaternion": [
0,
0,
0,
1
],
"start_url": "<https://webaverse.github.io/fox/>"
}
- Set “start_url” to the url of the GitHub Page for your repository. You can also adjust the starting position and rotation of the model based on where you want it in your scene. Now save the file and you’re good to go.
- Go to https://app.webaverse.com or some other hosted version of the app, drag your .scn file into the browser and experience your model brought to life.
Local Webaverse Environments:
- Go to the GitHub repo: https://github.com/webaverse/fox and download the repo as a zip.
- Extract the zip folder into your already available Webaverse “app” folder.
- Add your own .glb model into the extracted folder —- Or just use one of the existing models that’s already there.