GithubHelp home page GithubHelp logo

bdirl / whitestorm.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from whitestormjs/whs.js

0.0 0.0 0.0 172.21 MB

WhitestormJS physics + rendering of 3D

Home Page: http://whitestormjs.xyz/

License: Other

JavaScript 100.00%

whitestorm.js's Introduction

WhitestormJS

Build Status npm bower Gitter

Issues Author Slack Status


#####Code style check: Codacy Badge bitHound Overall Score


WhitestormJS is a 3D Javascript engine based on Three.js. It uses physics and effects libraries to define WhitestormJS API™ that contains useful scripts for terrain generation, skybox, animation, physics simulation and post-effects. WhitestormJS simplifies Three.js object crafting algorithm to javascript methods with parameters.

WhitestormJS is hosted by jsDelivr. You can link to the latest minified version, full version, or download both.

WhitestormJS

Installation

forthebadge

* It is advised to download your own copies of the following libraries, as large changes can break backwards compatibility.

Include Three.js, Wagner, and Physi.js libraries. Include a script tag linking the WhitestormJS library in your head or after your body:

<script src="three.js"></script>
<script src="physi.js"></script>
<script src="wagner.js"></script>
<!-- WhitestormJS library -->
<script src="{path_to_lib}/whitestorm.js"></script>

After adding these libraries, you can configure your game:

var GAME = new WHS.init({
    anaglyph: false, // Anaglyph effect.
    stats: "fps", // fps, ms, mb or false if not need.
    wagner: WAGNER, // wagner library variable

    gravity: { // Physic gravity.
        x: 0,
        y: -100,
        z: 0
    }

    path_worker: 'physijs_worker.js' // Path to Physijs worker here.
    path_ammo: 'ammo.js' // Path to Ammo.js.
});

// Define your scene objects here.

GAME.start(); // Start animations and physics simulation.

Join the chat at https://gitter.im/WhitestormJS/whitestorm.js

Structure

Whitestorm.js structure

Examples:

  • FPS (First person example with Wagner effects and terrain.)
  • Basic (Basic "Hello world!" example.)
  • Material (Basic example with material.)
  • Object/Model (Teapot model with Three.js JSONLoader.)
  • Object/Wall (Stone wall (basic).)
  • Plugin/Color (Basic plugin example.)
  • Skybox (Skybox example)

Author:

@sasha240100 forthebadge

Changelog: Look here

forthebadge

License

Лицензия Creative Commons
Произведение «WhitestormJS 3D-Library» созданное автором по имени Alexander Buzin, публикуется на условиях лицензии Creative Commons «Attribution-NonCommercial-NoDerivatives» («Атрибуция — Некоммерческое использование — Без производных произведений») 4.0 Всемирная.
Основано на произведении с https://github.com/WhitestormJS/whitestorm.js.
Разрешения, выходящие за рамки данной лицензии, могут быть доступны на странице https://github.com/WhitestormJS/whitestorm.js.

whitestorm.js's People

Contributors

sasha240100 avatar jackdalton2 avatar jackdalton avatar noctisdark avatar bdirl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.