Threeify

A Typescript 3D library loosely based on three.js
Alternatives To Threeify
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Three.js92,423
12 hours ago504mitJavaScript
JavaScript 3D Library.
React Three Fiber22,7321232 days ago147September 23, 202261mitTypeScript
🇨🇭 A React renderer for Three.js
Aframe15,300860332a month ago32February 04, 2022380mitJavaScript
:a: Web framework for building virtual reality experiences.
Whs.js5,9793092 months ago48June 02, 201848mitJavaScript
:rocket: 🌪 Super-fast 3D framework for Web Applications 🥇 & Games 🎮. Based on Three.js
Model Viewer5,574544a month ago53September 21, 202250apache-2.0TypeScript
Easily display interactive 3D models on the web and in AR!
Tensorspace4,487212 years ago13April 20, 201923apache-2.0JavaScript
Neural network 3D visualization framework, build interactive and intuitive model in browsers, support pre-trained deep learning models from TensorFlow, Keras, TensorFlow.js
Vanta4,41122 months ago19September 16, 202239mitJavaScript
Animated 3D backgrounds for your website
3d Force Graph3,5403118a month ago296August 23, 2022196mitHTML
3D force-directed graph component using ThreeJS/WebGL
Trois3,40622 months ago46February 16, 202270mitTypeScript
✨ ThreeJS + VueJS 3 + ViteJS ⚡
Physijs2,517
58a year agoFebruary 22, 2021150mitJavaScript
Physics plugin for Three.js
Alternatives To Threeify
Select To Compare


Alternative Project Comparisons
Readme

threeify

A Typescript library loosely based on three.js

npm latest version npm next version

threeify is a Typescript 3D library loosely based on three.js.

Feature overview:

  • Modern: Typescript, Tree Shakable, Small Build Files
  • Rendering: WebGL 2 and WebGPU (coming soon)
  • Materials: Physically based materials
  • Post Effects: DOF (coming soon), Motion Blur ((coming soon)), SOA (coming soon), TRAA (coming soon)
  • Animation: Clips (coming soon), Mixer (coming soon)
  • Assets: glTF (coming soon), Draco (coming soon) and Basis (coming soon)
  • XR: Augmented Reality and Virtual Reality via WebXR (coming soon)
  • Documented (TSDocs) and Tested (Jest)

Commitizen friendly

Warning

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.

Install and Import

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";

Usage

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();

Development

Local

To run:

  1. Check out the git repository
  2. Install node.js & npm as appropriate for your platform.
  3. Run npm install to install all the required node modules from package.json
yarn
  1. To run the automatic typescript builder and dev server go:
yarn dev

Then open a web server to the address displayed in the console. Usually this will be http://localhost:8000.

Docker Compose

If you have docker and docker-compose available do:

docker-compose up -d

Theia-IDE

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.

Contributors

This project exists thanks to all the people who contribute.

License

ISC

Popular Threejs Projects
Popular 3d Graphics Projects
Popular Graphics Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Typescript
3d
Camera
Ide
Scene
Webgl
Webgl2
Threejs
Ar
Vr
Webxr