-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started adding a Leap Motion + Oculus Rift example.
- Loading branch information
1 parent
a2a3fb3
commit 8c01228
Showing
10 changed files
with
4,360 additions
and
2 deletions.
There are no files selected for viewing
417 changes: 417 additions & 0 deletions
417
examples/OculusRiftLeapMotionTest/OculusRiftLeapMotionTest.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
...les/OculusRiftLeapMotionTest/OculusRiftLeapMotionTest/OculusRiftLeapMotionTest-Info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?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>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleExecutable</key> | ||
<string>${EXECUTABLE_NAME}</string> | ||
<key>CFBundleIconFile</key> | ||
<string></string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.sunsetlakesoftware.${PRODUCT_NAME:rfc1034identifier}</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>${MACOSX_DEPLOYMENT_TARGET}</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>Copyright © 2013 Sunset Lake Software LLC. All rights reserved.</string> | ||
<key>NSMainNibFile</key> | ||
<string>MainMenu</string> | ||
<key>NSPrincipalClass</key> | ||
<string>NSApplication</string> | ||
</dict> | ||
</plist> |
7 changes: 7 additions & 0 deletions
7
...les/OculusRiftLeapMotionTest/OculusRiftLeapMotionTest/OculusRiftLeapMotionTest-Prefix.pch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// | ||
// Prefix header for all source files of the 'OculusRiftLeapMotionTest' target in the 'OculusRiftLeapMotionTest' project | ||
// | ||
|
||
#ifdef __OBJC__ | ||
#import <Cocoa/Cocoa.h> | ||
#endif |
34 changes: 34 additions & 0 deletions
34
examples/OculusRiftLeapMotionTest/OculusRiftLeapMotionTest/SLSAppDelegate.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// SLSAppDelegate.h | ||
// OculusRiftLeapMotionTest | ||
// | ||
// Created by Brad Larson on 8/14/2013. | ||
// Copyright (c) 2013 Sunset Lake Software LLC. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
#import "OculusRiftSceneKitView.h" | ||
#import "LeapObjectiveC.h" | ||
|
||
@interface SLSAppDelegate : NSObject <NSApplicationDelegate, LeapListener> | ||
{ | ||
LeapController *controller; | ||
SCNNode *firstHandNode, *secondHandNode; | ||
NSMutableArray *firstHandFingerNodes, *secondHandFingerNodes; | ||
LeapHand *firstHand, *secondHand; | ||
SCNVector3 leapMotionControllerPosition; | ||
} | ||
|
||
@property (assign) IBOutlet NSWindow *window; | ||
@property(assign) IBOutlet OculusRiftSceneKitView *oculusView; | ||
|
||
- (void)setupSceneRendering; | ||
- (void)setupHandRendering; | ||
- (void)moveFingers:(NSMutableArray *)fingerNodes andHand:(SCNNode *)handNode toMatchLeapHand:(LeapHand *)leapHand; | ||
|
||
- (IBAction)increaseIPD:(id)sender; | ||
- (IBAction)decreaseIPD:(id)sender; | ||
- (IBAction)increaseDistance:(id)sender; | ||
- (IBAction)decreaseDistance:(id)sender; | ||
|
||
@end |
Oops, something went wrong.