Sign in to follow this  
Phoresis

Picking Performance

Recommended Posts

Would it be completely stupid to call a picking algorithm everytime the user moves his mouse to work out what part of a shape the user's cursor is hovering over? Is there a massive performance hit doing it this way, or is it a viable option?

Share this post


Link to post
Share on other sites
That depends on how efficient the picking algorithm is, and how much time you can allot to it. It's not an unreasonable thing to do.

Share this post


Link to post
Share on other sites
In that case the performance will depend on how many vertices your card will have to transform and how many fragments it will have to rasterize since you effectively have to render your scene twice. As long as you do the obvious stuff like frustum culling, turn off textures, lighting and other unneeded states, and use a lower LOD mesh, you should be just fine with this method.

Share this post


Link to post
Share on other sites

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