Select Buffer?

Started by
4 comments, last by JizzRoy 23 years, 5 months ago
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.
Advertisement
do a search on this forum. i have seen selection and picking somewhere
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
[size="1"]----#!/usr/bin/perlprint length "The answer to life,universe and everything";
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
Paul Grovespauls opengl page
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
this might be of interest
http://www.dev-gallery.com/programming/opengl/index.htm

http://members.xoom.com/myBollux

This topic is closed to new replies.

Advertisement