Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Commit

Permalink
Added "V" prefix to OpenNIRecorder.
Browse files Browse the repository at this point in the history
Compilation of samples in xcode4.
  • Loading branch information
pixelnerve committed Jul 30, 2011
1 parent 0499c48 commit a9231e5
Show file tree
Hide file tree
Showing 16 changed files with 390 additions and 88 deletions.
File renamed without changes.
12 changes: 6 additions & 6 deletions samples/BlockOpenNISample/src/BlockOpenNISampleApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,21 @@ void BlockOpenNISampleAppApp::setup()
#if defined(CINDER_MSW) || defined(CINDER_LINUX)
string xmlpath = "resources/configIR.xml";
#elif defined(CINDER_MAC) || defined(CINDER_COCOA) || defined(CINDER_COCOA_TOUCH)
string xmlpath = getAppPath() + "/Contents/Resources/configIR.xml";
string xmlpath = getResourcePath() + "/configIR.xml";
#endif

// console() << "Loading config xml:" << xmlpath << std::endl;
_device0 = _manager->createDevice( xmlpath, true );
_device0 = _manager->createDevice( xmlpath );

//_device0 = _manager->createDevice( V::NODE_TYPE_IMAGE | V::NODE_TYPE_DEPTH ); // Create manually.

if( !_device0 )
{
DEBUG_MESSAGE( "(App) Couldn't init device0\n" );
exit( 0 );
DEBUG_MESSAGE( "(App) Can't find a kinect device\n" );
this->quit();
this->shutdown();
}

//_device0->setPrimaryBuffer( V::NODE_TYPE_DEPTH ); // Broken!! TODO: Will be available with new version. Still a way to do it is as below
//_manager->mPrimaryBuffer = _device0->getDepthGenerator(); // Hack on generator wait update
_device0->setHistogram( true ); // Enable histogram depth map (RGB8bit bitmap)
Expand Down Expand Up @@ -190,13 +192,11 @@ void BlockOpenNISampleAppApp::draw()

void BlockOpenNISampleAppApp::keyDown( KeyEvent event )
{
#ifdef WIN32
if( event.getCode() == KeyEvent::KEY_ESCAPE )
{
this->quit();
this->shutdown();
}
#endif
}

