Skip to content

Commit

Permalink
Quick Update
Browse files Browse the repository at this point in the history
-fix typo
  • Loading branch information
Aitolda committed Feb 21, 2024
1 parent a6b8d1d commit 0f54d9a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
Binary file not shown.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Unity to Vircadia Pipeline

These packages are designed to allow the export of scenes from Unity to Vircadia.
These packages are designed to allow the export of scenes from Unity to Vircadia, using Blender as an intermediate.

## Usage

Expand All @@ -9,17 +9,17 @@ You'll need:
- Unity 2021.3.4.f1

- gltfast package (by name, `com.unity.cloud.gltfast`)
- Unity2Vircadia package **[(this repo)](https://github.com/vircadia/unity-to-vircadia-pipeline/blob/master/dist/Unity2Vircadia_v1.0.0.unitypackage)**
- Unity2Vircadia package [**(this repo)**](https://github.com/vircadia/unity-to-vircadia-pipeline/blob/master/dist/Unity2Vircadia_v1.0.0.unitypackage)

- Blender 4.0.2 or newer

- UnityToVircadia Blender addon [****(this repo)**](https://github.com/vircadia/unity-to-vircadia-pipeline/blob/master/dist/UnityToVircadia_BlenderAddon_v1.0.0.zip)**
- UnityToVircadia Blender addon [**(this repo)**](https://github.com/vircadia/unity-to-vircadia-pipeline/blob/master/dist/UnityToVircadia_BlenderAddon_v1.0.0.zip)

### Step 1. Unity

1. Open your project in Unity `2021.3.4.f1`
2. Install `gltfast` package by name via the "Package Manager" found under the "Window" menu.
3. Install the `Unity2Vircadia` custom package by select the "Assets" menu and `Import Package/Custom Package`
3. Install the `UnityToVircadia` custom package by select the "Assets" menu and `Import Package/Custom Package`
4. A new "Tools" menu will appear in the menu bar with the submenu "Vircadia"
5. From within the menu run "Get Lightmap Information" and select a folder to save the output to.
6. From within the menu run "Prep Materials for Export to Blender" and select the same output folder.
Expand All @@ -28,11 +28,11 @@ You'll need:
### Step 2. Blender

1. Start a new scene and delete any default content (cube, camera, light, etc.)
2. Install the `UnityToVircadia` Blender plugin by going to "Edit/Preferences," select the "Add-on" tab and press the "Install" button. Select the `Unity2Vircadia.zip` file and Press "Install Add-on". Press the check checkbox to enable the plugin. This will create a `UnityToVircadia` tab on the N panel.
2. Install the `UnityToVircadia` Blender plugin by going to "Edit/Preferences," select the "Add-on" tab and press the "Install" button. Select the `UnityToVircadia.zip` file and Press "Install Add-on". Press the check checkbox to enable the plugin. This will create a `UnityToVircadia` tab on the N panel.
3. Open the `UnityToVircadia` tab on the N Panel
4. Select "Import glTF 2.0" and Import the `.glb` file you exported from Unity
5. Press "Correct Scale" Button"
6. Press "Import Lightmap Info" and a dialog will open. Select the "LightmapInfo.txt" file from the folder we created earlier. This will generate a mesh container for the lightmaps called "vircadia_lightmapData." \* Note: At the moment you will not see these lightmaps until export
6. Press "Import Lightmap Info" and a dialog will open. Select the "LightmapInfo.txt" file from the folder we created earlier. This will generate a mesh container for the lightmaps called "vircadia_lightmapData." \* Note: At the moment you will not see these lightmaps until export. container will be removed automatically in Vircadia-web
7. Press "Adjust Shaders" to correct material properties and repeats.
8. Press the "Export glTF 2.0 button to export your model. Set your format to `glTF Binary (.glb)`. From within the export dialog, open the "include" tab and be sure "Custom Properties" is selected. We recommend setting your Material Image format to `Webp` and checking "Create Webp". Compression can be used as well to lower file size, but minor artifacts may appear. Export `glTF 2.0`.

Expand Down

0 comments on commit 0f54d9a

Please sign in to comment.