Sign in to follow this  

2D Mouse Picking

This topic is 3293 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 new to PTK game engine and am happy with it so far. Does anyone here familiar with PTK know if it has an ability to handle mouse picking of 2D transparent objects in some particular way? If not, I'd like to hear the ways others handle it (disregarding PTK or any other graphic engine). I have been using picking matrix in OpenGL for my 3D applications, but now, as my needs do not exceed 2D sprites mouse handling, I'm looking for an easier way. Is color picking using rendering to offscreen a good/easy/fast way to handle mouse picking or is it considered as a workaround? Does it have any downsides? Regards, Marko

Share this post


Link to post
Share on other sites
Color picking in my opinion is about the best you can do.

Even on the OpenGL site it says picking matrix is deprecated and any modern picking implementation should use color picking.

There's no real down side to color picking other than the fact you have to render objects again.

So in all as far as i'm aware color picking is the most accepted method around.

Share this post


Link to post
Share on other sites

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