On Feb 18, 2008 6:49 AM, PhilipBober <[EMAIL PROTECTED]> wrote:

>
> > 4. It doesn't fully implement the Wavefront specification - the old
> contrib
> > one didn't either
>

> That's not really surprising. Does anyone actually implement the whole
> thing?
> The full OBJ spec has commands to run arbitrary commands (so "csh rm -
> rf ~" is a valid .OBJ file)


Yes - I think the spec is ridiculous.  I wasn't meaning to suggest that we
should try to implement the whole spec.


> (I wrote an OBJ parser a while back, sorry to go somewhat offtopic)


Yeah, just looking at your code, I think we more or less implemented the
same features.  The two reasons I decided not to throw mine away and hack on
yours was:

1.  I don't think triangulation should be the role of the importer - though
kudos for actually implementing this :)
2.  I think the parser should be decoupled from the view layer because:
    A. You can rewrite/replace your drawable Mesh object etc. independent of
the parser
    B. You might want to other things with the mesh - smoothing etc.
3.  I'm lazy and my obj parser was already working for my needs.

I think some improvements could be made to mine:

1. Optional filters for post-processing - for example: triangulation as you
implemented
2. Support a few more "reasonable" features of the Wavefront spec.

Would you be interested in collaborating on this?  And to Alex - if we
arrive at something sufficiently abstract and useful in any pyglet
application, would you be interested in putting this in pyglet core?  I
imagine this would entail more work - e.g. a Mesh class in pyglet.  If
there's not sufficient interest in the community, then I definitely don't
want to waste any effort.

Cheers,
-- 
\\\\\/\"/\\\\\\\\\\\
\\\\/ // //\/\\\\\\\
\\\/  \\// /\ \/\\\\
\\/ /\/ / /\/ /\ \\\
\/ / /\/ /\  /\\\ \\
/ /\\\  /\\\ \\\\\/\
\/\\\\\/\\\\\/\\\\\\
              d.p.s

--~--~---------~--~----~------------~-------~--~----~
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