Jump to content
  • Advertisement

Archived

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

shila

OpenGL opengl selection problem

This topic is 5563 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

hi all, my progect includes GUI that only part of it is the opengl window. i write the selsection code like in the tutorial but i always get zero hits althogh i get mouse event and load names to the stack. whatever i do the stack remains empty!! please try to help me im real desperate

Share this post


Link to post
Share on other sites
Advertisement
Had the same problem too...
Maybe you load the names during a glBegin / glEnd fragment.
glLoadName does not work during a glBegin / glEnd fragment.
This was the solution in my case. Just try...

chrisa

Share this post


Link to post
Share on other sites
You could use one of the occlusion queries instead if you don''t get it working. I''m using NV_occlusion_query, but there is the more common HP_occlusion_test. Then there''s the new ARB_occlusion_query, but it''s not so widly supported yet I think.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!