Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Blurring Effect When Scrolling  (Read 4819 times)
0 Members and 1 Guest are viewing this topic.
Offline Troubleshoots

JGO Knight


Medals: 36
Exp: 7-9 months


Damn maths.


« Posted 2013-11-01 12:45:25 »

So I have a 2D side-scroller and I've notice that the tiles blur slightly (turn a little darker) when the camera scrolls. Is there any little tricks I can use to make it appear less blurry, or is there nothing that can be done except getting better eyes?

Why are all OpenGL tutorials written in Brainf**k?
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #1 - Posted 2013-11-01 18:48:48 »

Well you need to provide more info like what graphics library you're using, are you using shaders, is your computer slow etc... No one can help until the basics are taken care of!

Offline Abuse

JGO Knight


Medals: 12


falling into the abyss of reality


« Reply #2 - Posted 2013-11-01 19:25:38 »

So I have a 2D side-scroller and I've notice that the tiles blur slightly (turn a little darker) when the camera scrolls. Is there any little tricks I can use to make it appear less blurry, or is there nothing that can be done except getting better eyes?

Sounds like it's just the response time of your screen, though without seeing code & hardware spec it's hard to be sure.

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Troubleshoots

JGO Knight


Medals: 36
Exp: 7-9 months


Damn maths.


« Reply #3 - Posted 2013-11-02 08:51:16 »

I'm using LibGDX and after some searching I suspect that the double buffering is creating a blink effect because my laptop is slow. The suggested fix was;

Quote
You can save the image to texture and draw it back to screen at the beginning of every frame. This is the preferred solution, although it might require some work. This technique is called "render to texture".

I'm not sure how to implement this though. Can anyone direct me?

Why are all OpenGL tutorials written in Brainf**k?
Offline Phibedy

Senior Member


Medals: 8



« Reply #4 - Posted 2013-11-02 09:29:14 »

here you go: http://code.google.com/p/libgdx-users/wiki/Framebuffer
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #5 - Posted 2013-11-02 12:06:12 »

Quite honestly I don't think that's your issue. If you're just using Sprites and the such in LibGDX, there's really no reason it should blur. Do any other games you play do this?

Offline Troubleshoots

JGO Knight


Medals: 36
Exp: 7-9 months


Damn maths.


« Reply #6 - Posted 2013-11-02 12:12:21 »

Quite honestly I don't think that's your issue. If you're just using Sprites and the such in LibGDX, there's really no reason it should blur. Do any other games you play do this?

No they don't.  Undecided


Edit: I think it must be the speed I was scrolling. I was scrolling around 200px/second but when I reduced it to 150 it's harder to notice.

Why are all OpenGL tutorials written in Brainf**k?
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #7 - Posted 2013-11-02 12:24:02 »

Yeah, that would most likely do it because your refresh rate is 60 FPS right? It would just mess with your eyes.

Offline Troubleshoots

JGO Knight


Medals: 36
Exp: 7-9 months


Damn maths.


« Reply #8 - Posted 2013-11-02 12:33:23 »

My FPS stays at around 55-60 but occasionally it drops to 20-40, because my laptop is so bad. :L
The fact my background is so bright mustn't help either.


Why are all OpenGL tutorials written in Brainf**k?
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #9 - Posted 2013-11-02 12:36:03 »

Oh, regardless of your refresh rate, that background would really hurt your eyes if you were watching it zoom by! It just tiles together too well Tongue I don't think its a coding problem really, rather its a art style that would make it look like the pixels are blurry!

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 131
Projects: 4
Exp: 3 years



« Reply #10 - Posted 2013-11-03 05:30:45 »

If you can't run a 2d game at 60 fps (worse, if you're dropping to 20-40) you're doing something wrong with your code, even if you have a bad laptop.
Offline Dxu1994
« Reply #11 - Posted 2013-11-03 05:57:48 »

Your background is far too saturated. If you desaturated it a bit it would help

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Dwinin (22 views)
2014-09-12 09:08:26

Norakomi (55 views)
2014-09-10 13:57:51

TehJavaDev (67 views)
2014-09-10 06:39:09

Tekkerue (33 views)
2014-09-09 02:24:56

mitcheeb (55 views)
2014-09-08 06:06:29

BurntPizza (38 views)
2014-09-07 01:13:42

Longarmx (24 views)
2014-09-07 01:12:14

Longarmx (30 views)
2014-09-07 01:11:22

Longarmx (30 views)
2014-09-07 01:10:19

mitcheeb (37 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!