gluProject will not give me correct screen coords.

Ok… Im working on a little portal engine, and I want to project the coords of the portal polygons to the screen so I can set up a scissor box. The problem is, gluProject is giving me some interesting values. Now, I am using homebrew infinite far-plane projection matrix… may this be the reason why my gluProject call is going off the deep end? Ok… I am also using a viewport that doesn’t consume the entire screen. I suppose gluProject corrects for this.

Any insight as to why gluProject isnt working up to snuff here?

Originally posted by 147-2:
The problem is, gluProject is giving me some interesting values.

That is truly interesting.

I suggest downloading the gluProject Mesa source code and understanding what it is gluProject actually does. Then you might understand why it gives you the values it does.