On 8/2/07, Brian Fisher <[EMAIL PROTECTED]> wrote:
>
> 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 <[EMAIL PROTECTED]> 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


Yes, that's what I'm trying now (
http://www.gamedev.net/community/forums/topic.asp?topic_id=458364)

Reply via email to