Archived

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

Testing if a 3d object is rendered in a certain area in a viewport?

This topic is 6035 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 have decided that I want to use a 3D cursor in my game that hovers above the terrain. It will make picking very easy and look cool. But I need to know if the cursor is moved into a certain area that will cause it to be rendered onto the interface panel. Then the player can press buttons on the 2D interface on the side of the screen. I guess it would be the opposite of using the selection mode and name stack in opengl.

Share this post


Link to post
Share on other sites
You already have the mouse cursor in window (x,y) coordinates so why not just test if it is in the box?

Share this post


Link to post
Share on other sites