LWJGL Forum

Programming => OpenGL => Topic started by: Eternity on October 17, 2009, 15:11:44

Title: why would GLU.gluUnproject return NaN's
Post by: Eternity on October 17, 2009, 15:11:44
Hey!

under what circumstances whould GLU.gluUnproject cause the results floatBufferto contain NaN's (Not a Number)

ive rewritten the part of my engine that determines the 3D position of the 2D mouse cursor and for some reason my gluUnproject just keeps on giving me NaN and i cant find anything wrong with the arguments i use. maybe im just missing something obvious... if i knew why GLU.gluUnproject would do that il be able to find my problem much easier (i think) :P

Thnx in Advance!

EDIT: the method itself still returns true so it didn't fail.
Title: Re: why would GLU.gluUnproject return NaN's
Post by: Eternity on October 18, 2009, 09:06:35
i found my problem. Thnx for reading anyway.
Title: Re: why would GLU.gluUnproject return NaN's
Post by: Fool Running on October 19, 2009, 12:24:40
So, what did the problem end up being?