CINDER_APP_BASIC( BlockOpenNISampleAppApp, RendererGl )
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
00B784B60FF439BC000DE1D7 /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00B784B20FF439BC000DE1D7 /* CoreAudio.framework */; };
00BAE65A0E7ED9C10018A608 /* BlockOpenNISampleApp.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 00BAE6590E7ED9C10018A608 /* BlockOpenNISampleApp.cpp */; };
00CCAF15116A9FEE008396D5 /* CinderApp.icns in Resources */ = {isa = PBXBuildFile; fileRef = 00CCAF14116A9FEE008396D5 /* CinderApp.icns */; };
1C9C1A1D13E48EAF00C23E77 /* VOpenNIDevice.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1C9C1A1813E48EAF00C23E77 /* VOpenNIDevice.cpp */; };
1C9C1A1E13E48EAF00C23E77 /* VOpenNIDeviceManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1C9C1A1913E48EAF00C23E77 /* VOpenNIDeviceManager.cpp */; };
1C9C1A1F13E48EAF00C23E77 /* VOpenNINetwork.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1C9C1A1A13E48EAF00C23E77 /* VOpenNINetwork.cpp */; };
1C9C1A2013E48EAF00C23E77 /* VOpenNIUser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1C9C1A1B13E48EAF00C23E77 /* VOpenNIUser.cpp */; };
2042DF4013C764500062DCE9 /* configIR.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2042DF3F13C764500062DCE9 /* configIR.xml */; };
472B10B71349789200637FB8 /* OpenNIRecorder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 472B10B31349789200637FB8 /* OpenNIRecorder.cpp */; };
472B10B81349789200637FB8 /* VOpenNIDevice.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 472B10B41349789200637FB8 /* VOpenNIDevice.cpp */; };
472B10B91349789200637FB8 /* VOpenNIDeviceManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 472B10B51349789200637FB8 /* VOpenNIDeviceManager.cpp */; };
472B10BA1349789200637FB8 /* VOpenNIUser.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 472B10B61349789200637FB8 /* VOpenNIUser.cpp */; };
5323E6B20EAFCA74003A9687 /* CoreVideo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5323E6B10EAFCA74003A9687 /* CoreVideo.framework */; };
5323E6B60EAFCA7E003A9687 /* QTKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5323E6B50EAFCA7E003A9687 /* QTKit.framework */; };
53E3CDFC0E86099300238D2B /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 53E3CDFB0E86099300238D2B /* Carbon.framework */; };
Expand All @@ -37,14 +37,24 @@
00CCAF14116A9FEE008396D5 /* CinderApp.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = CinderApp.icns; sourceTree = SOURCE_ROOT; };
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
13E42FB307B3F0F600E4EEF1 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = "<absolute>"; };
1C9C1A0C13E48EA500C23E77 /* SkeletonPoseDetector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SkeletonPoseDetector.h; sourceTree = "<group>"; };
1C9C1A0D13E48EA500C23E77 /* VOpenNIBone.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VOpenNIBone.h; sourceTree = "<group>"; };
1C9C1A0E13E48EA500C23E77 /* VOpenNICallback.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VOpenNICallback.h; sourceTree = "<group>"; };
1C9C1A0F13E48EA500C23E77 /* VOpenNICommon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VOpenNICommon.h; sourceTree = "<group>"; };
1C9C1A1013E48EA500C23E77 /* VOpenNIDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VOpenNIDevice.h; sourceTree = "<group>"; };
1C9C1A1113E48EA500C23E77 /* VOpenNIDeviceManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VOpenNIDeviceManager.h; sourceTree = "<group>"; };
1C9C1A1213E48EA500C23E77 /* VOpenNIHeaders.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VOpenNIHeaders.h; sourceTree = "<group>"; };
1C9C1A1313E48EA500C23E77 /* VOpenNINetwork.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VOpenNINetwork.h; sourceTree = "<group>"; };
1C9C1A1413E48EA500C23E77 /* VOpenNISurface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VOpenNISurface.h; sourceTree = "<group>"; };
1C9C1A1513E48EA500C23E77 /* VOpenNIUser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VOpenNIUser.h; sourceTree = "<group>"; };
1C9C1A1813E48EAF00C23E77 /* VOpenNIDevice.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = VOpenNIDevice.cpp; sourceTree = "<group>"; };
1C9C1A1913E48EAF00C23E77 /* VOpenNIDeviceManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = VOpenNIDeviceManager.cpp; sourceTree = "<group>"; };
1C9C1A1A13E48EAF00C23E77 /* VOpenNINetwork.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = VOpenNINetwork.cpp; sourceTree = "<group>"; };
1C9C1A1B13E48EAF00C23E77 /* VOpenNIUser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = VOpenNIUser.cpp; sourceTree = "<group>"; };
2042DF3F13C764500062DCE9 /* configIR.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = configIR.xml; path = ../resources/configIR.xml; sourceTree = SOURCE_ROOT; };
29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
32CA4F630368D1EE00C91783 /* BlockOpenNISample_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BlockOpenNISample_Prefix.pch; sourceTree = "<group>"; };
472B10B31349789200637FB8 /* OpenNIRecorder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = OpenNIRecorder.cpp; path = ../../../src/OpenNIRecorder.cpp; sourceTree = "<group>"; };
472B10B41349789200637FB8 /* VOpenNIDevice.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = VOpenNIDevice.cpp; path = ../../../src/VOpenNIDevice.cpp; sourceTree = "<group>"; };
472B10B51349789200637FB8 /* VOpenNIDeviceManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = VOpenNIDeviceManager.cpp; path = ../../../src/VOpenNIDeviceManager.cpp; sourceTree = "<group>"; };
472B10B61349789200637FB8 /* VOpenNIUser.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = VOpenNIUser.cpp; path = ../../../src/VOpenNIUser.cpp; sourceTree = "<group>"; };
5323E6B10EAFCA74003A9687 /* CoreVideo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreVideo.framework; path = /System/Library/Frameworks/CoreVideo.framework; sourceTree = "<absolute>"; };
5323E6B50EAFCA7E003A9687 /* QTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QTKit.framework; path = /System/Library/Frameworks/QTKit.framework; sourceTree = "<absolute>"; };
53E3CDFB0E86099300238D2B /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = "<absolute>"; };
Expand Down Expand Up @@ -76,10 +86,6 @@
080E96DDFE201D6D7F000001 /* Source */ = {
isa = PBXGroup;
children = (
472B10B31349789200637FB8 /* OpenNIRecorder.cpp */,
472B10B41349789200637FB8 /* VOpenNIDevice.cpp */,
472B10B51349789200637FB8 /* VOpenNIDeviceManager.cpp */,
472B10B61349789200637FB8 /* VOpenNIUser.cpp */,
00BAE6590E7ED9C10018A608 /* BlockOpenNISampleApp.cpp */,
);
name = Source;
Expand Down Expand Up @@ -120,9 +126,57 @@
name = Products;
sourceTree = "<group>";
};
1C9C19C113E48E7000C23E77 /* Addons */ = {
isa = PBXGroup;
children = (
1C9C19C313E48E8000C23E77 /* openni */,
);
name = Addons;
sourceTree = "<group>";
};
1C9C19C313E48E8000C23E77 /* openni */ = {
isa = PBXGroup;
children = (
1C9C1A1613E48EAF00C23E77 /* src */,
1C9C19C413E48EA500C23E77 /* include */,
);
name = openni;
sourceTree = "<group>";
};
1C9C19C413E48EA500C23E77 /* include */ = {
isa = PBXGroup;
children = (
1C9C1A0C13E48EA500C23E77 /* SkeletonPoseDetector.h */,
1C9C1A0D13E48EA500C23E77 /* VOpenNIBone.h */,
1C9C1A0E13E48EA500C23E77 /* VOpenNICallback.h */,
1C9C1A0F13E48EA500C23E77 /* VOpenNICommon.h */,
1C9C1A1013E48EA500C23E77 /* VOpenNIDevice.h */,
1C9C1A1113E48EA500C23E77 /* VOpenNIDeviceManager.h */,
1C9C1A1213E48EA500C23E77 /* VOpenNIHeaders.h */,
1C9C1A1313E48EA500C23E77 /* VOpenNINetwork.h */,
1C9C1A1413E48EA500C23E77 /* VOpenNISurface.h */,
1C9C1A1513E48EA500C23E77 /* VOpenNIUser.h */,
);
name = include;
path = ../../../include;
sourceTree = "<group>";
};
1C9C1A1613E48EAF00C23E77 /* src */ = {
isa = PBXGroup;
children = (
1C9C1A1813E48EAF00C23E77 /* VOpenNIDevice.cpp */,
1C9C1A1913E48EAF00C23E77 /* VOpenNIDeviceManager.cpp */,
1C9C1A1A13E48EAF00C23E77 /* VOpenNINetwork.cpp */,
1C9C1A1B13E48EAF00C23E77 /* VOpenNIUser.cpp */,
);
name = src;
path = ../../../src;
sourceTree = "<group>";
};
29B97314FDCFA39411CA2CEA /* BlockOpenNISample */ = {
isa = PBXGroup;
children = (
1C9C19C113E48E7000C23E77 /* Addons */,
29B97315FDCFA39411CA2CEA /* Headers */,
080E96DDFE201D6D7F000001 /* Source */,
29B97317FDCFA39411CA2CEA /* Resources */,
Expand Down Expand Up @@ -219,10 +273,10 @@
buildActionMask = 2147483647;
files = (
00BAE65A0E7ED9C10018A608 /* BlockOpenNISampleApp.cpp in Sources */,
472B10B71349789200637FB8 /* OpenNIRecorder.cpp in Sources */,
472B10B81349789200637FB8 /* VOpenNIDevice.cpp in Sources */,
472B10B91349789200637FB8 /* VOpenNIDeviceManager.cpp in Sources */,
472B10BA1349789200637FB8 /* VOpenNIUser.cpp in Sources */,
1C9C1A1D13E48EAF00C23E77 /* VOpenNIDevice.cpp in Sources */,
1C9C1A1E13E48EAF00C23E77 /* VOpenNIDeviceManager.cpp in Sources */,
1C9C1A1F13E48EAF00C23E77 /* VOpenNINetwork.cpp in Sources */,
1C9C1A2013E48EAF00C23E77 /* VOpenNIUser.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -232,7 +286,7 @@
C01FCF4B08A954540054247B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CINDER_PATH = ../../../../..;
CINDER_PATH = /Volumes/Development/Development/Cinder;
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
Expand All @@ -243,26 +297,28 @@
GCC_PREFIX_HEADER = BlockOpenNISample_Prefix.pch;
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
HEADER_SEARCH_PATHS = (
"\"$(OPENNI_PATH)/Include\"",
"\"$(CINDER_PATH)/boost\"",
"\"$(CINDER_PATH)/blocks/BlockOpenNI/include/OpenNI\"",
"\"$(CINDER_PATH)/include\"",
);
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Applications";
OPENNI_PATH = /Volumes/Development/Development/OpenNI;
OTHER_LDFLAGS = (
"\"$(CINDER_PATH)/lib/libcinder_d.a\"",
"-lcurl",
"\"$(CINDER_PATH)/blocks/BlockOpenNI/lib/macosx/libOpenNI.dylib\"",
"\"$(OPENNI_PATH)/Lib/libOpenNI.dylib\"",
);
PRODUCT_NAME = BlockOpenNISample;
USER_HEADER_SEARCH_PATHS = "\"$(CINDER_PATH)/include\" ../include \"$(CINDER_PATH)/blocks/BlockOpenNI/include\"";
USER_HEADER_SEARCH_PATHS = "\"$(CINDER_PATH)/boost\" \"$(OPENNI_PATH)/Include\"";
WRAPPER_EXTENSION = app;
};
name = Debug;
};
C01FCF4C08A954540054247B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CINDER_PATH = ../../../../..;
CINDER_PATH = /Volumes/Development/Development/Cinder;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_FAST_MATH = YES;
Expand All @@ -274,19 +330,21 @@
GCC_PREFIX_HEADER = BlockOpenNISample_Prefix.pch;
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
HEADER_SEARCH_PATHS = (
"\"$(OPENNI_PATH)/Include\"",
"\"$(CINDER_PATH)/boost\"",
"\"$(CINDER_PATH)/blocks/BlockOpenNI/include/OpenNI\"",
"\"$(CINDER_PATH)/include\"",
);
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Applications";
OPENNI_PATH = /Volumes/Development/Development/OpenNI;
OTHER_LDFLAGS = (
"\"$(CINDER_PATH)/lib/libcinder.a\"",
"-lcurl",
"\"$(CINDER_PATH)/blocks/BlockOpenNI/lib/macosx/libOpenNI.dylib\"",
"\"$(OPENNI_PATH)/Lib/libOpenNI.dylib\"",
);
PRODUCT_NAME = BlockOpenNISample;
STRIP_INSTALLED_PRODUCT = YES;
USER_HEADER_SEARCH_PATHS = "\"$(CINDER_PATH)/include\" ../include \"$(CINDER_PATH)/blocks/BlockOpenNI/include\"";
USER_HEADER_SEARCH_PATHS = "\"$(CINDER_PATH)/boost\" \"$(OPENNI_PATH)/Include\"";
WRAPPER_EXTENSION = app;
};
name = Release;
Expand All @@ -300,7 +358,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = "\"$(CINDER_PATH)/boost\"";
LIBRARY_SEARCH_PATHS = ../../../lib/macos;
LIBRARY_SEARCH_PATHS = "\"$(OPENNI_PATH)/Lib\"";
MACOSX_DEPLOYMENT_TARGET = 10.5;
PREBINDING = NO;
SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.6.sdk";
Expand All @@ -317,7 +375,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = "\"$(CINDER_PATH)/boost\"";
LIBRARY_SEARCH_PATHS = ../../../lib/macos;
LIBRARY_SEARCH_PATHS = "\"$(OPENNI_PATH)/Lib\"";
MACOSX_DEPLOYMENT_TARGET = 10.5;
PREBINDING = NO;
SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.6.sdk";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>11A2061</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>BlockOpenNISample</string>
<key>CFBundleIconFile</key>
<string>CinderApp.icns</string>
<key>CFBundleIdentifier</key>
<string>org.cinder.BlockOpenNISample</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>BlockOpenNISample</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>DTCompiler</key>
<string></string>
<key>DTPlatformBuild</key>
<string>4B110</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>10J567</string>
<key>DTSDKName</key>
<string>macosx10.6</string>
<key>DTXcode</key>
<string>0410</string>
<key>DTXcodeBuild</key>
<string>4B110</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<OpenNI>
<Licenses>
<License vendor="PrimeSense" key="0KOIk2JeIBYClPWVnMoRKn5cdY4="/>
</Licenses>
<Log writeToConsole="true" writeToFile="false">
<!-- 0 - Verbose, 1 - Info, 2 - Warning, 3 - Error (default) -->
<LogLevel value="1"/>
<Masks>
<Mask name="ALL" on="true"/>
</Masks>
<Dumps>
</Dumps>
</Log>
<ProductionNodes>

<!-- HighRes Image -->
<!--
<Node type="IR" name="IR1">
<Configuration>
<MapOutputMode xRes="1280" yRes="1024" FPS="15"/>
<Mirror on="true"/>
</Configuration>
</Node>
-->

<!-- Normal IR -->
<Node type="IR" name="IR1">
<Configuration>
<MapOutputMode xRes="640" yRes="480" FPS="30"/>
<Mirror on="true"/>
</Configuration>
</Node>

<!-- Depth -->
<Node type="Depth" name="Depth1">
<Configuration>
<MapOutputMode xRes="640" yRes="480" FPS="30"/>
<Mirror on="true"/>
</Configuration>
</Node>

<!--
<Node type="Audio" name="Audio1">
</Node>
-->
</ProductionNodes>
</OpenNI>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>WorkspacePath</key>
<string>/Volumes/Development/Work/C++/vitamin/addons/openni/samples/BlockOpenNISample/xcode/BlockOpenNISample.xcodeproj</string>
</dict>
</plist>
4 changes: 0 additions & 4 deletions samples/BlockOpenNISkeleton/data/configIR.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,5 @@

<Node type="User" name="User1"></Node>
<Node type="Scene" name="Scene1"></Node>
<!--
<Node type="Audio" name="Audio1">
</Node>
-->
</ProductionNodes>
</OpenNI>
4 changes: 0 additions & 4 deletions samples/BlockOpenNISkeleton/resources/configIR.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,5 @@

<Node type="User" name="User1"></Node>
<Node type="Scene" name="Scene1"></Node>
<!--
<Node type="Audio" name="Audio1">
</Node>
-->
</ProductionNodes>
</OpenNI>
7 changes: 4 additions & 3 deletions samples/BlockOpenNISkeleton/src/BlockOpenNISkeletonApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,17 @@ void BlockOpenNISampleAppApp::setup()
#if defined(CINDER_MSW) || defined(CINDER_LINUX)
string xmlpath = "resources/configIR.xml";
#elif defined(CINDER_MAC) || defined(CINDER_COCOA) || defined(CINDER_COCOA_TOUCH)
string xmlpath = getAppPath() + "/Contents/Resources/configIR.xml";
string xmlpath = getResourcePath() + "/configIR.xml";
#endif

// console() << "Loading config xml:" << xmlpath << std::endl;
_device0 = _manager->createDevice( xmlpath, true );
//_device0 = _manager->createDevice( V::NODE_TYPE_IMAGE | V::NODE_TYPE_DEPTH | V::NODE_TYPE_USER ); // Create manually.
if( !_device0 )
{
DEBUG_MESSAGE( "(App) Couldn't init device0\n" );
exit( 0 );
DEBUG_MESSAGE( "(App) Can't find a kinect device\n" );
quit();
shutdown();
}
_device0->setHistogram( true ); // Enable histogram depth map (RGB8bit bitmap)
_manager->start();
Expand Down
Loading

0 comments on commit a9231e5

Please sign in to comment.