Re: [osg-users] ANN: osgPython (SWIG) 2.2.0

2008-02-14 Thread Luigi Calori
Thank you very much... it worked!! either %inline %{ osg::Geode *NodeToGeode2(osg::Node *b) { return dynamic_castosg::Geode*(b); } %} or %extend osg::Node { virtual osg::Geode* asGeode() {return dynamic_castosg::Geode*(self);} }; The Cmake projects worked fine (just some mods to

Re: [osg-users] ANN: osgPython (SWIG) 2.2.0

2008-02-13 Thread Luigi Calori
René Molenaar wrote: Swig wrappers for OpenSceneGraph Python and Perl These files are part of: The VRmeer Library - Delft University of Technology The files are based on osgswig (http://code.google.com/p/osgswig/) with some additions and CMake files. Thanks for the post, I' ll try them

Re: [osg-users] ANN: osgPython (SWIG) 2.2.0

2008-02-13 Thread René Molenaar
I read this in the swig manual: If you need to cast a pointer or change its value, consider writing some helper functions instead. see: http://www.swig.org/Doc1.3/Python.html %inline %{ /* C++-style cast */ Foo *BarToFoo(Bar *b) { return dynamic_castFoo*(b); } %} You can also create the

Re: [osg-users] ANN: osgPython (SWIG) 2.2.0

2008-02-12 Thread Hartmut Seichter
Hi René, I added you to the project. Feel free to add the CMake files etc. pp. As somebody down in the thread suggested I might change the layout to the traditional trunk/branches/tags layout Cheers, Hartmut René Molenaar wrote: I just separated an osgswig cmake project from our larger

Re: [osg-users] ANN: osgPython (SWIG) 2.2.0

2008-02-12 Thread René Molenaar
I checked and it worked with the word trunk removed, so try to checkout http://osgswig.googlecode.com/svn/ svn checkout http://osgswig.googlecode.com/svn/ osg-swig-read-only René 2008/2/12, Jeremy Moles [EMAIL PROTECTED]: Just as a head up, it doesn't look like the project was created using

Re: [osg-users] ANN: osgPython (SWIG) 2.2.0

2008-02-12 Thread Jeremy Moles
Just as a head up, it doesn't look like the project was created using the standard trunk/tags/branches layout, so the link that the Google Source tab provides is wrong... On Tue, 2008-02-12 at 19:07 +0100, René Molenaar wrote: Swig wrappers for OpenSceneGraph Python and Perl These files are

Re: [osg-users] ANN: osgPython (SWIG) 2.2.0

2008-02-12 Thread Luigi Calori
I would also be interested in Cmake osgswig building I, as a novice in both python and Lua, would greatly appreciate any script example usage. I' m trying to use the binary version of osgSwig, it seems working well but some further python example would really help Is this the right place to

Re: [osg-users] ANN: osgPython (SWIG) 2.2.0

2008-02-11 Thread René Molenaar
I just separated an osgswig cmake project from our larger Library. Tomorrow I can try to build some of your version of the wrappers in this structure. (our version has changed a version of yours here and there). You can add me to the Project members of the google code page? I saw another member

[osg-users] ANN: osgPython (SWIG) 2.2.0

2008-02-11 Thread Hartmut Seichter
Hi there, I updated the SWIG based python bindings. http://code.google.com/p/osgswig/ Please test and break it. Some, hopefully, clarifying words about licensing: The generating scripts are under the MIT license. The modules directly derived from OpenSceneGraph are following the OSGPL v0.0