> Yep, pretty much everything in pyglet/ext is far from complete, and
> shouldn't be used.. none of it will appear in pyglet 1.0.  For now,
> I've replaced the OBJ loader with the one I wrote for delta-v, which
> doesn't require pygame and has several other improvements (the API is
> the same).

Well the OBJ loader is really useful, maybe you can not call it
finished, but I just leave it for release, is a nice addition to the
package.

However I tried to use the new OBJ loader commited to svn yesterday
and found that it didnt work until I modified something in the obj
file manually (I tested that it load a baddie01.obj from your game
right, but not any of my objs)

So the problem was that blender exporter export a mesh like this:
--------------------------------
mtllib zombieng.mtl
g Cube
v 0.613969504833 0.766891002655 -3.62704515457
[....]
vn 0.554948568344 0.619617283344 -0.5550096035
usemtl Material
f 22/1/22 8/2/8 24/3/24 25/4/25
[...]
-----------

And that gives an error while loading :

/workspace/zombies/pyglet/pyglet/ext/model/obj.py", line 134, in
__init__
    group = MaterialGroup(self, material)
TypeError: __init__() takes exactly 2 arguments (3 given)

So i fixed in the obj I have to modify like this:

---------------

mtllib zombieng.mtl
o Cube

v 0.613969504833 0.766891002655 -3.62704515457
[...]
vn 0.554948568344 0.619617283344 -0.5550096035
g Cube
usemtl Material
f 22/1/22 8/2/8 24/3/24 25/4/25
----------------------

Maybe blender exporter is working wrong, no idea. Hope this helps :)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to