Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Three.js | 92,423 | 12 hours ago | 504 | mit | JavaScript | |||||
JavaScript 3D Library. | ||||||||||
React Three Fiber | 22,732 | 123 | 2 days ago | 147 | September 23, 2022 | 61 | mit | TypeScript | ||
🇨🇭 A React renderer for Three.js | ||||||||||
Aframe | 15,300 | 860 | 332 | a month ago | 32 | February 04, 2022 | 380 | mit | JavaScript | |
:a: Web framework for building virtual reality experiences. | ||||||||||
Whs.js | 5,979 | 30 | 9 | 2 months ago | 48 | June 02, 2018 | 48 | mit | JavaScript | |
:rocket: 🌪 Super-fast 3D framework for Web Applications 🥇 & Games 🎮. Based on Three.js | ||||||||||
Model Viewer | 5,574 | 5 | 44 | a month ago | 53 | September 21, 2022 | 50 | apache-2.0 | TypeScript | |
Easily display interactive 3D models on the web and in AR! | ||||||||||
Tensorspace | 4,487 | 2 | 1 | 2 years ago | 13 | April 20, 2019 | 23 | apache-2.0 | JavaScript | |
Neural network 3D visualization framework, build interactive and intuitive model in browsers, support pre-trained deep learning models from TensorFlow, Keras, TensorFlow.js | ||||||||||
Vanta | 4,411 | 2 | 2 months ago | 19 | September 16, 2022 | 39 | mit | JavaScript | ||
Animated 3D backgrounds for your website | ||||||||||
3d Force Graph | 3,540 | 31 | 18 | a month ago | 296 | August 23, 2022 | 196 | mit | HTML | |
3D force-directed graph component using ThreeJS/WebGL | ||||||||||
Trois | 3,406 | 2 | 2 months ago | 46 | February 16, 2022 | 70 | mit | TypeScript | ||
✨ ThreeJS + VueJS 3 + ViteJS ⚡ | ||||||||||
Physijs | 2,517 | 58 | a year ago | February 22, 2021 | 150 | mit | JavaScript | |||
Physics plugin for Three.js |
threeify is a Typescript 3D library loosely based on three.js.
Feature overview:
In Development, Not Yet Ready for Use of Any Kind
This library is currently in alpha and in midst of significant development. It may not even compile properly. You have been warned.
Threeify and its modules are published on npm with full typing support. To install, use:
npm install threeify --save
Or
yarn add threeify
This will allow you to import Threeify entirely using:
import * as THREEIFY from "threeify"; // NOT YET SUPPORTED
or individual classes using:
import { RenderContext, Vector3 } from "threeify";
This code creates a scene, a camera, and a geometric cube, and it adds the cube to the scene. It then creates a WebGL
renderer context for the scene and camera, and it adds that viewport to the document.body
element. Finally, it animates the cube within the scene for the camera.
import { box } from "@threeify/geometry/primitives/Box";
import { MaterialOutputs } from "@threeify/materials/MaterialOutputs";
import { PhysicalMaterial } from "@threeify/materials/PhysicalMaterial";
import { PerspectiveCamera } from "@threeify/nodes/cameras/PerspectiveCamera";
import { Mesh } from "@threeify/nodes/Mesh";
import { Node } from "@threeify/nodes/Node";
import { RenderingContext } from "@threeify/renderers/webgl2";
const camera = new PerspectiveCamera(70, 0.01, 10);
camera.position.x = 1;
const geometry = box(0.2, 0.2, 0.2);
const material = new PhysicalMaterial();
material.outputs = MaterialOutputs.Normal;
const mesh = new Mesh(geometry, material);
const scene = new Node();
scene.children.add(mesh);
const context = new RenderingContext();
const canvasFramebuffer = context.canvasFramebuffer;
document.body.appendChild(canvasFramebuffer.canvas);
function animate(): void {
requestAnimationFrame(animate);
mesh.rotation.x += 0.01;
mesh.rotation.y += 0.02;
mesh.dirty();
canvasFramebuffer.render(scene, camera, true);
}
animate();
To run:
yarn
yarn dev
Then open a web server to the address displayed in the console. Usually this will be http://localhost:8000.
If you have docker and docker-compose available do:
docker-compose up -d
threeify supports the theia-ide so you can start coding immediately. theia-ide is available at http://localhost:3000. Perform step 3 and 4 in the theia-ide terminal.
This project exists thanks to all the people who contribute.