Spout4Unity icon indicating copy to clipboard operation
Spout4Unity copied to clipboard

Installing and using Spout4Unity

Open gRaimbault opened this issue 9 years ago • 3 comments

Hi,

I'm trying to use Spout4Unity with Unity 5.4.0f3. My goal is to send a video stream of the Unity view to another application which will make multiple records at differents times. I can't find any documentation or tutorial on how to use this plugin. How do you install it exactly? I imported files from the example (NativeSpoutPlugin.dll, SpoutRenderTexture.0.renderTexture, Spout.cs, SpoutSender.cs, TextureInfo.cs) to make it "work" in my project (and I put the scripts in the scene the same way the example with the cube is done). Is it the right way to install it?

For the moment, I could send the video stream from Unity to a Spout receiver, but the video is upside down. Besides, I can't find how to make the camera display both the 3D models (characters and decor) and the skybox at the same time. It only displays the skybox when i choose "skybox" in the option "clear flags" of the camera. When i choose "solid color", it only displays the 3D models with a flat background color. Another problem: if I don't choose "deferred" for the "rendering path" of the camera, the 3D models are rendered strangely : some items are behind while they should be in front in the video stream.

Is there a list somewhere of all the plugin's functions and the way they work, or a documentation?

Thank you in advance for your help.

gRaimbault avatar Aug 30 '16 10:08 gRaimbault

Hi, it seems that you should make you more familiar with Unity at all. Most of your question are generel Unity question and don't belong to Spout. Best is to checkout the whole project from Github (https://github.com/sloopidoopi/Spout4Unity/tree/master/UnitySpoutDemo) and open the project with Unity. It's to complicated to start a new project and add the components.

sloopidoopi avatar Aug 30 '16 11:08 sloopidoopi

Thx for this quick answer, I'm still learning Unity. I though you could import this plugin in others projects to use it.

gRaimbault avatar Aug 30 '16 13:08 gRaimbault

I have the same problem with that weird rendering of models, it happens only when script taken from sender demo was added to a camera. Ive inspected the code but couldnt find the culprit. The problem with strange rendering doesnt dissapear when using Your demo project.

TheBricktop avatar Jan 31 '17 22:01 TheBricktop