pyirrlicht - python ctypes binding

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki

Postby devsh » Mon Jan 24, 2011 11:09 pm

unfortunately I cannot use this project (hence why my project is going so slow), I want to embed python and not extend and make irrlicht usable by python itself (unlike pyirrlicht).
We chose to stream mesh data from Multiple OpenGL Contexts in many threads and do the other things, not because they are easy, but because they are hard! - JFK
User avatar
devsh
Competition winner
 
Posts: 1758
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK

Postby _maxim_ » Thu Jan 27, 2011 6:36 pm

spock wrote:interesting! :)

so does this use ctypes or swig now?

i thought ctypes only works for c? how did you do a c++ wrapper using ctypes then?

is python 3.1/3.2 supported?


mainly ctypes, swig as nested project.

low level dll with many exported functions - python module have wrappered classes over these functions.

all versions python is supported.
_maxim_
 
Posts: 54
Joined: Thu May 27, 2010 11:05 am
Location: Russia

Postby _maxim_ » Thu Jan 27, 2011 6:56 pm

devsh wrote:unfortunately I cannot use this project (hence why my project is going so slow), I want to embed python and not extend and make irrlicht usable by python itself (unlike pyirrlicht).


if you do embeded python functional most compatible with irrlicht, perhaps you save time in the future.
also i willing to help with python code.
_maxim_
 
Posts: 54
Joined: Thu May 27, 2010 11:05 am
Location: Russia

Postby _maxim_ » Fri Jan 28, 2011 1:33 pm

spock wrote:i thought ctypes only works for c? how did you do a c++ wrapper using ctypes then?


perhaps this project be interest for you http://code.google.com/p/ctypes-stuff/s ... ctypes-cpp
_maxim_
 
Posts: 54
Joined: Thu May 27, 2010 11:05 am
Location: Russia

Postby _maxim_ » Thu Feb 03, 2011 11:23 am

new version with some bugs fixed and some memory optimization
_maxim_
 
Posts: 54
Joined: Thu May 27, 2010 11:05 am
Location: Russia

Postby Whirled Peas » Mon Feb 21, 2011 10:11 pm

does this work with irrbullet? Or do I have to go in and manually include the bullet libraries in stead?
Whirled Peas
 
Posts: 47
Joined: Mon Jan 10, 2011 8:01 pm
Location: SoCal

Postby _maxim_ » Wed Feb 23, 2011 11:36 am

Whirled Peas wrote:does this work with irrbullet? Or do I have to go in and manually include the bullet libraries in stead?


I'm not sure, but there should be no problems with it.
If Bullet has no implementation with Python, then it may be mixed with irrlicht_c.dll (see source).
_maxim_
 
Posts: 54
Joined: Thu May 27, 2010 11:05 am
Location: Russia

Postby _maxim_ » Wed Mar 02, 2011 6:21 pm

new version with FreeBASIC support
_maxim_
 
Posts: 54
Joined: Thu May 27, 2010 11:05 am
Location: Russia

Postby roxaz » Thu Mar 03, 2011 5:22 pm

i am wondering why its called irrlicht_c.dll instead of original irrlicht.dll? did you have to modify engine itself somehow?

by the way great project, i just recently started looking for py wrapper for irrlicht and your project fell from the sky like gift of gods, thanks :)
roxaz
 
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

Postby _maxim_ » Fri Mar 04, 2011 9:38 am

roxaz wrote:i am wondering why its called irrlicht_c.dll instead of original irrlicht.dll? did you have to modify engine itself somehow?


because this differs from original as C from C++
these not modify, only some additions, such as grid and vector font from this forum

patched python script with some bugs fixed http://kolosov.ath.cx/pyirrlicht_py_0951.zip

Thank you for your interest in my project
_maxim_
 
Posts: 54
Joined: Thu May 27, 2010 11:05 am
Location: Russia

Postby anoki » Mon Mar 07, 2011 10:11 am

Great to see a python binding to irrlicht again !
thanks for the great work.
User avatar
anoki
 
Posts: 58
Joined: Fri May 05, 2006 8:31 am

Postby _maxim_ » Fri Apr 22, 2011 8:46 am

anoki wrote:Great to see a python binding to irrlicht again !
thanks for the great work.

Thanks anoki

New version is accessible
_maxim_
 
