text
stringlengths
0
1.11k
"spaces": [
"8e35c573-3f10-4e86-8bdd-69494291b45c",
"cb604449-6eb0-43cb-b3a4-9dfc49a35936",
"cb604449-6eb0-43cb-b3a4-9dfc49a35936",
"01a0341a-4d37-4804-9ace-baa126807f6d",
"4f351907-1acc-46b2-87e8-a7acb346879c",
"69f388a6-3f1b-428e-bc59-6151321efd11",
"ded852e9-f81a-4a6a-a8b6-1e2f3b6929cb",
"2e26c462-f4c8-4cf7-b258-a8ae195f75f3",
"aec8e50d-8f63-4769-9518-683a9435b452",
"6876ec4f-a078-48db-9acc-d6ddeeee9579"
]
}
]
Anchors: list at the top of the file.
"anchors": [
"01a0341a-4d37-4804-9ace-baa126807f6d",
"2e26c462-f4c8-4cf7-b258-a8ae195f75f3",
"4f351907-1acc-46b2-87e8-a7acb346879c",
"69f388a6-3f1b-428e-bc59-6151321efd11",
"8e35c573-3f10-4e86-8bdd-69494291b45c",
"a06dd9cc-b1a1-41be-88b7-d3f6d9060b7b",
"aec8e50d-8f63-4769-9518-683a9435b452",
"cb604449-6eb0-43cb-b3a4-9dfc49a35936",
"ded852e9-f81a-4a6a-a8b6-1e2f3b6929cb",
"6876ec4f-a078-48db-9acc-d6ddeeee9579"
],
When you have completed the above steps, save and run your project with Meta XR Simulator as before. A new table will now be appearing in your scene.
A new table will now be appearing in your scene after saving and re-running your Unity project.
Change layout of walls
To add or edit a new wall, you perform similar actions. Let’s examine an existing wall, and note how we can add/edit a wall to change layout.
To alter a wall, we must first identify the UUID of the wall. This can be done by going to line 266 of RoomLayout. Note the list of walls.
"RoomLayout": [
{
"anchor": "a06dd9cc-b1a1-41be-88b7-d3f6d9060b7b",
"ceiling": "ded852e9-f81a-4a6a-a8b6-1e2f3b6929cb",
"enabled": true,
"floor": "69f388a6-3f1b-428e-bc59-6151321efd11",
"walls": [
"8e35c573-3f10-4e86-8bdd-69494291b45c",
"cb604449-6eb0-43cb-b3a4-9dfc49a35936",
"01a0341a-4d37-4804-9ace-baa126807f6d",
"4f351907-1acc-46b2-87e8-a7acb346879c"
]
}
],
Let’s use the first wall UUID as an example: 8e35c573-3f10-4e86-8bdd-69494291b45c.
Changing the position of the wall
Find this anchor in the Locatable list: line 130.
Increase the pose:position:z by 2.
Old value for z: 2.18451189994812
New value for z: 4.18451189994812
The wall will now appear like this:
Illustrating how the wall's position has changed after increasing pose:position:z.
Changing the height of the wall.
Find this anchor in the Bounded2D list: line 16.
Increase the rect2D:extent:height by 4.
Old value for height: 2.690000057220459
New value for height: 6.690000057220459
Illustrating how the wall's height has changed after increasing rect2D:extent:height.
Note that the height increase results in a wall expansion in both directions. Changing the Y position of the wall would keep in line with the floor. We will see this in the next section.
Set the ceiling height
To raise the ceiling height, we will use the default scene JSON file scene_anchors_empty_room.json as an example. Note the original appearance of this room.
Illustrating the original appearance of the room prior to raising the ceiling height.
Find the ceiling with the anchor UUID.
In the JSON file, go down to RoomLayout (line 266) to find our ceiling UUID: ded852e9-f81a-4a6a-a8b6-1e2f3b6929cb.
Find this anchor under the Locatable component section: line 181.
Increase by the pose:position:y value by 3.
Old value: “y”: 1.5568510293960571
New value: “y”: 4.5568510293960571
Increase height of walls to align with ceiling.
Return to RoomLayout, and note the UUIDs for the four walls.
In each case, we will want to increase its height and its Y position to match the new location of the ceiling.
Get the UUID of the first wall from RoomLayout. The first wall UUID is 8e35c573-3f10-4e86-8bdd-69494291b45c.
This step is only necessary when using Unity.
Find this anchor under the Bounded2D component section, see line 16.
Increase the rect2D:extent:height by 3.
Old value. “height”: 2.690000057220459
New value. “height”: 5.690000057220459
Find this anchor under the Locatable component section: line 130.
Increase the pose:position:y value by 1.5 (half of the height increase).
Old value. “y”: 0.21243900060653687
New value. “y”: 1.71243900060653687
At this stage, your scene should look like this: Illustrating how the scene should appear after completing the steps listed above.
Repeat steps 4-6 for each other wall.
After this is done, the task is complete. Note the new appearance of the scene with a raised ceiling.
At this stage, the ceiling has been raised.