Home Artists Posts Import Register

Content

Hello everyone.

In this article, I will show you how to easily send 3D characters and stages from Unity to Shoost using Spout. This is for those who know some Unity operations.

Step 1: Install Spout.

First, to use Spout in Unity, install "KlakSpout" provided by Keijiro God from GitHub. The installation procedure is also described on GitHub.

GitHub→ https://github.com/keijiro/KlakSpout

The location of Scoped Registries can be found in Project Settings > Package Manager > Scoped Registries.

Step 2: Configure Spout in Unity.

Once Spout is installed, create a new game object in Unity and add "Spout Sender" as a component.

Spout Sender offers three capture methods. In this case, "Texture" is selected. If you want to know the difference between the three types, please refer to the explanation on the GitHub page.

Step 3: Set RenderTexture.

Use a "Render Texture" as the Source Texture for the Spout Sender. Since we want to use the character and background as separate images in Shoost, we need to prepare separate Render Textures for the character and background.

A simple way to do this is to prepare two cameras, one for the character and one for the background, and set each to a different Render Texture.

Use Culling Mask to select which objects will be shown by the character and background cameras.

The Target Texture should be the respective RenderTexture.

The resolution of the image sent by Spout will be the resolution set in RenderTexture.

Other cameras, such as characters, that you want to use with transparent backgrounds should have the Clear Flags setting set to Solid Color and the Background Color alpha value set to 0.

Without this setting, the character will not have a transparent background.

Step 4: Set up the Spout Sender in detail.

Since the character and background will be sent separately, two Spout Sender components will be needed, so repeat Step 1 to prepare another Spout Sender.

Once two Spout Sender components are prepared, register a Render Texture to the "Source Texture" of each.

It is important to set the "Spout Name" to different names to avoid confusion on the receiving end. For example, "Character" for the character and "Background" for the background. If you want to use a transparent background, check the Keep Alpha checkbox. In this case, Spout for Character is checked.

After all the settings are completed, the Hierarchy should look like this.

Step 5: Setup in Shoost.

Finally, enable "Spout Capture" in Shoost, and capture the respective screens with the character and background layers, and you're good to go!

These were the steps to easily send 3D characters and backgrounds from Unity to Shoost. It is very convenient, so please give it a try!

Files

Comments

miyu

I don't have unity, I have vroid. How would I do it ?

EDGE83

"Keijiro God from GitHub" God???