Javascript Implementation of OpenSceneGraph
JavaScript GLSL Other
Latest commit 0ea0f4d Feb 25, 2017 @cedricpinson committed on GitHub Merge pull request #736 from jtorresfabra/gltf2
Adds support for glTF2

README.md

Status

Join the chat at https://gitter.im/cedricpinson/osgjs Build Status Coverity Status

OSG.JS WebGL framework

(http://osgjs.org/)

OSGJS is a WebGL framework based on OpenSceneGraph concepts. It allows an individual to use an “OpenSceneGraph-like” toolbox to interact with WebGL via JavaScript, and provides facilities for exporting various assets to the osgjs format. The API is kept as similar to OpenSceneGraph as possible, providing a familiar environment to veterans of the library and introducing newcomers to a popular and heavily-scrutinzed set of interfaces

The mailing list is available here: http://groups.google.com/group/osgjs

If you are interested in contributing, contact us on the osgjs gitter channel ( https://gitter.im/cedricpinson/osgjs ) or on the IRC channel #osgjs on Freenode. Also by e-mail at contact@osgjs.org. Follow @trigrou on twitter to get news and updates.

Examples / Tutorials

How to build your own osgjs

First, clone a copy of the main git repo by running:

git clone git://github.com/cedricpinson/osgjs.git
cd osgjs

Install required node dependencies:

# if you dont have grunt-cli installed, use sudo on linux
# npm install -g grunt-cli
npm install

Compile:

grunt build

Compile whenever watched files change:

webpack -w

The built version of osgjs will be put in the build/ subdirectory.

Running the examples

Simply type in the command-line:

grunt serve

You can now test some real examples http://localhost:9000/examples http://localhost:9000/tutorial

Executing unitary tests

Launch:

grunt test

OpenSceneGraph osgjs plugin

There is a plugin on my openscengraph branch https://github.com/cedricpinson/osg. This plugin will help you to export data from osg to osgjs. More instructions are available on the wiki