NOTE: Development of the plug-in has been moved to Spout-Unreal for 5.0+.
Modification of original plugin by AleDel with UE versions 4.19+.
This is a Spout Plugin for Unreal Engine. It allows you to send and receive textures using Spout framework.
Sender and Receiver only DirectX 11.
This was tested with:
- 4.19
- 4.20
- 4.21
- 4.22
- 4.23
- 4.24 (use 4.24 branch)
- 4.27 (use 4.27 branch)
-
Open up Epic Games Launcher (make sure it's up to date).
-
Create a new C++ First person Project.
- You should see it Generating code...
- The Unreal project will open in the editor, and a Visual Studio project will also open.
-
Close the Unreal project.
-
In the project directory, create a Plugins folder.
- Download the Spout-UE4 repository (zip file) and put it in the Plugins directory.
- (Optional) Download ExampleSpout.zip (from the project GitHub page). Unzip the contents into the Content folder.
- In the project directory, open the .uproject file. Press Yes when asked if you'd like to rebuild the SpoutPlugin module.
It will start to build.
- Once the project opens, go to Settings > Plugins.
- Make sure the Spout Plugin is enabled. If necessary, restart.
- (Optional) Open the ExampleSpout > Spout project and press Play. Configure the Sender and Receiver names to work with other software.
This is done with the Spout sender node which has can send texture either from the Game viewport or from a Render Targert 2D:
- Game Viewport sends the image of the viewport, but please note that it doesn't work in standalone or packaged game.
- TextureRenderTarget2D in which case you should create a SceneCaptureComponent2D and a Render target 2D which you should reference in the node.
use Close Sender node to close Spouts. The best way is to connect it to Event EndPlay node.
- Create new C++ First Person project
- unzip ExampleSpout.zip in the "Content" folder of your project
- unzip code plugin in folder "Plugins" as mentioned above, if there is no "Plugins" folder, create it
- restart project
- load Spout scene
- if you encounter compile errors you have to delete and re-insert identical nodes
ExampleSpout_4.27.zip (Updated on 2/6/2022)
This image corresponds to the "Spout" scene.
To make this plugin work in a packaged game you have to disable using 'pak' files. You do that by:
- going to File->Package project->Packaging settings
- once there uncheck 'Use Pak File' checkbox
This is only necessary if you are using the Mat pin on the Spout Receiver node.