Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > Re: Identifying...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 12 of 13 Topic 4872 of 5017
Post > Topic >>

Re: Identifying just the one triangle that the user clicked on?

by Flark <flarkino@[EMAIL PROTECTED] > Aug 20, 2008 at 05:57 AM

On Aug 18, 10:56=A0am, Wolfgang Draxinger <wdraxin...@[EMAIL PROTECTED]
>
wrote:

> Doing it with OpenGL:
>
> Assuming you can draw with 8 bits per channel there are 2^24
> values you can address using the colour buffer. Just give each
> triangle a colour that maps to a number, to a glReadPixels on
> the mouse position and you're done.

Does this require drawing to the screen?
Or can I draw to the double-buffer and use
glReadPixels to read from that, and simply
not call glutSwapBuffers()?

Thanks.
 




 13 Posts in Topic:
Identifying just the one triangle that the user clicked on?
Flark <flarkino@[EMAIL  2008-08-18 06:38:43 
Re: Identifying just the one triangle that the user clicked on?
Wolfgang Draxinger <wd  2008-08-18 16:56:44 
Re: Identifying just the one triangle that the user clicked on?
"Gernot Frisch"  2008-08-19 10:03:58 
Re: Identifying just the one triangle that the user clicked on?
Wolfgang Draxinger <wd  2008-08-19 12:15:08 
Re: Identifying just the one triangle that the user clicked on?
"Gernot Frisch"  2008-08-19 14:09:41 
Re: Identifying just the one triangle that the user clicked on?
Wolfgang Draxinger <wd  2008-08-19 14:12:19 
Re: Identifying just the one triangle that the user clicked on?
"jbwest" <jb  2008-08-19 08:08:17 
Re: Identifying just the one triangle that the user clicked on?
"jbwest" <jb  2008-08-18 20:02:19 
Re: Identifying just the one triangle that the user clicked on?
fungus <openglMYSOCKS@  2008-08-19 08:42:36 
Re: Identifying just the one triangle that the user clicked on?
fungus <openglMYSOCKS@  2008-08-19 14:05:03 
Re: Identifying just the one triangle that the user clicked on?
"jbwest" <jb  2008-08-19 17:07:58 
Re: Identifying just the one triangle that the user clicked on?
Flark <flarkino@[EMAIL  2008-08-20 05:57:19 
Re: Identifying just the one triangle that the user clicked on?
"jbwest" <jb  2008-08-20 08:05:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 5:54:38 CST 2008.