[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Collision Detection with Pygame/OpenGL Surfaces
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Collision Detection with Pygame/OpenGL Surfaces
- From: "Brian Fisher" <brian@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 2 Aug 2007 12:56:15 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 02 Aug 2007 15:56:24 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=KGwhMpkYMmzp3prWCCm1ooEQ8fMmSQAYOO9HuGEDx1G41cowK29FMRx59C12nxy7ApaKFhNgLzDFB+n/ww8a/cRqHd4msnF+cAIlUFPX1ce6yLHz4Bu04trewinAzUKsdRMoPWvaabMpBAoPNRaNq0QyNdRfkzPWhhwdUU1zYts=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=lYtZ9AM0RelQLQDL3f6+CkutUMTUNrtyLSJFVoWgj1SkSybpu0kUISKjOy0NxSNq0WESlfLCs+BpbJ2AVA/7itQSB/3+1nsJQc2FW7odM9Pw6SX8taY5pVtcvXmP/og2IVItRsP4/YSg8d5LDK9yuO/oykAG+cqT0t8J2yGDOv0=
- In-reply-to: <a62fab400708021125u65194f9ev5f10c77d90416401@xxxxxxxxxxxxxx>
- References: <a62fab400708021125u65194f9ev5f10c77d90416401@xxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
glReadPixels reads from the frame buffer - I'm not sure if it means
back buffer or front buffer, but I think it's back
http://pyopengl.sourceforge.net/documentation/manual/glReadPixels.3G.xml
On 8/2/07, Ian Mallett <geometrian@xxxxxxxxx> wrote:
> Hi,
> I'm making a program for visualizing molecules. Each atom will be selected
> by the mouse. Since I know the color of each atom, my idea for detecting if
> a mouse is over one is as follows:
>
> 1: get the color of the pixel the mouse is over
> 2: if the color is __ select the atom with that color.
>
> The problem is, pygame has issues with OpenGL surfaces and the call to
> Surface.get_at() declares I can't call an OpenGL surface. Is there any way
> to get around this?
> Thanks,
> Ian
>
>
>