Giter Club home page Giter Club logo

vr-experience's Introduction

Virtual Reality Experience

Installation | What does it do? | How does it work? |

Technologies: C#, Unity

VR-Experience is a C# Project in Unity, which explores the effectiveness of using Virtual Reality (VR) as a tool for education.

Clone the repository (either through command line or with GitHub Desktop https://desktop.github.com/). Open the project in Unity. Install GitHub for Unity if it is not already installed

To view all coding/scripts implemented, please refer to the path: VR-Experience > Assets > Scripts

The aim is to inform of dangers of drug/substance abuse with the use of an immersive environment which simulates the side effects of narcotics.

The project makes use of Unity and modern VR technology to develop and create avirtual environment and incorporates the use of C# to generate the VR Experience.

Various objects were initialised to create this project. Listed below are a few snippets of the core design - including the full project breakdown.

VR Pointer

The project incorporates the use of Unitys VR/AR plugins to create a moveable camera which mimics a 3D Cursor

using UnityEngine.EventSystems;

  public class VRInput : BaseInput
  {
    // Dummy Camera attached to the controller, to mimic a 3D Cursor
    
    public Camera eventCamera = null;

Information Panel

A visual trigger was created, so the user is aware when an object has been clicked on

public void OnPointerEnter(PointerEventData eventData)
  {
    // Changes object colour when pointer hovers over object
    meshRenderer.material.color = enterColor;

    print("Enter");
  }

  public void OnPointerExit(PointerEventData eventData)
  {
      // Changes object colour when pointer stops hovering over object
      // We will set this to 100% Opacity, as we do not want a colour
      meshRenderer.material.color = normalColor;

      print("Exit");
  }

Next developed was an information panel. When the pointer intersected an object; an informative panel would be displayed - detailing the narcotic, its side effects and dangers.

public void OpenPanel()
    {
        // Check if Panel is assigned, null
        if (Panel != null)
        {
            // Toggles the active state
            bool isActive = Panel.activeSelf;

            Panel.SetActive(!true);
        }
    }

Post-Processing Effects: Side Effects

In this case - imitation alcohol, a distortion post process was created to mimic the feeling of dizziness.

public sealed class Drunk_PPP : PostProcessEffectSettings
{
  // Create two new floats to change the screens distortion
  [Range(0f, 1f), Tooltip("Drunk Distortion effect intensity")]
  public FloatParameter amplitude = new FloatParameter { value = 0.5f };

  [Range(0f, 100f), Tooltip("Drunk Distortion effect frequency")]
  public FloatParameter frequency = new FloatParameter { value = 0.5f };
}

Full Project with studies

For the full report and breakdown of this Virtual Reality project, please read the below.

Virtual_Reality___Experience.pdf

vr-experience's People

Contributors

butrinto 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.