Hi Everyone,

   I am working creating a 3d graphics engine and using the concepts behind 
sprite.Sprite and the graphics.py demo to create a 3d set of primitive 
objects (using pyglet 1.1.4 btw).  Now to implement picking I want to be 
able to change the group the primitive belongs to.  Based on sprite.Sprite, 
changing groups basically calls self._batch.migrate(self._vertex_list, 
GL_QUADS, self._group, self._batch).  Note that self._vertexlist in 
sprite.Sprite is not an indexed list (see Sprite._create_vertex_list).  
When I try to do the same thing with an indexed vertexlist in my 3d engine 
I am getting some strange behavior. Looking at Batch.migrate in 
pyglet\graphics\__init__.py it seems that the batch._get_domain function is 
always called with False as the first argument, indicating that it's a 
regular vertexlist.  Does this mean indexed vertexlists cannot be 
migrated?  Has anyone tried to do something similar.

Denis

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to