[osg-users] OpenSceneGraph scripting interface

Robert Osfield robert.osfield at gmail.com
Tue Sep 29 06:06:45 PDT 2015


Hi Sebastian,

In OSG-3.4 there is a new osgDB::ClassInterface that provides a easy easy
to access properties of scene graph classes in a generic way, and a way to
invoke methods.  Another component for scripting support is the new
osg::ScriptEngine, osg::Script and ScriptNodeCallback  classes which
provide a way to handle script callbacks (see include osg/ScriptEngine.)

For an example of use the ClassInterface + ScriptEngine for scripting is
provided by the lua plugin.  This is a full blown scripting implementation
so might be a lot to take in as an "example" but should give you a good
idea of how to integrate various elements.

Robert.

On 29 September 2015 at 13:19, Sebastian Messerschmidt <
sebastian.messerschmidt at gmx.de> wrote:

> Hi folks,
>
> There has been some scripting support/reflection interface in OSG for
> quite a while now. Does anyone have some experiences here?
> I didn't find any specific examples in source, nor some mail on this list
> explaining the interface.
> Can anyone provide a minimal example?
>
> The background of my question is some integration with C# where I want to
> keep the interface as thin as possible. A reply to post  (title was OSG
> and .NET (C#)
> <http://forum.openscenegraph.org/viewtopic.php?t=13840&start=0&postdays=0&postorder=asc&highlight=>
> ) of Robert dating back a year suggested to try this route, so I want to
> give it a try.
> I'm a bit lost where to start however.
> Also has someone some pointers how to manage the integration of OSG into
> some .Net environment?
>
> Cheers
> Sebastian
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150929/3ce628b9/attachment-0003.htm>


More information about the osg-users mailing list