Giter VIP home page Giter VIP logo

confetti-with-threejs's Introduction

Confetti: With Pose Estimation and Three.js

Confetti

Setup

Download Node.js. Run this followed commands:

# Install dependencies (only the first time). No need to run `npm audit fix`
# if you are instructed to do so.
npm install

# Run the local server at localhost:8080. You will likely see a message "Your
# connection is not private" (if you are on Chrome, or related message for other
# browsers). This is because we need to use HTTPS to access the webcam in the
# browser, but no certificate has been set up for localhost. You can either
# click "Advanced" -> "Proceed to localhost" (which I did for nearly all of my
# development), or you can follow the instructions below to install a
# certificate.
# Also, make sure to grant access to your camera when/if a prompt appears.
npm run dev

[Optional] Create ssl certificate

To access the webcam, the site must use HTTPS. However, without a certificate for localhost, your browser will likely complain with the mesage "Your connection is not private".

If you would rather not see this message, you need to generate a SSL Certificate for the webpack dev server.

To do this on Mac (based on the instructions here), perform the following:

  • Kill the webpack dev server on the terminal if it is currently running.
  • Run bash ssl_cert_gen.sh.
  • You will be prompted with information to populate the certificate. Defaults are already supplied so you can keep pressing return.
  • You will need to supply your password once or twice to add the certificate to your keychain.
  • Once this is complete, open webpack.dev.js, and comment out the line https: true, and uncomment the https object underneath.
  • Re-run npm run dev and now you should no longer see a warning from your browser.

If you are on another platform (Linux / Windows), find an equivalent method to generate a certificate.

confetti-with-threejs's People

Contributors

ronnyvotel avatar

Stargazers

 avatar

Watchers

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