kinectron/Three-Kinectron
kinectron/Three-Kinectron has 35 GitHub stars and 4 forks. Star changes are not measured yet. Last checked 2026-11-09 11:27 UTC. Last push 2025-05-12.
A Three.js plugin for rendering Kinectron feeds
Measured star growth
- in 24h
- Update delayed
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalKinectron for Three.js
NOTE! This repo was created with Version 0, which is now unmaintained. It has not been tested with the current Version 1.0.0
A plugin for working with the Kinectron RGBD stream in Three.js
Usage
You can create geomtery from the Kinect's RGBD feed by simply:
const kinectGeo = THREE.KinectGeometry("mesh");
You can choose the rendering type by changing the first argument to "mesh" / "wire" / "points"
And then simply add it your Three.js scene:
scene.add(kinectGeo);
You would need to also bind the incoming Kinect image to the '''kinectGeo''' instance
function onNewKinectFrame(ktronImg) {
kinectronGeo.kinectron.bind(ktronImg.src);
}
For further reference use the simple example
Class methods:
All class methods are available on the kinectron property of the THREE.KinectGeometry instance
const kinectGeo = THREE.KinectGeometry("mesh");
kinectGeo.kinectron.setDisplacement(30.0);
.setDisplacement(amount)- Increase or decrease the amount of displacement on the Z axis (Default value is 1.0)..setBrightness(amount)- Increase or decrease the brightness of the texture (Default value is 0.0)..setContrast(amount)- Increase or decrease the contrast of the texture (Default value is 1.0)..setOpacity(opacity)- Increase or decrease the opacity of the texture (Default value is 1.0)..setPointSize(opacity)- Increase or decrease the point size (Only when rendering points, "points")..setLineWidth(width)- Increase or decrease the line width (Only when rendering wireframe, "wire")..pause()- Pause the rendering of the Kinectron stream, keeps the last frame..play()- Resume the rendering of the Kinectron stream..bind(imageStream)- Bind a Kinectron image stream to the material, needs to be called everytime a new frame arrives..update()- Calling the update method in the render loop will update the time uniform in the shader.
Contribute
Fork/Clone the repository, make sure to use the --recursive flag when you clone to clone submodules too, and npm install all dependencies
Build system commands:
npm run startuses concurrently to run both an http-server and a watchify build opreation on every save todist/kinectron.three.js.npm run buildbuilds a minified version of the plugin once and saves it todist/kinectron.three.min.js
Written by juniorxsound based on DepthKit.js as a part XStory grant in ITP, NYU
Explore related projects
ytdl-org/youtube-dl
Command-line program to download videos from YouTube.com and other video sites
141,527 starsexcalidraw/excalidraw
Virtual whiteboard for sketching hand-drawn like diagrams
135,396 starsgodotengine/godot
Godot Engine – Multi-platform 2D and 3D game engine
119,942 starsmrdoob/three.js
JavaScript 3D Library.
117,983 stars