keijiro / KlakNDI

NDI® plugin for Unity
https://ndi.video
Other
767 stars 139 forks source link

Unity to Touchdesigner #6

Closed cojobr closed 6 years ago

cojobr commented 6 years ago

Hi,

I'm trying to share Unity output to Touchdesigner but for some reason I can only receive a very low quality image in Touch. Is this something related with the NDI compiled version here and in TD? From Unity to Resolume looks great, also from Resolume to Touchdesigner.

keijiro commented 6 years ago

Thanks for reporting. Could you attach a screenshot that shows how it looks like? It would be helpful if there is a comparison between Unity and NewTek NDI Studio Monitor.

cojobr commented 6 years ago

Hi Keijiro, here's the screenshot. I'm sending 1920x1080 from Unity ndi_issue_screenshot

cojobr commented 6 years ago

Keijiro, I don't know if it helps but using Unity > Spout to NDI > Touchdesigner it works perfect.

keijiro commented 6 years ago

Thanks for the screenshot. By the way, I'm curious about what happens if you use NDI Studio Monitor. I think it's the most "official" implementation of NDI receiver, so it might be useful to determine which side has the problem.

https://www.newtek.com/ndi/tools/

keijiro commented 6 years ago

Just to clarify, what protocol did you use in the "Unity > Resolume > Touchdesigner" case in the screenshot? I assumed that you used NDI (Unity - NDI - Resolume - NDI - Touchdesigner).

cojobr commented 6 years ago

I can send you in a few hours a screenshot using the NDI Studio Monitor. Sorry I missread that on your previous comment.

About that last screenshot you are correct: Unity - NDI - Resolume - NDI - Touchdesigner

cojobr commented 6 years ago

Here's the screenshot. The NDI Studio Monitor receives a 1080i image.

ndi_issue_screenshot02

keijiro commented 6 years ago

Thanks for the screenshot. Okay, it seems that it's easily reproducible with the Studio Monitor.

This is just a wild guess but I think it's caused by wrong interlacing. I disabled the interlacing option and pushed the test build to the test-progressive branch.

https://github.com/keijiro/KlakNDI/tree/test-progressive

You can try this build with just replacing KlakNDI.dll in your project with the following file.

https://github.com/keijiro/KlakNDI/blob/test-progressive/Assets/Klak/NDI/Internal/x64/KlakNDI.dll

This could double the bandwidth usage, but the resolution issue with interlacing will be solved.

cojobr commented 6 years ago

Now it's working perfect! Thanks Keijiro for the awesome work you do! Greetings from Brazil!

keijiro commented 6 years ago

Thanks for verifying. I'll merge the changes to the next release.

keijiro commented 6 years ago

Fixed (v0.0.2)

https://github.com/keijiro/KlakNDI/releases/tag/v0.0.2