Archived

This topic is now archived and is closed to further replies.

JizzRoy

Select Buffer?

Recommended Posts

JizzRoy    122
Any tutorials out there on this topic, I found one but it doesn''t seem to work with my program. All I really did was copy it and tool around with it, now I want to understand what it''s doing so I can fix it to work with my code. I need to be able to click on the screen and have it tell me what Object I have clicked on, thanks.

Share this post


Link to post
Share on other sites
cyanide    148
hi,
i wrote one tutorial on selection buffer.
you can go here. i've made it very simple and easy.
www.sanchit.chaorg.com/Interactive_Graphic_Objects.html

cyanide.

Greetz from the "CYANIDE"
http://www.sanchit.8m.com/


Edited by - cyanide on October 31, 2000 6:26:45 AM

Share this post


Link to post
Share on other sites
Pauly    122
Have you tried program 9 from my site?

Remember that as well as parsing the selection buffer properly you''ve got to flip the Y screen coordinate.
Parhaps most importantly you have to ensure that the projection and modelview matrices are setup in GL_SELECT mode exactly the same as they are in GL_RENDER mode.

HTH,

Paul Groves
pauls opengl page

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Do you render the objects in a separate function to where you actually draw then i.e. say you draw them in onpaint would you use a separate function for the mode

Share this post


Link to post
Share on other sites