Posts: 54
Joined: Thu May 27, 2010 11:05 am
Location: Russia

irrlicht_swig on unix

Postby jpalard » Sat May 28, 2011 3:07 pm

I found a bug in irrlicht.i :
irrlicht.i mentions IGUIToolBar.h but the file in irrlicht 1.7.1 is named iGUIToolbar.h so it works on case insensitive OSes (windows) but fail on others (i'm on Debian)

But it seems to have another but, i'm trying with :
swig -c++ -o irr_pyXX.cxx -keyword -I../irrlicht_1.7.1/include -python -castmode -cppcast -interface irr_pyXX irrlicht.i

And I got :


Code: Select all
../irrlicht-1.7.1/include/irrArray.h:282: Warning(362): operator= ignored
../irrlicht-1.7.1/include/irrArray.h:311: Warning(389): operator[] ignored (consider using %extend)
../irrlicht-1.7.1/include/irrArray.h:320: Warning(389): operator[] ignored (consider using %extend)
../irrlicht-1.7.1/include/irrList.h:171: Warning(362): operator= ignored
../irrlicht-1.7.1/include/irrMap.h:833: Warning(389): operator[] ignored (consider using %extend)
../irrlicht-1.7.1/include/irrMap.h:843: Warning(362): operator= ignored
../irrlicht-1.7.1/include/irrString.h:248: Warning(362): operator= ignored
../irrlicht-1.7.1/include/irrString.h:256: Warning(362): operator= ignored
../irrlicht-1.7.1/include/irrString.h:303: Warning(362): operator= ignored
../irrlicht-1.7.1/include/irrString.h:332: Warning(389): operator[] ignored (consider using %extend)
../irrlicht-1.7.1/include/irrString.h:340: Warning(389): operator[] ignored (consider using %extend)
irrUString.h:1037: Warning(362): operator= ignored
irrUString.h:1066: Warning(362): operator= ignored
irrUString.h:1084: Warning(362): operator= ignored
irrUString.h:1102: Warning(362): operator= ignored
irrUString.h:1120: Warning(362): operator= ignored
irrUString.h:1137: Warning(362): operator= ignored
irrUString.h:1153: Warning(362): operator= ignored
irrUString.h:1162: Warning(389): operator[] ignored (consider using %extend)
irrUString.h:1171: Warning(389): operator[] ignored (consider using %extend)
../irrlicht-1.7.1/include/dimension2d.h:43: Warning(362): operator= ignored
../irrlicht-1.7.1/include/vector2d.h:39: Warning(362): operator= ignored
../irrlicht-1.7.1/include/vector2d.h:41: Warning(362): operator= ignored
../irrlicht-1.7.1/include/vector3d.h:38: Warning(362): operator= ignored
irrlicht.i:349: Warning(302): Identifier 'GetText' redefined (ignored),
irrlicht.i:347: Warning(302): previous definition of 'GetText'.
irrlicht.i:465: Warning(302): Identifier 'LogEvent_Text' redefined (ignored),
irrlicht.i:462: Warning(302): previous definition of 'LogEvent_Text'.
../irrlicht-1.7.1/include/IQ3Shader.h:21: Error: Syntax error in input(1).


Does someone have an idea ?
jpalard
 
Posts: 3
Joined: Sat May 28, 2011 3:01 pm

Re: irrlicht_swig on unix

Postby _maxim_ » Sun May 29, 2011 7:17 pm

jpalard wrote:I found a bug in irrlicht.i :

Does someone have an idea ?


Thanks with your bug report, I look tomorrow this.

Now is new version with SVG partial support via AGG library.
_maxim_
 
Posts: 54
Joined: Thu May 27, 2010 11:05 am
Location: Russia

Re: irrlicht_swig on unix

Postby _maxim_ » Fri Jun 03, 2011 6:10 pm

jpalard wrote:
Code: Select all
../irrlicht-1.7.1/include/IQ3Shader.h:21: Error: Syntax error in input(1).


Does someone have an idea ?


Sorry for delay.
Change IQ3Shader.h line 21 to "static core::stringc irrEmptyStringc;"
_maxim_
 
Posts: 54
Joined: Thu May 27, 2010 11:05 am
Location: Russia

PreviousNext

Return to Project Announcements

Who is online

Users browsing this forum: No registered users and 1 guest