CamlOSG

What is it?
CamlOSG is an Objective Caml bindings for OpenSceneGraph (version 2.x) and some its nodekits (namely osgCal). Bindings are not object-oriented, OSG classes are just OCaml modules with functions and abstract data types (and downcast functions when needed).

CamlOSG works under Linux and Windows (using MinGW).

Bindings are done by hand (without using of osgIntrospection) and are fairly incomplete. But it is simple to add the necessary binding. Just look at the sources for example.

What is done?
You may look into autogenerated CamlOSG documentation to see what bindings are ready and to what extent. On CIA.vc you can see the current work.

How to get it?
You can download latest release at sourceforge download area. Or, better, use:
svn co https://camlosg.svn.sourceforge.net/svnroot/camlosg/trunk/camlosg camlosg
to get the latest sources.

Then:

make && sudo make install

After this you get the “camlosg” folder in your OCaml library path plus osg, osgDB, osgGA, osgUtil, osgText, osgCal and osgViewer libraries (.cma & .cmxa).

Use:

ocaml -I +camlosg osg.cma osgDB.cma osgGA.cma osgUtil.cma osgText.cma osgCal.cma osgViewer.cma
to check the bindings.
I have a question.
Just ask it on CamlOSG mailing list.

News archive:
March 20, 2008
CamlOSG 0.0.5 released! Added osgText support, light setup and many useful things from OpenSceneGraph. See the docs to view how much is wrapped currently.
October 16, 2007
One more simple example: camlosgsimplifier.
October 10, 2007
Next simple example: camlosgoccluder.
September 24, 2007
CamlOSG 0.0.3 released! Download it at sourceforge project download area. With this version you can load or create scenes, you have geometry, shaders, textures and most useful state set attributes. You can write applications that react to mouse and keyboard using osgViewer. You have osgCal models. In the next release wait for light setup and osgText support.
August 23, 2007
CamlOSG 0.0.2 available! It now works with latest OpenSceneGraph (2.0).
July 17, 2007
I'm working on the next not so simple examle: camlosgdepthshadow. It's currently very unclean and full of commented out experiments, but it can show you how to work with OSG from OCaml.
June 20, 2007
Added first and simplest example: camlosgviewer.
June 4, 2007
CamlOSG documentation now available online!
June 1, 2007
CamlOSG 0.0.1 available! Currently only very small amount of OSG classes/methods is wrapped.

May 31, 2007
CamlOSG project is registered on sourceforge.