Re: Real time motion capture in Unity3D with OptiTrack
Posted: Thu Nov 18, 2010 5:45 pm
Well, I have a third Unity3D use/question. (note: I am a programming amateur).
I'd like to send each visible blob's size and X,Y coordinates into my Unity3D project (I'm using a single OptiTrack camera for a DIY multitouch table).
As far as I can tell, Unity3D only allows I/O through a dll "plugin" (and only with it's Pro software version). Based off this page in the manual:
http://unity3d.com/support/documentatio ... ugins.html
So, I'll need to use the new OptiTrack Camera SDK to create a DLL with exported functions (in Visual Studio), yeah?
Or would it be easier to just slip in some calls to the old Baseline OptiTrack SDK's cameradll.dll?
Would appreciate any advice from the smart folk. Will post my progress in this thread, if I make any.
p.s. This blog was recommended for it's advice on creating a dll in Visual Studio:
http://geeklit.blogspot.com/2006/08/cal ... rom-c.html
...but I'm really nervous that I'm making this all too complicated. (And, I sure would love to avoid learning how to use VisualStudio. Already pretty busy with tutorials for Maya, MotionBuilder, Unity3D, and OptiTrack Expression.)
I'd like to send each visible blob's size and X,Y coordinates into my Unity3D project (I'm using a single OptiTrack camera for a DIY multitouch table).
As far as I can tell, Unity3D only allows I/O through a dll "plugin" (and only with it's Pro software version). Based off this page in the manual:
http://unity3d.com/support/documentatio ... ugins.html
So, I'll need to use the new OptiTrack Camera SDK to create a DLL with exported functions (in Visual Studio), yeah?
Or would it be easier to just slip in some calls to the old Baseline OptiTrack SDK's cameradll.dll?
Would appreciate any advice from the smart folk. Will post my progress in this thread, if I make any.
p.s. This blog was recommended for it's advice on creating a dll in Visual Studio:
http://geeklit.blogspot.com/2006/08/cal ... rom-c.html
...but I'm really nervous that I'm making this all too complicated. (And, I sure would love to avoid learning how to use VisualStudio. Already pretty busy with tutorials for Maya, MotionBuilder, Unity3D, and OptiTrack Expression.)