On Sun, Nov 23, 2008 at 9:22 PM, Alex Holkner <[EMAIL PROTECTED]>wrote:
> > On Mon, Nov 24, 2008 at 12:41 PM, Simtex <[EMAIL PROTECTED]> wrote: > > > > I'm trying to do some basic mouse selection of irregular size 2d- > > objects (rectangular bounds checking isn't sufficient) so I've been > > trying to figure out a way to get better collision detection in > > pyglet. > > For mouse selection (testing an irregular area against a point or > rectangular area), you're better off using GL selection buffers -- > there are many code examples of this around; I'm sure someone on this > list will have some handy. Note that the selection buffer mechanism is deprecated, has a limit of 64 objects in most drivers, and is not hardware accelerated. Colour picking is a decent replacement in many cases: http://wiki.gamedev.net/index.php/OpenGL_Selection_Using_Unique_Color_IDs --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
