Giter Site home page Giter Site logo

ih / vr-foundry-pun Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ringokam/vr-foundry-pun-rh

0.0 1.0 0.0 857.41 MB

Multiplayer Photon PUN VR Unity Template that is completely free and open source.

JavaScript 0.12% C 0.02% Objective-C 0.04% C# 95.56% Objective-C++ 0.87% HLSL 0.50% ShaderLab 2.89%

vr-foundry-pun's Introduction

Foundry Open Photon PUN example

MIT Reality Hack

If you're at the MIT Reality Hack, we're here to help mentor and guide you with your project. Find us in person, on Discord - channel is #Foundry.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. Then you can run the actual app by deploying to an APK for Oculus or an exe for Windows PCVR.

Prerequisites

What things you need to install, the software, and how to install them.

You will want to fork this Github repo so that any future updates to the SDK, we can push to your project through this repo. More info on forking: https://docs.github.com/en/get-started/quickstart/fork-a-repo

Unity Version 2021.3.11f1
OpenXR
XR Interaction Toolkit (preferably 2.3)
Input system

Photon API keys for Photon PUN and Photon Voice (both FREE)
YOU MUST GO to the following links to generate your own API Keys and use them to build your own networked app (so as not to conflict with other apps):
https://www.photonengine.com/en/PUN#
https://www.photonengine.com/en-us/Voice

Add your keys to /Assets/Photon/PhotonUnityNetworking/Resources/PhotonServerSettings.asset

Basic Controls

  1. Once you have PUN setup, you can connect a VR headset to the PC and hit play in Editor.
  2. Click Connect button in VR, you will connect to the Online scene.
  3. Once in the scene, you can connect with other players if they are in the same PUN server.
  4. You can walk around with left joystick, rotate with right joystick.
  5. You can grab, grabbable objects (weapons) in the scene using the Grab button in VR.
  6. Press trigger to shoot.
  7. Select Menu items on the left wrist with the right controller and pointing at it and pressing trigger to select.

Deployment

If your headset is connected, you can test in the Unity editor and it should work, even networked. Two people testing on two computers should be able to connect. You can build to an exe for Windows/SteamVR or you can push to an Oculus APK.

Photon PUN Scene Management

You need to have the scenes you want added in the build settings Photon works by going from an Offline lobby to an Online scene. By default we have scenes named: Offline and Online. In the Network Manager Script - NM - you control the offline and online scene by setting the scene index.

Ready Player Me

By default you have a Ready Player Me default avatar rigged correctly. You can swap in your own Ready Player Me avatars by downloading and adding, or while running in PCVR you can even copy paste the URL of your Ready Player Me avatar. You can paste the RPM avatar URL on the PC monitor screen if connected through PC. Please make a RPM avatar at this link: https://vr.readyplayer.me/avatar

vr-foundry-pun's People

Contributors

joewooddev1 avatar sissond avatar crowdsourcingkc avatar innerbushido avatar

Watchers

 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.