WhitestormJS
Original author(s) | Alexander Buzin[1] |
---|---|
Developer(s) | WhitestormJS community |
Stable release | |
Repository | https://github.com/WhitestormJS/whs.js |
Development status | Active |
Written in | JavaScript |
Type | JavaScript library |
License | MIT License[3] |
Website |
whsjs |
Whitestorm.js is a 3D JavaScript library/API based on Three.js that simplify code, adds physics and post-effects. The source code is hosted in a repository on GitHub.
Overview
whs.js is a framework for 3D web apps built with Three.js technology.
It implements a core with component system and plugin support for fast development of 3D scene with physics.
Automizing your web app with whitestorm is fast and comfortable. This engine has physics support implemented by custom Physi.js library, which is much faster than others. Framework provides extended component control and high frame rate, because it uses WebWorkers technology for multithreading.
Basic setup
Download the minified library or link the one from CDN
<script src="js/three.min.js"></script>
<script src="js/whs.min.js"></script>
The code below makes a WHS.App instance which handles all your modules and components for better work with WebGL. This one creates a scene, camera and renderer - we add the following modules to the App.
const app = new WHS.App([
new WHS.ElementModule(), // Apply to DOM.
new WHS.SceneModule(), // Create a new THREE.Scene and set it to app.
new WHS.DefineModule('camera', new WHS.PerspectiveCamera({ // Apply a camera.
position: new Vector3(0, 0, 50)
})),
new WHS.RenderingModule({bgColor: 0x162129}), // Apply THREE.WebGLRenderer
new WHS.ResizeModule() // Make it resizable.
]);
app.start(); // Run app.
NODE
# Install npm version
$ npm install whs
Features
- Simple in usage
- Speeds up 3D scene prototyping
- Component based scene graph
- Simple integration of any high performance physics even with Worker (Multithreading)
- Automatization of rendering
- ES2015+ based
- Extension system (modules)
- Webpack friendly
- Integrated Three.js rendering engine
- Work with whs.js and Three.js at the same time
Whitestorm.js is made available under the MIT license.[3]
References
External links
- WhitestormJS - Three.js Based Game Engine - Interview with Alexander Buzin
- Documentation
- Github repository.
- Github Organization.
- Issues.
- Examples
- Blog
Category:2010 software Category:3D scenegraph APIs Category:Cross-platform software Category:Free 3D graphics software Category:Graphics libraries Category:JavaScript libraries Category:Software using the MIT license Category:WebGL