After googling awhile, I found that the wavefront object file format
(one of the choices in blender's 'export' menu) is text that I can
parse. Is there a better way to get models to use for 3D stuff?
Rather than reinvent the wheel writing my own parser, I'd love to
discover an easier and better way.
~ Nathan
Does anyone have any pointers for the best way to get models from
blender to pyglet?
> 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)
(I wrote an OBJ parser a while back, sorry to go somewhat offtopic)
Possibly/eventually. At the moment pyglet doesn't even dip its feet
into providing 3D support, so an OBJ loader (+ mesh class) would be a
little oddball. I think eventually pyglet will grow some sort of
scenegraph though, at which time an OBJ loader would of course be
integrated. (But I would expect to see said scenegraph stable in a
3rd party library first before integrating it).
Alex.