What’s new in Whitestorm.js V2

The power of modules

In this post, we will look into some new features whs offers along with some practical examples, one to build a simple sphere, then a more advanced one to build a geometry with texture.

What is WhitestormJS

whs is a component based JavaScript framework for building animated 3D graphics with support for physics in the web browser. It uses WebGL and three.js under the hood, and is entirely open source.

Why use whs

Speed up development.

Structure your code with components and modules.

Easily apply physics with collision detection, soft and rigid body dynamics.

Works great for teams, it enforces patterns and structure to large and complex projects. Your code is more readable and maintainable.

The framework also makes it simpler to get started with a project. The boiler plate having to write is kept at minimum, you get to see results in no time.

Here is how to create a scene, a sphere with some material applied to it, some light and even an orbit control to navigate. You can see the source code and result in the codepen below: