Comments on: Python bindings for PolyVox preview http://www.volumesoffun.com/python-bindings-for-polyvox-preview/ Voxel-based games and technology Tue, 11 Aug 2020 06:19:17 +0000 hourly 1 https://wordpress.org/?v=4.9.3 By: Matt Williams http://www.volumesoffun.com/python-bindings-for-polyvox-preview/#comment-34330 Sun, 21 Jul 2013 09:49:18 +0000 http://www.volumesoffun.com/?p=1279#comment-34330 Hi,

We’ve started direct planning towards 0.3 as discussed in our forum at http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=520. I imagine that we’re a few months out but since I’m in the middle of writing my PhD thesis at the moment, time is a little short. In the mean-time, you could check out the develop branch in Git to see all the things mentioned in this blog post.

I’m currently writing a blog post giving more details of the Python bindings (and soon after another post about trying to do callbacks). I’ve found that using SWIG’s ability to insert native code for certain situations to be very helpful though my knowledge of the Python C API is limited.

If you have any specific questions or things you want to talk about, please do pop into our forums.

]]>
By: Demolishun http://www.volumesoffun.com/python-bindings-for-polyvox-preview/#comment-34307 Sat, 20 Jul 2013 08:34:32 +0000 http://www.volumesoffun.com/?p=1279#comment-34307 @Matt Williams,
Do you have an ETA for 0.3? I really want to play with your Python bindings. I downloaded 0.2.1 thinking there would be more examples. Then I reread this post and realized it was more of a 0.3 preview post.

I am eventually putting this in T3D and hence C++, but I wanted to play around with the fast prototyping capability of Python. Also, I have added Python to T3D using SWIG, but all the interfaces I did by hand. I found SWIG really great for helping me handle data structures, but many things I had to build as native Python API interfaces such as my callback system. So I think it is great that SWIG can generate stuff for you, however it really pays to know how to create the Python C functions from scratch. I was able to completely control the interface that way. T3D is an engine so my experience may not really translate to a library though.

]]>
By: kalwalt http://www.volumesoffun.com/python-bindings-for-polyvox-preview/#comment-30613 Tue, 30 Apr 2013 11:22:01 +0000 http://www.volumesoffun.com/?p=1279#comment-30613 thank’s Matt! you gave me a good input, i think that i will get it a try and sure i will post the result in the forum!

]]>
By: Matt Williams http://www.volumesoffun.com/python-bindings-for-polyvox-preview/#comment-30612 Tue, 30 Apr 2013 10:51:59 +0000 http://www.volumesoffun.com/?p=1279#comment-30612 Well it’s already kinda working. When it’s in a better state I’ll get your opinion on it since your C# is definitely better than mine 🙂

]]>
By: Matt Williams http://www.volumesoffun.com/python-bindings-for-polyvox-preview/#comment-30611 Tue, 30 Apr 2013 10:50:57 +0000 http://www.volumesoffun.com/?p=1279#comment-30611 I had a play with emscripten about 6 months back. I found it worked very well and able to wrap PolyVox quite easily. The main problem I found was that since it’s basically compiling the LLVM IR to EMCAScript you have to deal with all the C++ ABI name-mangling issues so none of the functions have pleasant names. My next step would have been to generate a simple C API over PolyVox and then wrap that with emscripten but I didn’t get around to it. A future version of SWIG is hopefully going to support generating a C API maybe that’s an option. Regardless, I’d love to see what you manage to get working so be sure to post about it on the forums.

]]>
By: kalwalt http://www.volumesoffun.com/python-bindings-for-polyvox-preview/#comment-30494 Sun, 28 Apr 2013 20:10:53 +0000 http://www.volumesoffun.com/?p=1279#comment-30494 It’s not directly conncected to your post about Python bindings, but i’m considering to make a polyvox.js version via emscripten https://github.com/kripken/emscripten. i think it should be doable and a lot of people would grab this sweet piece of cake.
Thanks as always for your effort in the development of Polyvox!

]]>
By: Tom http://www.volumesoffun.com/python-bindings-for-polyvox-preview/#comment-30474 Sun, 28 Apr 2013 14:29:13 +0000 http://www.volumesoffun.com/?p=1279#comment-30474 I am ferociously excited about the C# bindings! Hoorah!

]]>