Unity 6, Universal Render Pipeline
- Sending texture from TouchDesigner via Syphon Spout Out TOP (SpoutSender.toe)
- Receiving texture as RenderTexture in Unity via KlakSpout -> SpoutReceiver.cs
- Targeting Spout Receiver on VFX Graph with particles that are spawned with corresponding positions and colors.
This is the simplest implementation that can be extended in a lot of ways on both sides in Touchdesigner as a source and Unity's VFX Graph as a final rendering.
You can add more spout senders in TD and spout receivers in Unity.
You can send the result back from Unity to Touchdesigner via Spout.
Known Issue:
failed to create 2D texture shader resource view - in Klak Spout
Solution:
You can fix (not sure if correct fix) by changing Packages\KlakSpout\Runtime\Internal\Receiver.cs line 88/89 keijiro/KlakSpout#81 (comment)
TextureFormat.RGBA32, false, false
to
TextureFormat.BGRA32, false, true