Giter Site home page Giter Site logo

shenc0411 / vr-flight-simulator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bigballerbrand/vr-flight-simulator

0.0 2.0 0.0 53.19 MB

VR Flight Simulator using Unity and X-Plane 10

Home Page: https://bigballerbrand.github.io/VR-Flight-Simulator/

C# 73.61% ShaderLab 21.70% HLSL 1.45% GLSL 0.44% Smalltalk 0.37% JavaScript 2.43%

vr-flight-simulator's Introduction

VR Flight Simulator

An attempt at creating a virtual reality flight simulator solely using the Oculus Rift Touch controllers (and rudder pedals if available). The aircraft is a Piper PA-28 Archer II (presented as a low poly model in Unity).

alt text

Getting Started

Configuring Unity

  1. Download Unity Project from Project Page
  2. Extract the folder from the .ZIP
  3. Open the folder as a new project in Unity

Configuring X-Plane 10

  1. Configure Graphics Settings

    • Select Settings from the menu bar
    • Select Rendering Options
    • Under the Presets section:
      • select Set to minimum
    • Under the STUFF TO DRAW section:
      • deselect runways follow terrain contours (this is to ensure that the runway terrain mapping matches that of the Unity program) alt text
  2. Configure Data Output Screen

    • Select Settings from the menu bar
    • Select Data Input & Output
    • Under Data Set:
      • Select the leftmost check box (labeled as Internet via UDP) for the following data sets:
      • speeds (#3)
      • pitch, roll, headings (#17)
      • Set the UDP rate to 49.0/sec alt text
  3. Configure Net Connections Screen

    • Select the Data tab
    • Under IP for Data Output:
      • enter the localhost IP (127.0.0.1)
      • enter the port number as 55555
      • select the IP of data receiver for (Data Input & Output screen: Data-Set and Dataref-Out tabs) checkbox
    • Under UDP Ports
      • set the port that we receive on field to 49,000 (which is also the default value)
      • set the port that we send from field to 49,001 (which is also the default value)
      • ensure that the port that we send to iPad from is not either of the values listed above alt text

Deployment

Running X-Plane

  1. Ensure X-Plane is configured properly
  2. Before starting Unity, start X-Plane using the Cessna 172 Aircraft (ideally, you would use a Piper PA-28 II but X-Plane doesn't provide it as a default aircraft so the Cessna 172 has the closest handling specifications)
  3. Press the b key to disengage the brake

Running Unity

  1. Open the flightSimulator project (or whatever name you called the project) in Unity
  2. Once you have configured and started X-Plane, press the Play button

Built With

  • NewtonVR

vr-flight-simulator's People

Contributors

bigballerbrand avatar

Watchers

James Cloos avatar Cong Shen avatar

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.