Object Picking
There should be no difference between GLUT and AGL as far as gluPickMatrix and GL's selection mechanism is concerned.
Quote:Originally posted by OneSadCookieI wouldn't think so either, I just know that the method that works with GLUT doesn't with AGL.
There should be no difference between GLUT and AGL as far as gluPickMatrix and GL's selection mechanism is concerned.
P.S. Yay! 100 posts!
... which suggests to me that you're not setting something up correctly for AGL. Why don't you post your code?
I will post my code later tonight, not at home right now.
OK, I lie
I am not going to post the code, too much and I have actually already redone the interface using CopyBits. Thanks anway.

Not really important but..Im confused.. are you sure opengl uses a selection buffer for picking? I thourt it just transformed the view frustrum/cube and the hits were any intersecting objects. Interesting since i might get some speed increase if this is so.using a intersection method must be much faster.
When you're using OpenGL picking, you pass a buffer to OpenGL which it uses to store hits. Whenever you're drawing anything, you specify a pick ID, much like you specify the current color. If any pixel of that object is rasterized, its pick ID is added to your buffer.
gluPickMatrix simply changes the viewport & projection so that only objects inside the area you specify will be rasterized.
gluPickMatrix simply changes the viewport & projection so that only objects inside the area you specify will be rasterized.
Possibly Related Threads...
Thread: | Author | Replies: | Views: | Last Post | |
How do I do Color Picking? | dockode | 2 | 7,597 |
Sep 24, 2011 08:02 PM Last Post: dockode |
|
Issues with picking | FFaqui | 0 | 3,209 |
Nov 21, 2009 04:37 PM Last Post: FFaqui |
|
Opengl picking problem (zip file) | papillon68 | 1 | 6,392 |
Mar 1, 2009 08:49 PM Last Post: chronus |
|
Picking and selection... | chalamov33 | 2 | 5,213 |
Mar 31, 2008 02:08 PM Last Post: wyrmmage |
|
glut picking clashes with drawing | wyrmmage | 2 | 5,067 |
Jan 24, 2008 06:39 PM Last Post: wyrmmage |