Irrlicht binding for Perl, Python, Ruby etc.
Btw, there are now Perl bindings for Irrlicht, check http://search.cpan.org/ for Games::Irrlicht
Perl + Irrlicht + Audiere = Game: http://bloodgate.com/perl/game
newbie spinning my wheels.....
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
thanks in advance!
tf
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.
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.
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
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.
Can't get it to work
I can't seem to get it to initialize correctly. Here is what it looks like:
so I tried:
so I try
What am I missing?
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)
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'
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__']
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
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
-
- Posts: 6
- Joined: Fri Feb 20, 2004 9:12 am
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++?
Yes it is wrapper for the irrlicht api.
Her is venom.LoadMesh
I haven’t look at zdimitor work (I just downloaded it) but theoretical it should work.
Her is venom.LoadMesh
Code: Select all
inline int Venom_LoadMesh ( char* path ) {
if ( !path )
return 0;
return (int)sceneManager->getMesh( path );
}
-
- Posts: 20
- Joined: Tue Sep 21, 2004 9:08 pm
-
- Posts: 20
- Joined: Tue Sep 21, 2004 9:08 pm