[osg-users] Python users

2009-12-13 Thread Rizzen
Hi,

What is the best OSG python library/wrapper to use? I see there are
various versions: pyOSG, PyOSG and osgPython. Some project showed no
activity since 2003. Some projects showed activity in the news yet files
are a lot older. PyOSG does not seem to have a SVN on SourceForge, just
old tarballs.

I am planning to use Boost:python in my project too.

Thanx,
Rizzen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Python users

2009-12-14 Thread Luigi Calori
I have used swig generated Python bindings from osgSwig 
http://code.google.com/p/osgswig/


I have used it with 2.9.5, not knowing weather recent SVN big changes 
have broken the build


Rizzen wrote:

Hi,

What is the best OSG python library/wrapper to use? I see there are
various versions: pyOSG, PyOSG and osgPython. Some project showed no
activity since 2003. Some projects showed activity in the news yet files
are a lot older. PyOSG does not seem to have a SVN on SourceForge, just
old tarballs.

I am planning to use Boost:python in my project too.

Thanx,
Rizzen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


  


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Python users

2009-12-14 Thread Jean-Sébastien Guay

Hi Rizzen,


What is the best OSG python library/wrapper to use? I see there are
various versions: pyOSG, PyOSG and osgPython. Some project showed no
activity since 2003. Some projects showed activity in the news yet files
are a lot older. PyOSG does not seem to have a SVN on SourceForge, just
old tarballs.

I am planning to use Boost:python in my project too.


If you're planning on using boost.python you might be interested in 
trying the wrapper project I've started, which wraps some of OSG but not 
all using boost.python. It's located here:


http://code.google.com/p/osgboostpython/

I started it just for fun, and wrapped most of the basics to make a 
working OSG application (matrices, vectors, geometry, textures, some 
event handlers and callbacks, viewer, etc.). Martin Mueller also 
contributed some wrappers at one point. It's still not close to being 
complete, but might be sufficient for your needs, and you could help 
improve it too.


Let me know if you want more info or if you decide to use it and you 
need help getting started.


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Python users

2009-12-14 Thread Rizzen
Hi,

Thanx for the reply, I will definitely take a look at this project.

Rizzen

Jean-Sébastien Guay wrote:
> Hi Rizzen,
>
>> What is the best OSG python library/wrapper to use? I see there are
>> various versions: pyOSG, PyOSG and osgPython. Some project showed no
>> activity since 2003. Some projects showed activity in the news yet files
>> are a lot older. PyOSG does not seem to have a SVN on SourceForge, just
>> old tarballs.
>>
>> I am planning to use Boost:python in my project too.
>
> If you're planning on using boost.python you might be interested in
> trying the wrapper project I've started, which wraps some of OSG but
> not all using boost.python. It's located here:
>
> http://code.google.com/p/osgboostpython/
>
> I started it just for fun, and wrapped most of the basics to make a
> working OSG application (matrices, vectors, geometry, textures, some
> event handlers and callbacks, viewer, etc.). Martin Mueller also
> contributed some wrappers at one point. It's still not close to being
> complete, but might be sufficient for your needs, and you could help
> improve it too.
>
> Let me know if you want more info or if you decide to use it and you
> need help getting started.
>
> J-S

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Python users

2009-12-15 Thread Massimo Di Stefano
Hi,

Thanks to make the osgboostpython code!
 
i'm running osgboostpython on mac osx 10.6 (osg svn, 64-bit)
boost+python support from source (1.41)

now i'm tring to runs some examles, 
but i have problems using the code from the main page :

In [12]: s.setTextureAttributeAndModes(0, t, osg.StateAttribute.Values.ON)

Traceback (most recent call last):
  File "", line 1, in 
AttributeError: type object 'Values' has no attribute 'ON'


any clue on what's wrong?


p.s.

... tring to build osgboostpython , seems that it don't recognize the .dylb 
files
so i had to simlink *.dylb to *.so.

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Python users

2009-12-15 Thread Jean-Sébastien Guay

