Hi there, Not sure if I've done this right, this is intended to be a response to the message "osgDotNet" here : http://groups.google.com/group/osg-users/browse_thread/thread/c8c8422c8f74b865?hl=en
Anyways - assuming it is right ... I am currently writing an application using OpenSceneGraph integrated to C# .NET. Rather than use osgDotNet (which I couldn't get to compile for the latest version 2.8.0) I opted to use C++/CLI - which is Microsoft's second version of managed C++. C++/CLI is amazing, they really got it right. You can compile managed C++ classes with native member variables and functions. You can compile native classes with managed member variables and functions. You can allocate memory on the native or managed heap, you can really do what you like. A simple example of integrating osg to a .NET user control via C++/CLI can be found here: http://www.april1985.com/2008/02/19/osgnetdemo/ Once you've done that you do all your OSG work in a C++ dll with managed extensions enabled and expose the bits you want to C# via your managed C++/CLI classes. We've not opted to wrap openscenegraph, that would be far too much effort. Instead the functionality we required to expose to C# (which is minimal) is wrapped. hope this helps
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

