Archived

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

Select Buffer?

This topic is 6287 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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
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
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
this might be of interest
http://www.dev-gallery.com/programming/opengl/index.htm

http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites