OSG.JS

Javascript Implementation of OpenSceneGraph


Project maintained by cedricpinson Hosted on GitHub Pages — Theme by mattgraham

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: http://groups.google.com/group/osgjs

If you are interested in contributing, contact us on the IRC channels #webgl on Freenode, or by e-mail at contact@osgjs.org. Follow @trigrou on twitter to get news and update

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. osgconv

extensions : .osgjs                            OpenSceneGraph Javascript implementation format
options    : disableMergeTriStrip              disable the merge of all tristrip into one
options    : disableTriStrip                   disable generation of tristrip
options    : enableWireframe                   create a wireframe geometry for each triangles geometry
options    : generateTangentSpace              Build tangent space to each geometry
options    : mergeAllBinaryFiles               merge all binary files into one to avoid multi request on a server
options    : tangentSpaceTextureUnit=<unit>    Specify on wich texture unit normal map is
options    : triStripCacheSize=<int>           set the cache size when doing tristrip
options    : useDrawArray                      prefer drawArray instead of drawelement with split of geometry
options    : useExternalBinaryArray            create binary files for vertex arrays

Examples

browse examples to learn more