How to Provide Template Spaces and Allow Users to Decorate Them

BELIVVR
BELIVVR(EN)
Published in
2 min readAug 18, 2024

1. Customizing Spaces by Placing 2D, 3D Multimedia Files, and PDF Files

  • In XRCLOUD (Hubs) Rooms, you can freely place 2D images, videos, PDF documents, and 3D objects (glb, gltf files).
Pinning 3D Objects

2. Host Users Can Permanently Attach Items to a Room Using the ‘Pin’ Feature

  • Multimedia files placed by users in a Room will disappear when all sessions in that Room are closed and a new session starts. However, using the ‘Pin’ feature, you can permanently add these items to the Room.
  • This ‘Pin’ feature is only available when accessing via the Host URL provided by XRCLOUD’s GetRoom API. It cannot be used with the Guest URL. Therefore, only users with Host privileges can customize the space. When developing your platform, you can differentiate permissions to allow MySpace users or platform administrators to customize spaces accordingly.

https://api.xrcloud.app/docs/en/#tag/room/operation/GetRooms

{
"id": "f24ee5ba-8f1f-4f7a-86ed-738f95ea1f8b",
"name": "example room name",
"size": 10,
"tags": [],
"sceneId": "c322b49b-6e12-47d9-b293-b5ab3727459c",
"createdAt": "2023-07-12T09:27:41.600Z",
"updatedAt": "2023-07-12T09:27:41.600Z",
"returnUrl": "<https://www.google.com/>",
"roomUrl": {
"public": {
"host": "<https://room.xrcloud.app:4000/7UizZDL/example-room-name?public=35e75895-9db7-4eee-bae3-87e20ee156dc>",
"guest": "<https://room.xrcloud.app:4000/7UizZDL/example-room-name?public=a0166051-1eee-44bb-922a-c988d517a0e1>"
},
"private": {
"host": "<https://room.xrcloud.app:4000/7UizZDL/example-room-name?private=fdc306b9-5129-4d83-86d5-52836afeee7e>",
"guest": "<https://room.xrcloud.app:4000/7UizZDL/example-room-name?private=72dde871-33d7-4aa3-a8a9-73b8b5f0458d>"
}
},
"thumbnailUrl": "<https://api.xrcloud.app/files/852a6f47-3978-4201-a637-9699d7845266.jpg>"
}

3. Maintain Consistency in Template Spaces Using Media Frames

  • By using a media frame component that allows 2D images, videos, and PDF files to be snapped and fixed in specific locations, you can create a more consistent and structured appearance.
  • This feature is often used in services offering MySpace-like user spaces or event spaces.
Media Frame Component
In CNUMetaversity’s MySpace, all frames were placed using Media Frames.

--

--

BELIVVR
BELIVVR(EN)

A digital romantic creating a new analog era