Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Bug with picking and window mode?  (Read 2398 times)

0 Members and 2 Guests are viewing this topic.

Mars_999

  • Full Member
  • ***
  • Posts: 103
    • View Profile
    • Email
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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Bug with picking and window mode?
« Reply #1 on: May 29, 2012, 08:03:36 am »
Where is SFML in this problem?
Laurent Gomila - SFML developer

Mars_999

  • Full Member
  • ***
  • Posts: 103
    • View Profile
    • Email
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...

Mars_999

  • Full Member
  • ***
  • Posts: 103
    • View Profile
    • Email
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....

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
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.
Want to play movies in your SFML application? Check out sfeMovie!