Skip to content

Commit 1b43972

Browse files
authored
Merge pull request #11 from fundale/main
Basis VR on Linux
2 parents 7fde963 + c56f5a9 commit 1b43972

8 files changed

Lines changed: 61 additions & 3 deletions

File tree

docs/avatars.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Avatars
77
## Set up the Unity Editor
88
- As per the [Getting Started](/docs/getting-started#installing-unity) section for installing the latest supported Unity editor version and acquiring the Basis framework.
99
- Open Unity Hub and add an existing project, choose the extracted/cloned Basis project folder
10-
- On the initial project load you will see the following prompt, please hit 'Restart Editor'.
10+
- On the initial project load you will see the following prompt, please hit 'Restart Editor'.<br />
1111
![image](..\static\img\avatars\0.png)
1212
- Once the project has loaded, you can now load in your Avatar files:
1313
- Either,

docs/getting-started.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@ Add the following modules via the "Add modules" screen when installing the Unity
2525
|_ &check; OpenJDK<br />
2626
|_ &check; Android SDK & NDK Tools<br />
2727
&check; Linux Build Support (IL2CPP)<br />
28-
&check; Linux Build Support (Mono)<br />
29-
&check; Windows Build Support (IL2CPP)
28+
&check; Linux Build Support (Mono) \[Windows Only\]<br />
29+
&check; Windows Build Support (IL2CPP) \[Windows Only\]<br />
30+
&check; Windows Build Support (Mono) \[Linux Only\]
3031
:::info
3132
Even if you only are only building user generated content for Avatar and World creation, you will still these additional modules for making this content available on these platforms.
3233
:::
34+
:::tip
35+
If you have the correct Unity version already installed but the "Add Modules" option isn't available it was likely installed externally from Unity Hub, please reinstall the correct Unity version from Unity Hub.
36+
:::
3337

3438
# Acquiring the Basis framework
3539
## Git

docs/linux.mdx

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
id: linux
3+
title: Building from Linux
4+
---
5+
6+
:::warning
7+
Linux support is experimental and may have extra issues.
8+
:::
9+
:::note
10+
It is not recommended to build a Windows or Android build from Linux currently as they will likely be missing features or not function at all.
11+
:::
12+
13+
This page assumes you have gone through [Getting Started](/docs/getting-started) first.
14+
15+
# Linux prerequisites
16+
:::danger
17+
**Do not commit the removal of the Utilites listed on this doc page!**
18+
They are required for building Windows and Android clients!
19+
:::
20+
21+
In order to build anything Basis under Linux you need to remove `com.meta.xr.sdk.core` "Meta XR Core SDK" and `com.unity.xr.openxr` "OpenXR Plugin" via the [Unity Package Manager](https://docs.unity3d.com/6000.0/Documentation/Manual/upm-ui.html),<br />
22+
You may need to install `com.unity.toolchain.linux-x86_64` "Toolchain Linux x64" but Unity should install that for you.
23+
24+
![image](..\static\img\linux\1.png)
25+
![image](..\static\img\linux\2.png)
26+
27+
28+
# Building .BEE files from Linux
29+
For building .bee files for Windows and Android from a Linux Editor you will need to delete the `Assets/Basis/Profiles/HTCViveTrackerProfile.cs` file and set the "Scripting Backend" to `Mono` under `Edit > Project Settings > Player > Configuration > Scripting Backend`.
30+
31+
![image](..\static\img\linux\3.png)
32+
![image](..\static\img\linux\4.png)
33+
34+
# Building a native Linux client from Linux
35+
:::tip
36+
It is recommended to change your "Scripting Backend" to `IL2CPP` for better performance.
37+
![image](..\static\img\linux\3.png)
38+
![image](..\static\img\linux\5.png)
39+
:::
40+
41+
- Make sure you have [removed the unsupported packages](/docs/linux#linux-prerequisites) first.
42+
- Make sure you *do not* have `Use Scene Provided Here` checked from [World Testing](/docs/worlds#test-the-scene).
43+
44+
Then build Basis as you would normally.
45+
46+
# Basis VR on Linux
47+
You may need to launch Basis with the `OXR_PARALLEL_VIEWS=1` environment variable and `--force-OpenVRLoader` flag for it to function properly in VR:<br />
48+
`OXR_PARALLEL_VIEWS=1 ./basis.x86_64 --force-OpenVRLoader`
49+
50+
You do not use these when launching for Desktop.
51+
52+
# Other Info
53+
- Last tested working on branch `#developer` commit `70a695d11082a2806f0933145d448143207c72e4`<br />
54+
https://github.com/BasisVR/Basis/commit/70a695d11082a2806f0933145d448143207c72e4

static/img/linux/1.png

30.1 KB
Loading

static/img/linux/2.png

66.2 KB
Loading

static/img/linux/3.png

51.5 KB
Loading

static/img/linux/4.png

73.3 KB
Loading

static/img/linux/5.png

75.6 KB
Loading

0 commit comments

Comments
 (0)