Javascript Implementation of OpenSceneGraph
JavaScript Other
cedricpinson Merge pull request #993 from RavelAdamony/bugfix/reader-gltf
Fixes the missing emissive texture during GLTF file reading.
Latest commit c56ed99 Aug 13, 2018


Join the chat at Build Status Coverity Status OSG.JS WebGL framework


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:

If you are interested in contributing, contact us on the osgjs gitter channel ( ) or on the IRC channel #osgjs on Freenode. Also by e-mail at 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://
cd osgjs

Install required node dependencies:

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


grunt build

Compile whenever watched files change:

grunt watch

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

Running the examples

Download the osgjs-data submodule repository. It will be added to the examples/media folder:

grunt sync

Then 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


grunt test

Convert file to osgjs

You can easily convert 3D file with osgconv tool. To do that you can get the docker image here and use it to convert a 3d file into osgjs file format. There is more infos on wiki