Hi Massimo,

Sorry, my first reply went to you directly... I don't know why, 
sometimes "reply" replies straight to the sender, even though the 
mailing list should be changing the headers so that replies go back to 
the mailing list...


i'm running osgboostpython  on 
mac osx 10.6 (osg svn, 64-bit)

boost+python support from source (1.41)


Please note that I've never tried to build it on Mac OS X, so your input 
will be valuable (as below).


now i'm tring to runs some examles, 
but i have problems using the code from the main page :


In [12]: s.setTextureAttributeAndModes(0, t, osg.StateAttribute.Values.ON)

Traceback (most recent call last):
  File "", line 1, in 
AttributeError: type object 'Values' has no attribute 'ON'

any clue on what's wrong?


Yes, the enums were changed to const members to fit better with the C++ 
style but I didn't change the code on the front page  :-(


Try to use osg.StateAttribute.ON instead (without the .Values)...

See 
http://code.google.com/p/osgboostpython/source/browse/trunk/osgBoostPython/lib/osg/__init__.py


I've updated the front page now. Sorry about that.

... tring to build osgboostpython 
 , seems that it don't 
recognize the .dylb files

so i had to simlink *.dylb to *.so.


You could possibly change the jam files so that it uses .dylib files 
instead, but I have no clue how to do that. Perhaps the bjam / jam / 
boost.build documentation can help you.


Thanks,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Python users

2009-12-16 Thread Massimo Di Stefano
Hi Jean-Sébastien,

thanks!
running the latest notes from the wiki main page all works fine.
now i'm exploring the example code.

a question :

have you never tried to add a python osgviewer inside a PyQt4 (or wx-python) 
gui ?

thanks,

Massimo.


Il giorno 15/dic/2009, alle ore 18.47, Jean-Sébastien Guay ha scritto:

> Hi Massimo,
> 
> Sorry, my first reply went to you directly... I don't know why, sometimes 
> "reply" replies straight to the sender, even though the mailing list should 
> be changing the headers so that replies go back to the mailing list...
> 
>> i'm running osgboostpython  on mac 
>> osx 10.6 (osg svn, 64-bit)
>> boost+python support from source (1.41)
> 
> Please note that I've never tried to build it on Mac OS X, so your input will 
> be valuable (as below).
> 
>> now i'm tring to runs some examles, but i have problems using the code from 
>> the main page :
>> In [12]: s.setTextureAttributeAndModes(0, t, osg.StateAttribute.Values.ON)
>> 
>> Traceback (most recent call last):
>>  File "", line 1, in 
>> AttributeError: type object 'Values' has no attribute 'ON'
>> any clue on what's wrong?
> 
> Yes, the enums were changed to const members to fit better with the C++ style 
> but I didn't change the code on the front page  :-(
> 
> Try to use osg.StateAttribute.ON instead (without the .Values)...
> 
> See 
> http://code.google.com/p/osgboostpython/source/browse/trunk/osgBoostPython/lib/osg/__init__.py
> 
> I've updated the front page now. Sorry about that.
> 
>> ... tring to build osgboostpython  
>> , seems that it don't recognize the .dylb files
>> so i had to simlink *.dylb to *.so.
> 
> You could possibly change the jam files so that it uses .dylib files instead, 
> but I have no clue how to do that. Perhaps the bjam / jam / boost.build 
> documentation can help you.
> 
> Thanks,
> 
> J-S
> -- 
> __
> Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
>   http://www.cm-labs.com/
>http://whitestar02.webhop.org/
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Python users

2009-12-16 Thread Jean-Sébastien Guay

Hello Massimo,


running the latest notes from the wiki main page all works fine.
now i'm exploring the example code.


Good to know you're getting better success now.


have you never tried to add a python osgviewer inside a PyQt4 (or wx-python) 
gui ?


No, sorry. If you try it let me know, I would be very interested to know 
if it works well. Also if you could contribute a small example of that 
in action I would gladly add it to the osgBoostPython examples.


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org