Skip to content

Sean-Bradley/Webcam-as-Texture-using-Three.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webcam as Texture using Three.js

To help support this project, please take a moment to look at my official TypeScript courses in

Three.js and TypeScript and

Socket.IO and TypeScript

This html creates a 3d cube in three.js and uses the webcam video as the texture. I only made it work in chrome at the moment, and you need your webcam plugged in so it can connect.

Working demo of this page

https://sean-bradley.github.io/Webcam-as-Texture-using-Three.js/

Video Tutorial on how to use this page with OBS

https://www.youtube.com/watch?v=SdYf4OvnVxY

-- Update --

Added chroma option from the seriously.js library so chroma keying can also be applied at the webcam capture level.

Settings shown work best for my situation. You will need to adjust for your own environment.

With CHROMA on and off

TypeScript Courses

If you got this far, you probably like TypeScript just like I do, I have created two TypeScript courses specializing in the Three.js and Socket.IO libraries that you may find useful.

Threejs and TypeScript Course

TypeScript Threejs Introduction

Socket.io and TypeScript Course

TypeScript SocketIO Introduction

About

Create a box in three.js and use the web cam video as the texture

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published