gluUnproject blocked by overlay scene?

Hi all,

I’m working on an application in a ‘main’ scene. The application uses gluUnproject and glReadPixels for some mouse interactions (e.g. to move around objects in 3d space). This works fine, until I added an overlay scene (for GUI purposes). Apparently this overlayed scene is also ‘blocking’ gluUnproject… in a way this is how you would gluUnproject expect to work, but it’s really annoying as it blocks the interaction with the main scene.

A dirty work-around is to temporarily remove the overlay scene just before doing the gl/glu stuff, and activating it afterwards, but there may be better ways :wink:

Is there a cleaner way to solve this? Thanks in advance!