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

Author Topic: Blurring effect when Mario is jumping  (Read 2702 times)

0 Members and 1 Guest are viewing this topic.

P@u1

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Blurring effect when Mario is jumping
« on: April 22, 2011, 04:41:45 pm »
Hi everyone,

I'm writing a mario game and I recognized, that a strange blurring effect occurs, when mario is jumping (this does not occur, when i walk to the sides).

I can't see an option to attach a file, so I uploaded the executable (+ images) at megaupload:
http://www.megaupload.com/?d=AKGGJIN4

It would be very nice if you can tell me what might cause this effect and how it can be fixed.
I will also upload the source code if you want it.

Some notes to the game:
Unpack the images in the same folder as the exe.
Use left and right arrow to move and space to jump.
Resizing the window can cause bugs at the current state.
For some reason on termination an "This apllication has stopped working" message might occur.

Thanks for your help in advance.

Wizzard

  • Full Member
  • ***
  • Posts: 213
    • View Profile
Blurring effect when Mario is jumping
« Reply #1 on: April 22, 2011, 07:41:43 pm »
I don't think I can help you, but I downloaded your game just to check it out and there is no blurring effect for me.

Maybe, you just perceive a blurring effect because of the high velocity. Try limiting the FPS to 24 and, if that works, to 60 or use vertical synchronization.

Edit:
Theoretically, this shouldn't matter because the monitor cannot update more than the refresh rate set by your operating system. It's just an idea of something to try.

Walker

  • Full Member
  • ***
  • Posts: 181
    • View Profile
Blurring effect when Mario is jumping
« Reply #2 on: April 23, 2011, 04:35:50 am »
Yeah seems fine for me too.

I thought when you said you included images that there was images (screenshots) of the issue -- this would be helpful. If screenshots don't capture it, it's likely a monitor issue.

P@u1

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Blurring effect when Mario is jumping
« Reply #3 on: April 23, 2011, 10:08:12 pm »
Screenshots don't capture it.
But I had this problem at two different pc's with different monitors.
Maybe its just my perception...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Blurring effect when Mario is jumping
« Reply #4 on: April 23, 2011, 10:36:27 pm »
Does enabling v-sync help?
Laurent Gomila - SFML developer

P@u1

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
Blurring effect when Mario is jumping
« Reply #5 on: April 24, 2011, 12:41:08 am »
no, at the first pc it does no difference and at the second pc (my laptop) vsync somehow does not have any effect (i still have more than 700 fps).
I used setFrameLimit on my Laptop instead of vsync, this is working, but the effect still occurs.
Do you know, why vsync does not work for me?
And what is the difference between using vsync and frame limit?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Blurring effect when Mario is jumping
« Reply #6 on: April 24, 2011, 09:15:06 am »
Quote
Do you know, why vsync does not work for me?

It's probably forced to "off" in your graphics driver settings.

Quote
And what is the difference between using vsync and frame limit?

V-sync is more natural since it's handled by the graphics driver, and synchronizes the refresh rate with the monitor's one.
Laurent Gomila - SFML developer