SFML community forums

Help => General => Topic started by: Mars_999 on May 29, 2012, 06:29:33 am

Title: Bug with picking and window mode?
Post by: Mars_999 on May 29, 2012, 06:29:33 am
I am doing ray picking in a window mode and I can't get a correct result, if I run fullscreen then I get correct results? From what I can tell in window mode the Z value returned is the far plane?
Title: Re: Bug with picking and window mode?
Post by: Laurent on May 29, 2012, 08:03:36 am
Where is SFML in this problem?
Title: Re: Bug with picking and window mode?
Post by: Mars_999 on May 29, 2012, 08:07:56 am
Well if I knew I would be more helpful... but the only difference between my code is just the flag for fullscreen to SFML... The values I must be getting from glReadPixels() or someother OpenGL function call doesn't like something...
Title: Re: Bug with picking and window mode?
Post by: Mars_999 on May 29, 2012, 11:04:17 pm
Probably isn't an SFML issue, but never the less, with FreeGLUT I tested same code again in a window vs. fullscreen it works fine, just not with SFML so far....
Title: Re: Bug with picking and window mode?
Post by: Ceylo on May 30, 2012, 12:14:39 am
You most probably didn't adapt some coordinates. And these are probably assuming a specific window size.