Jump to content
  • Advertisement

Archived

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

FDGaming

OpenGL Arg, OpenGL doesn't like object picking at distances!

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

I''m writing a 3d modeling program, and I have the whole triangle selection and point selection working pretty well. The only problem is that when you zoom out away from a point, the harder it is to select, until you eventually just can''t select it! However, the triangles work fine for selecting at just about any distance. Is there a reason to why it does this, or possible a way to fix it? I''m basically using NeHe''s lesson32 for selection, just a bit modified for my code. Any help would be greatly appreciated... -Fredric

Share this post


Link to post
Share on other sites
Advertisement
This is just a blind suggestion, but you could try looking at the object selection tutorial under OpenGL on gametutorials.com. That one uses 3D selection so I will be even more useful to a 3d modeling program.

Share this post


Link to post
Share on other sites
This is just a blind suggestion, but you could try looking at the object selection tutorial under OpenGL on gametutorials.com. That one uses 3D selection so I will be even more useful to a 3d modeling program.

Share this post


Link to post
Share on other sites
This is just a blind suggestion, but you could try looking at the object selection tutorial under OpenGL on gametutorials.com. That one uses 3D selection so I will be even more useful to a 3d modeling program.

Share this post


Link to post
Share on other sites
This is just a blind suggestion, but you could try looking at the object selection tutorial under OpenGL on gametutorials.com. That one uses 3D selection using glLoadName() and stuff like that, so I will be even more useful to a 3d modeling program.

Share this post


Link to post
Share on other sites
This is just a blind suggestion, but you could try looking at the object selection tutorial under OpenGL on gametutorials.com. That one uses 3D selection using glLoadName() and stuff like that, so I will be even more useful to a 3d modeling program.

Share this post


Link to post
Share on other sites
Heh'', I fixed the problem a while ago, forgot to post how.

When you''re multiplying the selection matrix by the perspective matrix, MAKE sure that the perspective matrix is the same as the one that you''re using for drawing.

-Fredric

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!