Sign in to follow this  

Object Selection Tutorial

This topic is 3626 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 NeHe :)... I Think That Will Be A Good Choice To Make A Selection Tutorial For OpenGL. As Many Game Writers Need To Find The Selected Object... Like Game Genres (RPG, Strategy ... ) Could You Write A Tutorial About Selection ? [Edited by - spider853 on January 7, 2008 6:34:14 AM]

Share this post


Link to post
Share on other sites
There is a "Picking" tutorial as well as an article on the use of glUnProject.

First one being a lot more basic and possibly not much use to most 3D games. The second however more or less tells you how to convert screen coords into 3D coords in your 3D world. The only thing missing is the figuring out what those coordinates intersect with, by taking those coordinates and comparing it against the volume of the "hit boxes" of all the objects in your scene (or view frustum) to find what was selected.

I agree that it would be nice for a more complete tutorial to make it easier for people to learn something, that is very much required for any 3D game (and tools, apps, etc).

Share this post


Link to post
Share on other sites

This topic is 3626 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this