Irrlicht binding for Perl, Python, Ruby etc.

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
ErMurazor
Posts: 37
Joined: Sat Dec 13, 2003 2:00 pm
Location: Sweden
Contact:

Post by ErMurazor »

Venom for Irrlicht 0.6

Venom for Irrlicht 0.6 is uploaded at my page. No new functions for 0.6 are added yet.
Project YAMMO and
Venom for Irrlicht (Python Irrlicht language binding)
http://www.stenhard.net
Tels
Posts: 65
Joined: Fri Feb 27, 2004 7:56 pm
Location: Antarctica
Contact:

Post by Tels »

Btw, there are now Perl bindings for Irrlicht, check http://search.cpan.org/ for Games::Irrlicht :D
Perl + Irrlicht + Audiere = Game: http://bloodgate.com/perl/game
TF
Posts: 2
Joined: Thu Mar 18, 2004 5:27 am

newbie spinning my wheels.....

Post by TF »

i'm trying to get my feet wet developing a game with python and venom. my experience with python is very limited, so i was wondering if someone could help me get started. basically i'm just wondering how to unpack venom0.6 to be used by Python22. i've played around with irrlicht-0.6 a bit with visual studio c++ 6.0, but have decided to try and eliminate using c/c++ code, but now i don't know how to 'install' venom so python can use it.
thanks in advance!
tf
BradB
Posts: 17
Joined: Wed Feb 11, 2004 11:44 pm
Location: New Zealand

Post by BradB »

If you've unpacked Venom, you can just go to the bin directory I think? There should be a _venom.so file there. Start a python interpreter there & "import venom"

This is under linux, dunno how to do this kind of thing in windows.

Brad
ErMurazor
Posts: 37
Joined: Sat Dec 13, 2003 2:00 pm
Location: Sweden
Contact:

Post by ErMurazor »

Hi

In windows you need to have venom.dll and irrlicht.dll in the same directory as you python program. You can also have them in your search path. Look at venomstrike from my download page.

Code: Select all

C:\DEV\venomstrike>dir

 Directory of C:\DEV\venomstrike

2004-03-18  22:15    <DIR>          .
2004-03-18  22:15    <DIR>          ..
2003-12-21  05:57               958 animator.py
2003-12-21  21:54             2 784 animator.pyc
2004-02-21  21:41             1 692 application.py
2004-02-21  21:41             3 272 application.pyc
2003-12-21  05:57               324 camera.py
2003-12-21  21:54             1 442 camera.pyc
2003-12-21  05:57             1 233 character.py
2003-12-21  05:57               724 collidable.py
2003-12-21  21:54             1 310 collidable.pyc
2003-12-21  21:21    <DIR>          CVS
2003-12-21  21:21    <DIR>          data
2004-03-08  22:00           856 064 Irrlicht.dll
2004-03-08  21:35            10 546 main.py
2003-12-21  05:57             1 216 node.py
2003-12-21  21:54             3 745 node.pyc
2003-12-21  21:18            12 952 testme
2003-12-21  21:18               374 testme.cpp
2004-03-08  22:05            94 208 venom.dll

C:\DEV\venomstrike>main.py
You then start the program with main.py or by double click on main.py or “python main.py”

If you are in windows I high recommend using the Python windows extensions http://starship.python.net/crew/mhammon ... loads.html to integrate python more with windows.
Project YAMMO and
Venom for Irrlicht (Python Irrlicht language binding)
http://www.stenhard.net
Guest

Post by Guest »

thanks for your replies! i just downloaded the win32 python extensions and am checking 'em out.
thanks again!
tf
konsumer

Can't get it to work

Post by konsumer »

I can't seem to get it to initialize correctly. Here is what it looks like:

Code: Select all

cd bin
python main.py
Traceback (most recent call last):
  File "main.py", line 23, in ?
    import venom
ImportError: dynamic module does not define init function (initvenom)
so I tried:

Code: Select all

mv venom.so _venom.so
python main.py

