Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
Bug with picking and window mode?
Print
Pages: [
1
]
Author
Topic: Bug with picking and window mode? (Read 2379 times)
0 Members and 1 Guest are viewing this topic.
Mars_999
Full Member
Posts: 103
Bug with picking and window mode?
«
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?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Re: Bug with picking and window mode?
«
Reply #1 on:
May 29, 2012, 08:03:36 am »
Where is SFML in this problem?
Logged
Laurent Gomila - SFML developer
Mars_999
Full Member
Posts: 103
Re: Bug with picking and window mode?
«
Reply #2 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...
Logged
Mars_999
Full Member
Posts: 103
Re: Bug with picking and window mode?
«
Reply #3 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....
Logged
Ceylo
Hero Member
Posts: 2325
Re: Bug with picking and window mode?
«
Reply #4 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.
Logged
Want to play movies in your SFML application? Check out
sfeMovie
!
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
Bug with picking and window mode?