Spout Unreal Engine 4.25 Crash with Ray Tracing enabled

Hello everyone,
first of all thank you very much for developing this amazing tool, I think it’s amazing!
I would like to use it in my Virtual Production workflow, we are rendering our scenes using Ray Tracing and Dx12 and I noticed that If I start the project the editor It’s crashing…
On github page it’s saying that it works only with Dx11, is there a way to use it with Dx12?

Hi Christian,

because Spout is built around sharing OpenGL textures using the NVIDIA WGL_NV_DX_interop and WGL_NV_DX_interop2 extensions, it is limited to textures created with Direct3D9ex and Direct3D11 devices.

I quickly found a forum post which explains that it is possible to share between DX11 and DX12 textures but it requires use of an “NT handle” for the shared texture.

Unfortunately this requires feature level 11.1 which is hardware dependent and so the Spout code falls back to Feature level 11.0. As a result, no applications will have textures with the required NT handle.

I assume you are using the plugin by AleDel, so it might not be straightforward. But the only way I can think at the moment without studying further is to create a separate DirecxtX 11.0 device and shared texture from which you create the sender, and copy to the DX11 shared texture from the DX12 texture.

I don’t know whether that is possible with your environment or even at all, but there is a recent DirectX section in the beta branch where you might get some ideas. Have a look at the “Basic” examples.

yeah got the same issue. Any chance to get a fix in a new version?

Thanks and awesome tool!

Hi Phillip,

I had a look through the plugin by AleDel and it is definitely using only DirectX 11 textures. The plugin would have to be modified to use DirectX 12. There might be a way and you should contact the developer to see whether it’s possible.

I looked into supporting DirectX 12 textures in Spout but it’s not simple and I can’t make any forecast at this stage.

Thanks for the update with tools

hey @christianstamati @Filib91 we have developed a camera for Unreal which uses SPOUT and is DX12 compatible. Took a while because DX11-12 is pretty complex…

Drop us a line if you want to access it.

We developed the Spout to OBS plugin as well :slight_smile:

We love SPOUT!

1 Like

Hi @richardy - that’s good to know.

off course, it would be amazing! You can contact me via email: christian.stamati@gmail.com I’m really interested in trying it :wink:

have emailed you a link…

we also have a 360 output which I’ve given you access to as well if of interest.

Let us know how you get on with it…

Hi, I’m interested in your work can it receive dx12 input to unreal, or can only send out from unreal camera? I would like to know
If you can, please contact me via email: maivietnam2k@gmail.com
Thanks :smile:

hey - are you all set up with this now? all good?