GithubHelp home page GithubHelp logo

dreamykai / threejs-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyperbeam/threejs-example

0.0 0.0 0.0 535 KB

๐Ÿชฉ Hyperbeam virtual computers in Three.js

Home Page: https://threejs-example.hyperbeam.com/

License: MIT License

JavaScript 69.28% CSS 1.94% HTML 28.79%

threejs-example's Introduction

threejs-example

Hyperbeam virtual computers in Three.js! ๐Ÿคฏ

  • Spatial audio ๐ŸŽต
  • Handles mouse, keyboard and wheel events ๐Ÿ–ฑ๏ธ
  • OrbitControls ๐Ÿš€
  • Oh, and the virtual computer is multiplayer ๐Ÿ˜‰

Try it out here ๐Ÿ‘‰ https://threejs-example.hyperbeam.com

Show me the magic! ๐Ÿช„

Make sure you turn on the audio ๐Ÿ˜Ž

2022-08-18.12-33-29.mp4

Running locally ๐Ÿ’ป

npm install
npm run dev

Setting custom embed URL ๐Ÿค”

  1. You'll need to get a Hyperbeam API key โ€” you can generate a free API key by signing up at https://hyperbeam.com ๐ŸŽ‰
  2. Start a virtual computer session using curl:
curl -X POST -H 'Authorization: Bearer <your-api-key>' https://engine.hyperbeam.com/v0/vm
{
  "session_id": "85a208c0-8fc1-4b27-bcbc-941f6208480b",
  "embed_url": "https://96xljbfypmn3ibra366yqapci.hyperbeam.com/haIIwI_BSye8vJQfYghICw?token=QAWRxLz6exTKbxlFG3MTBxsoPePyDa7_WO3FCxKO73M",
  "admin_token": "OjIulaS-YO4qWHoGap2iK3KqUvAX5qEi9_fDCxESNj0"
}
  1. Copy the value of the "embed_url" key and set the embedURL variable in main.js.

threejs-example's People

Contributors

philipjscott avatar ambyjkl avatar declangoncalves 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.