Skeleton Tracking Mac

Hi all,

I’m looking around to see what mac users are using for skeleton tracking in OF these days. I have a kinect v1, but openNI doesn’t seem to be supported anymore. I’m running Catalina and OF 11.

Is it worth upgrading to the new azure kinect? Are there other less expensive options that people are happy with?

Hoping to crowd source this issue and see what other people have been doing.

Kinect v2 is also an option. though support is not as much as other kinect v2 add-ons on macOS, but worth checking out.
you can pick them up pretty cheap on eBay. would save having to spend a lot on the azure, though I would like to get my hands on one :wink:

Thanks for responding so quickly Lewis.

I’ve read a bunch about compatibility issues with the v2 and openNI2 on macOS. Has this been solved or do you just use bootcamp?

honestly could not say right now. been meaning to look a bit further at Kinect v2 to do things like skeleton work, but just not gotten round to it yet. no idea when I will either.
shame that platforms can not work on others, makes things like this that little bit annoying. but im sure there could be a way or workaround

fyi I just got skeleton tracking working with Roy Macdonald’s ofxNI2 on OF 0.11.0 with the kinect 1414:

1 Like

that’s great to know. ill give that a check out myself when I can.
thanks for sharing :kissing_heart:

Hi,

I have used skeleton tracking ofxNI2 on the kinect V2 last year - MACOS 10.14.6 -, and it has relatively close to this one - catalina i believe -.

The hard part is to copy the files right in the build phases, as you can see it here, which comes originally from here.

Hope this helps,

Best,

P

1 Like

really cool. though just trying the setup in Mojave Xcode 10.3 - & having troubles knowing where to put the script stuff. don’t have that popup for the ‘add run script build phase’

I know where the build phase is. but now its where in that. ill play around more & hopefully show something

alright well spotted.

I think you need to add it to the second one :

so if you go for the example called example, the script looks originally like this :

mkdir -p "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/"
# Copy default icon file into App/Resources
rsync -aved "$ICON_FILE" "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/"
# Copy libfmod and change install directory for fmod to run
rsync -aved "$OF_PATH/libs/fmodex/lib/osx/libfmodex.dylib" "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/";
install_name_tool -change @executable_path/libfmodex.dylib @executable_path/../Frameworks/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME";

echo "$GCC_PREPROCESSOR_DEFINITIONS";

then it will look something like that :

mkdir -p "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/"
# Copy default icon file into App/Resources
rsync -aved "$ICON_FILE" "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/"
# Copy libfmod and change install directory for fmod to run
rsync -aved "$OF_PATH/libs/fmodex/lib/osx/libfmodex.dylib" "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/";
install_name_tool -change @executable_path/libfmodex.dylib @executable_path/../Frameworks/libfmodex.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME";

echo "$GCC_PREPROCESSOR_DEFINITIONS";

cp -R ../../../addons/ofxNI2/libs/OpenNI2/lib/osx/ "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/"; 

cp -R ../../../addons/ofxNI2/libs/NiTE2/lib/osx/libNiTE2.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/libNiTE2.dylib";

cp -R ../../../addons/ofxNI2/libs/NiTE2/lib/osx/NiTE.ini "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/NiTE.ini";

cp -R ../../../addons/ofxNI2/libs/NITE2-data/NiTE2 "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources/";

install_name_tool -change libOpenNI2.dylib @executable_path/../MacOS/libOpenNI2.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME";


cp ../../../addons/ofxNI2/libs/OpenNI2/lib/osx/OpenNI2/Drivers/* "$TARGET_BUILD_DIR/"; 

cp -R ../../../addons/ofxNI2/libs/NiTE2/lib/osx/libNiTE2.dylib "$TARGET_BUILD_DIR/libNiTE2.dylib";


While running it, it should ask for permissions as it’s asking to copy stuff around.

I don’t have a Kinect V2 to test it with, so let me know how it goes for you…

Best,

P

1 Like

coolio - ill give it a look-see :wink: