err5 / ndi-camera-control

NDI-PTZ Camera controller CHOP for TouchDesigner
GNU General Public License v3.0
5 stars 0 forks source link

Plugin does not load in Touchdesigner #1

Open yastefan opened 1 year ago

yastefan commented 1 year ago

Hey err5,

Thank you for sharing your plugin. For a current project I want to control the zoom of two cameras and your plugin seems to be just the right thing for it. Unfortunately the plugin does not load on my Windows machine. I put your compiled .dll into the plugin folder of Touchdesigner and Touch gives me an error. Do I still have to copy .dlls from the NDI SDK into the plugin folder and if so in which structure?

Best regards Stefan

err5 commented 1 year ago

Hi, yastefan

Sorry for rather late response. From my knowledge (pretty limited, as it is my first expirience with TD and NDI SDK) Windows version uses NDI Redistributables which can be downloaded with NDI Tools. Could you please provide me version of TD you are using and error you are recieving? I am not able to reproduce this issue on freshly installed 2022.33600 with the latest version of NDI Tools.

You can try clearing up your plugins folder and use CPlusPlus CHOP and point it to DLL file directly. Also it could be result of corrupted NDI Redistributables installation, you could try reinstalling it. And as a last resort try installing NDI SDK from here https://ndi.video/sdk/ Since plugin could use some redistributables from it instead of NDI Tools (my knowledge is really quite limited on how plugin actually works, I prefer to think it is magic) image image

Would be great to know it is being put to use :)

yastefan commented 1 year ago

Thank you for your answer and sorry for my late reply. I was in the tunnel for an installation the last few days :). My computer is also in this installtion right now, so unfortunately I can't tell you the specific TD version. According to my licence it is about 5 months behind the current version. The NDI SDK and the NDI tools are installed in the current version on a Windows 10 computer. In the TD plug-in folder there is only your "NDI_CameraControl_CHOP.dll" and the autogenerated file from TD. Touchdesigner gives the rather generic message at startup that the plugin could not be loaded and possibly other .dlls are missing, which should normally also be in the plugin folder. I then tried to copy the NDI dlls you use into the plugin folder in various file hierarchies. Unfortunately without success. I also had no success with the CPlusPlus CHOP and got a generic error message.

I will only be able to give a detailed description and make further attempts in approx. 3 weeks when the installation is dismantled.

But thanks for your effort :)

err5 commented 1 year ago

Hi, You are welcome

It's quite puzzling. I'll keep trying to reproduce the issue when ideas come to mind. Hopefully it's possible to solve the issue. By the way, what is CPU and GPU in the computer? I've tested only on Ryzen+RTX laptop, maybe some compilation flag screws with plugin.

Hope the installation is going great)

yastefan commented 1 year ago

Thank you! It was a really long few days, but in the end the installation is stable and the feedback from the first visitors was very positive. The installation consists of 10 monitors, 32 switches that change the interactive content, structure-borne sound transducers that vibrate the whole installation with 10 Hz - 100 Hz and two NDI cameras. My system also has a Ryzen CPU and an RTX3060. However, it is desktop hardware. When I have a Windows system available again, I'll take another look at it :)

err5 commented 1 year ago

Wow, makes me a bit jealous. The only work I've got at the moment are conferences/streams and some "raves" that end at 10pm because of the curfew (I live in Ukraine, and the event industry isn't doing too well at the moment. Can't put my finger on why that is).

I've been able to reproduce the problem on few machines and it's apparently NDI dependencies problem or something resulting in this behaviour, hopefully it's an easy fix.

Thanks for pointing the problem out!

benycity commented 5 months ago

Hello, I've try to implement your dll to control canon ptz camera on touchdesigner but even if i install ndi 5 SDK and ndi 5 tool, TD still gets me the "fail to load". Have you find the issue ? My project is to have a TD prototype for tracking player with ptz camera (canon). Thanks

signalconductor commented 5 months ago

I'm running into this same issue - running TD on Windows 11, intel i7, RTX3050 mobile. If I try to load the CHOP manually, nothing populates:

image

UPDATE: I was able to resolve this by copying the contents of the NDI5 SDK Folder to /Documents/Derivative. It looks like you might be referencing a relative file path in https://github.com/err5/ndi-camera-control/blob/master/windows/NDI_CameraControl_CHOP.h.