Skip to content

Commit

Permalink
Started adding a Leap Motion + Oculus Rift example.
Browse files Browse the repository at this point in the history
  • Loading branch information
BradLarson committed Aug 18, 2013
1 parent a2a3fb3 commit 8c01228
Show file tree
Hide file tree
Showing 10 changed files with 4,360 additions and 2 deletions.

Large diffs are not rendered by default.

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>
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
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
Loading

0 comments on commit 8c01228

Please sign in to comment.