Initializing...
Traceback (most recent call last):
  File "main.py", line 86, in ?
    mygame = Game( )
  File "main.py", line 28, in __init__
    if not venom.Initialize( venom.DRIVER_OPENGL, 640, 480, 16, 0 ):
AttributeError: 'module' object has no attribute 'Initialize'
so I try

Code: Select all

python
Python 2.3.3 (#2, Feb 24 2004, 09:29:20)
[GCC 3.3.3 (Debian)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import venom
>>> dir(venom)
['__builtins__', '__doc__', '__file__', '__name__', '_newclass', '_object', '_swig_getattr', '_swig_setattr', '_venom']
dir(venom._venom)
['__doc__', '__file__', '__name__']
What am I missing?
ErMurazor
Posts: 37
Joined: Sat Dec 13, 2003 2:00 pm
Location: Sweden
Contact:

Post by ErMurazor »

Venom for Irrlicht 0.7

Venom for Irrlicht 0.7 has been added to my sites download section. Two new examples are included quake3 map load and a particle example. Everything is complied in windows I am also trying to do a Linux release it works but there is trouble with texture quality with quake3 maps.

New functions since Venom for Irrlicht 0.6.

Particle system
venom.AddParticleNode
venom.AddParticleBoxEmitter
venom.AddParticlePointEmitter
venom.SetParticleSize
venom.AddFadeOutParticleAffector

Misc.
venom_Get2DCoordsFrom3DPosition
venom_GetSceneNodeFromScreenCoords
venom_AddBillboardNode
venom_AddBillboardNodeToParent
Project YAMMO and
Venom for Irrlicht (Python Irrlicht language binding)
http://www.stenhard.net
ventilator
Posts: 6
Joined: Fri Feb 20, 2004 9:12 am

Post by ventilator »

is this a complete wrapper of the irrlicht api? ...would it be possible to implement a mesh loader like the one zdimitor did ( -> http://irrlicht.sourceforge.net/phpBB2/ ... ght=#22486 ) with python instead of c++?
ErMurazor
Posts: 37
Joined: Sat Dec 13, 2003 2:00 pm
Location: Sweden
Contact:

Post by ErMurazor »

Yes it is wrapper for the irrlicht api.
Her is venom.LoadMesh

Code: Select all

inline int Venom_LoadMesh ( char* path ) {
	if ( !path )
		return 0;
		
	return (int)sceneManager->getMesh( path );
}
I haven’t look at zdimitor work (I just downloaded it) but theoretical it should work.
Project YAMMO and
Venom for Irrlicht (Python Irrlicht language binding)
http://www.stenhard.net
Guest

Post by Guest »

yes, but zdimitor did a custom mesh loader. did you already have a look at it?
blackbirdXXX
Posts: 20
Joined: Tue Sep 21, 2004 9:08 pm

Post by blackbirdXXX »

@ErMurazor Cool guy. I use your venom for my next project.
But will there be python bindings for Irrlicht 1.0?
ErMurazor
Posts: 37
Joined: Sat Dec 13, 2003 2:00 pm
Location: Sweden
Contact:

Post by ErMurazor »

Sure. I wile try to keep up with Irrlicht releases.
Project YAMMO and
Venom for Irrlicht (Python Irrlicht language binding)
http://www.stenhard.net
blackbirdXXX
Posts: 20
Joined: Tue Sep 21, 2004 9:08 pm

Post by blackbirdXXX »

Thanks guy! :D
Maybe you can add the missings keys to the input.h like lCtrl, rCtrl, . , - _ and so on.
Also the software render isn't linked.
Maybe you can change this untile the next release.
ErMurazor
Posts: 37
Joined: Sat Dec 13, 2003 2:00 pm
Location: Sweden
Contact:

Post by ErMurazor »

Venom for Irrlicht 0.8 is now on my download page. No new functions are added it just quick upgrade to Irrlicht 0.8.
Project YAMMO and
Venom for Irrlicht (Python Irrlicht language binding)
http://www.stenhard.net
Post Reply