Code Monkey home page Code Monkey logo

vrintro's Introduction

VRIntro

Leap Motion's intro to VR

Usage

In VR you can do anything. You can fly through space, manipulate the stars and swim through bubbles.

Press 1 for Grid, 2 for Spheres, 3 for Magical Stars and 4 for Aerobatics.

Be sure to select "Allow Images" and "Optimize for top-down tracking" in the Leap Motion Control Panel before launching this example.

  • This demo supports both the Oculus DK1 and DK2.
  • Includes exectuables for both Windows and OSX.
  • Please use the 0.4.4+ runtime and set the Rift Display Mode to "Extend Desktop to the HMD"
  • Designed to be used with Leap Motion VR Developer Mount.
  • Requires Leap SDK Version 2.1.3 or newer
  • Source code available now!
  • Works best with discrete graphics cards (NVIDIA, AMD)
How to build (Win32)
  1. Get CMake 3.1+ and Microsoft Visual Studio 2013 Update 3
  2. Download libraries here https://leapmotion.box.com/s/4ea6vdx2h1hidxz7vmhm
  3. Extract the zip file into a local folder
  4. Obtain Oculus Rift SDK 0.4.4+, and the latest LeapSDK, and copy "OculusSDK" and "LeapSDK" into the folder mentioned in step 3
  5. Run CMake and set the source directory to this repository
  6. Set EXTERNAL_LIBRARY_DIR to the folder mentioned in step 3
  7. Open the generated VRIntro.sln file, and build
  8. Copy any needed DLLs (SDL, SFML) from within the libraries folder to your binary folder. (We are planning to automate this soon!)
How to build (OSX)
  1. Get CMake 3.1+ and Xcode 6.0+
  2. Download libraries here https://leapmotion.box.com/s/ujxqevpwdr06ccybwq2m
  3. Extract the zip file into a local folder
  4. Obtain Oculus Rift SDK 0.4.4+, and the latest LeapSDK, and copy "OculusSDK" and "LeapSDK" into the folder mentioned in step 3
  5. cd into the VRintro repository and run ccmake. Set the source directory to ./VRIntro
  6. Set EXTERNAL_LIBRARY_DIR to the folder mentioned in step 3
  7. Open the generated VRIntro.xcodeproj file, and build

vrintro's People

Contributors

codemercenary avatar jdonald avatar kevinhorowitz avatar rabedik avatar vdods avatar yaskonator avatar yeswalrus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vrintro's Issues

ERROR: No Images Received

Whenever launching this software I just see this error message. I am using the following software versions:

Windows 7
Oculus runtime 0.4.3
Leap Motion SDK 2.1.6+23110

Image passthrough is enabled in the settings and works correctly in other software such as the SDK visualizer and the city example.

Add technical requirements to readme

Thanks for providing this very interesting demo.

It would be helpful if technical setup requirements could be added to the readme.

  • DK2 only?
  • Should DK2 run in direct display or extended mode?
  • Should Rift SDK 0.4.1 runtime be used?

This demo is currently always crashing for me after 1-15s (Win7/64, GTX 780 Ti, 2.1.1+21671 Leap, Firmware: 17). Leap visualizer works fine.

Cheers,
dff180

Unknown CMake command "select_configurations"

detailed info

CMake Error at FindCURL.cmake:35 (include):
  include could not find load file:

    SelectConfigurations
Call Stack (most recent call first):
  CMakeLists.txt:25 (find_package)


CMake Error at FindCURL.cmake:36 (select_configurations):
  Unknown CMake command "select_configurations".
Call Stack (most recent call first):
  CMakeLists.txt:25 (find_package)


-- Configuring incomplete, errors occurred!

I did this

CMakeLists.txt

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR};${CMAKE_MODULE_PATH}")
set(CURL_ROOT_PATH "/usr/local/Cellar/curl/7.61.0")
find_package(CURL REQUIRED)

include_directories(${CURL_INCLUDE_DIR})

I expected the following

find_package(CURL REQUIRED) with no error.

cmake version

kang:build kang$ cmake --version
cmake version 3.12.0

system info

Mac OS X 10.13.5 (17F77)

kang:build kang$ uname -a
Darwin kang 17.6.0 Darwin Kernel Version 17.6.0: Tue May  8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64

std::invalid_argument exception when updating distortion texture

I get a std::invalid_argument exception whenever the VRIntro tries to update the distortion texture here:
m_distortion.UpdateTexture(GLTexture2PixelDataReference(GL_RG, GL_FLOAT, data, m_distortion.Params().Width()_m_distortion.Params().Height()_8));

It's hard to debug without the source code for GLTexture2PixelDataReference being available but the error appears to be thrown in VRIntro.exe!GLTexture2::VerifyPixelDataOrThrow(const GLTexture2PixelData & pixel_data) Line 126 C++

Demo libraries out of date?

I get this error:

C:\dev\VRIntro\source\VRIntroApp.cpp(53): error C2039: 'InitHMD' : is not a member of 'OculusVR'

It seems that the DemoLibraries_Win_x86 linked in the readme is out of date?

Source code

What's the timeline look like for sharing the source code? I'm extremely excited to see how you so successfully linked the Leap Projection to the Oculus. I'd been planning to do the same thing myself and it looks like you already did all the work! :)

Library link is broken

The link to the libraries in the readme is broken, and of course when I compile without them it throws up all kinds of errors

CMake Error at source/CMakeLists.txt:4 (find_package):
  By not providing "FindComponents.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Components", but CMake did not find one.

  Could not find a package configuration file provided by "Components" with
  any of the following names:

    ComponentsConfig.cmake
    components-config.cmake

  Add the installation prefix of "Components" to CMAKE_PREFIX_PATH or set
  "Components_DIR" to a directory containing one of the above files.  If
  "Components" provides a separate development package or SDK, be sure it has
  been installed.

I figure hhe won't actually respond because of how old this is, but just in case I wanted to see if I could get a new link or even just a list of the things I need to find on my own and download.

Crash after approx. 30s when tracking hand

  • Leap 2.1.3 SDK (downloading 2.1.2 not working at the moment)
  • DK2 extended mode with 0.4.2 SDK
  • Latest executable from commit
    d0c15bc

I get video feed and see tracked hand and then after about 30s the app crashes while still on the start screen.
It also crashes when showing app on main display in windowed mode. Crash might be related to hand tracking since it didn't crash so far when it's not seeing the hands.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.