• Advertisement

Archived

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

On MouseOver?

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

Hello there. I was wondering how could I implement a mouseover feature in my OpenGL App. I have already implemented a "RayGun" class that can "fire" at objects that are in the current viewing frustum. Previously I made it so that you needed to click in order to cast a ray. So I thought that If I wanted to do a MouseOver-like feature I would have needed to fire a ray every frame... but well it seems that the current scene that is displayed is lagging behind the position of the mouse. What I mean is that objects gets highlighted after several seconds that the mouse has passed over it, and other strange results. But FPS are still very High (they are capped at VSync - 85) Are there other ways to do it? And is there a simple openGL function to highlight the outline of a geometric object or something like that? (I need to display a sort of tool-tip over it and perhaps draw an outline around the object..) Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement