Coder Social home page Coder Social logo

webxr-threejs-template's Introduction

WebXR Game Template

This is a Vite-powered Three.js project with WebXR capabilities.

Index

Objective

The objective of this project is to make a WebXR ready Template with Three.js, that is aimed for making VR games.

The idea is to have pre-built tools for making levels, scenes and objects to start fast a VR Game project that runs on the web.

Motivation

Why? Why WebXR? Why not a native engine like Unity, or Unreal?

Because I have an Oculus GO (yes, pretty old) but I can't seem to find a way to make a proper game with the other engines that still support this device.

So my first platform on which I will test this project on, is the Oculus GO.

Instalation

Clone this template and run the command:

npm install

Run the project

Run the next command:

npm run dev -- --host

This command will start a https server that will host the project.

You can launch it from your browser through the localhost url, or from another WebXR capable device's browser that's connected on the same local network.

Note: If you try to connect to the server from another local device, the browser will show a warning about the connection not being safe, and it recommends you to step back. This is fine. In the same page, you can select "Advanced options" and "Enter anyways".

Deploy

To make a production build, you need to run the next command:

npm run build

This will generate a "dist" folder at the root of the project. This is the folder that will need to be uploaded to the production environment.

You can use Github Pages, Itch.io or Netlify to test the deployed project.

Contribution

Any suggestions are welcome.

If you want to suggest a change, you can fork this project, and make a Pull Request.

webxr-threejs-template's People

Contributors

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