It is currently Sat Aug 22, 2020 3:32 pm


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Status of Swig bindings?
PostPosted: Sat Jan 21, 2012 11:29 pm 

Joined: Sat Jul 30, 2011 7:21 pm
Posts: 3
Hi there!

I am looking to use PolyVox with Panda3d, via python.
Its my understanding that SWIG bindings exist for PolyVox?

If this is the case, how might I go about building them?

thanks!


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Status of Swig bindings?
PostPosted: Sun Jan 22, 2012 9:16 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Hi, SWIG bindings are currently commented out in CMakeLists.txt. Have a look at line 36 of polyvox/library/CmakeLists.txt where you can enable them.

I don't know what the current state is but they probably will need some work. I think you will need some experience with SWIG to address any problems you encounter.

Also, we recently added SimpleInterface.h/cpp to PolyVox to provide an easier to use API which is also easier to wrap. It's not been tested much, but you could try writing new bindings for this class instead of resurecting the existing ones.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Status of Swig bindings?
PostPosted: Tue Jan 24, 2012 3:43 pm 

Joined: Sat Dec 18, 2010 2:58 am
Posts: 41
Hi there, the best route I would recommend is using cython and the new SimpleInterface. In the end I gave up using python + panda3d and switched to C++ and Ogre3D. In the end it was much easier to learn c++ rather than getting Swig to work with templates!

But if you still would rather use python and swig bindings to PolyVox, I'd be glad to work with you to fix up the swig bindings :)


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Status of Swig bindings?
PostPosted: Tue Jan 24, 2012 5:14 pm 

Joined: Sat Jul 30, 2011 7:21 pm
Posts: 3
Thanks for the offer,

I think I am going to try and learn c++, so I can still use Panda3D's c++ API.

Thanks!


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net