Sign in to follow this  
Descenarius

Problem with getting Mouseposition

Recommended Posts

Descenarius    122
well, i've got a scene with several objects and want to find out at which position the Cursor of the mouse is, i'm doing this with glUnProject(). so far it works fine. when i add blending to a few objects i have to (as read in the redbook) draw them last and with depth buffer read-only (to be sure that depth-test works) now glUnProject() does not get the correct position of the mouse in the scene anymore when the cursor is over a blended object i think i know why that occurs (i will not explain here why, because my english is too bad for that :P ), but i dont know how to solve it... any suggestions? sorry for my bad english if there are problems with understanding my text, feel free to ask

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