Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411430 Posts in 69363 Topics- by 58416 Members - Latest Member: JamesAGreen

April 20, 2024, 01:46:07 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperArt (Moderator: JWK5)So what do you think about scanlines?
Pages: [1]
Print
Author Topic: So what do you think about scanlines?  (Read 2138 times)
J-Snake
Level 10
*****


A fool with a tool is still a fool.


View Profile WWW
« on: April 22, 2017, 12:54:45 PM »

Note that the intention here is not to accurately simulate old screens. I am thinking of adding scanlines as a cheap effect to add to the visuals for 2D games which are using high resolution sprites, but which are rather low in detail. I wonder what your stance is on that and whether you use scanlines.

Here is an opinion piece on the general matter by someone (I personally like a more fine grained scanline effect than the one shown in the video):


Logged

Independent game developer with an elaborate focus on interesting gameplay, rewarding depth of play and technical quality.<br /><br />Trap Them: http://store.steampowered.com/app/375930
Schoq
Level 10
*****


♡∞


View Profile WWW
« Reply #1 on: April 22, 2017, 02:28:03 PM »

linear interpolation usually looks really ugly to me for low resolution games, but combined with scanlines it looks very pleasant. Not sure if it would work the same with low detail high res graphics (an example would be interesting), but I you could make it an option at least.
Logged

♡ ♥ make games, not money ♥ ♡
J-Snake
Level 10
*****


A fool with a tool is still a fool.


View Profile WWW
« Reply #2 on: April 22, 2017, 04:17:44 PM »

an example would be interesting
I might provide one when I find time for it. But I am not around a powerful computer at the moment to record some good footage (the effect cannot be captured by a screenshot as it is composed by two alternating frames).

For now I can only explain the effect I worked out in case someone is interested: in the first frame every 4th row is omitted, the next frame does the same, but with a phase shift of two rows:

pattern (c = color, b = black, listed horizontally but read vertically from top to bottom):

frame 1:cccbcccbcccbcccbcccbcccb...
frame 2:--cccbcccbcccbcccbcccbcccb...

Now if you draw a vertical line through every "b" you see either in frame 1 or frame 2, then you will see that there will always be exactly one "c" between two consecutive lines in any frame. That means every second row remains persistent but gets alternately "illuminated" from top and from the bottom. This composes a pretty consistent fine-grained interpolation pattern, plus there is only a brightness loss of 25% (since only every 4th row is omitted), as opposed to 50% loss like in some other cheap variants.
Logged

Independent game developer with an elaborate focus on interesting gameplay, rewarding depth of play and technical quality.<br /><br />Trap Them: http://store.steampowered.com/app/375930
Schoq
Level 10
*****


♡∞


View Profile WWW
« Reply #3 on: April 22, 2017, 04:43:59 PM »

Well, that sounds way more interesting to me than it probably should. Hope you can record something soon!
Logged

♡ ♥ make games, not money ♥ ♡
-Ross
Level 1
*


View Profile WWW
« Reply #4 on: April 23, 2017, 04:04:17 AM »

I can't stand scanlines, they make my eyes hurt. It's the equivalent to someone waving their hands back and forth in front of your eyes while you play a game—your brain can piece together the in-between bits so you can still see, but why would you ever make it happen on purpose? Watching that video is like listening to someone argue that 0 - 2 = 4. Sure, when you carefully examine an image up close the lines define each pixel more, like putting black outlines around your characters, but A. why would you want each "pixel" separated as if it is a separate object, and B. when you're playing a game you're further away and everything is moving.
Logged

J-Snake
Level 10
*****


A fool with a tool is still a fool.


View Profile WWW
« Reply #5 on: April 23, 2017, 05:32:59 AM »

Yeah, I understand both camps, people who like it and people who don't. And it is good that you explained why you don't like it. I am on the fence myself whether I should make scanlines a default setting when you start the game. I didn't think about scanlines until recently and just wanted to give it a try. However I have worked out several effects over night by now, and some of them are pretty robust in reducing flickering, you would think you are looking at a static calm frame most of the time if you have a 60+ hz screen. So I am getting a little more confident in making one of the better effects a default option. But I will provide the player the option to disable effects and choose between them according to his liking, possibly including one with wandering scanlines as tastes can be different.

In the end it is just a cheap way out to give low detail art the illusion of more detail/depth, which is of course cool if it works. And it can work, from my experience so far. That is why I am so tempted to add scanlines. But I am possibly still a little too optimistic here atm. So all the haters, feel free to post. It is always beneficial to know what someone doesn't like about something.
Logged

Independent game developer with an elaborate focus on interesting gameplay, rewarding depth of play and technical quality.<br /><br />Trap Them: http://store.steampowered.com/app/375930
J-Snake
Level 10
*****


A fool with a tool is still a fool.


View Profile WWW
« Reply #6 on: April 25, 2017, 07:29:11 AM »

Here are some completely flicker free filters so that concern is off the table and I can take screenshots.
Note, there is potentially no information loss in the filters as they just darken the rows in the image, so the scanlines are not a monochrome line. I certainly prefer it that way.

Which of those 4 pics do you prefer?

no filter:


50% scanlines, 192/255 intensity:


40% scanlines, 192/255 intensity:


50% scanlines, 128/255 intensity:

Logged

Independent game developer with an elaborate focus on interesting gameplay, rewarding depth of play and technical quality.<br /><br />Trap Them: http://store.steampowered.com/app/375930
J-Snake
Level 10
*****


A fool with a tool is still a fool.


View Profile WWW
« Reply #7 on: April 26, 2017, 08:37:15 AM »

And here is one applied only to the foreground. The background is unaffected. If you want to see some other variations then let me know.

50% scanlines, 192/255 intensity:

Logged

Independent game developer with an elaborate focus on interesting gameplay, rewarding depth of play and technical quality.<br /><br />Trap Them: http://store.steampowered.com/app/375930
Signal Walker
Level 0
**


World Champion 1995


View Profile WWW
« Reply #8 on: April 26, 2017, 09:15:46 AM »

Scanlines are good when the art is made to work with scanlines. Old NES games probably look better with them since everything had scanlines back then, but I don't think they would add anything to, for example, Shovel Knight.
Logged

Mastodon - @AshWalker
Rotonde - @Ash
J-Snake
Level 10
*****


A fool with a tool is still a fool.


View Profile WWW
« Reply #9 on: April 26, 2017, 09:28:16 AM »

Which picture out of the 5 would you prefer, if you have to choose?

btw. here is one with vertical scanlines:

50%, intensity 192/255 (vertical)
« Last Edit: April 26, 2017, 09:50:39 AM by J-Snake » Logged

Independent game developer with an elaborate focus on interesting gameplay, rewarding depth of play and technical quality.<br /><br />Trap Them: http://store.steampowered.com/app/375930
Roel
Level 0
**



View Profile WWW
« Reply #10 on: April 26, 2017, 10:45:04 AM »

I love retro gaming and I still have all my old consoles (including an Atari 2600) plugged into a CRT TV and ready to go. But generally speaking, I absolutely detest scanline generators.

I can see why people want them - they want a more authentic retro experience. But ironically, the image produced by the vast majority of scanline generators looks nothing like the genuine article. Scanlines on CRT's had different appearances (if any) depending on the pattern and granularity of the phosphors, the resolution, the signal, and even individual settings per TV set. But they never ever looked like ruler-straight, razor-sharp, pure black lines. Those are just a primitive, exaggerated rendition of an undesirable artifact of less-than-top-quality screens. Deliberately adding them to classic games seems misguided at best. Besides, I don't see anyone building generators to emulate the high frequency buzz emitted by old CRT's.

That said, I'm going to completely contradict myself and say that I like the version with 40% scanlines, 192/255 intensity best. I can see the benefit of the (pseudo) retro look for your game. But unless you're going to adjust the graphics to match the resolution of the scanlines, I'm afraid it's going to look very unconvincing and will do more harm than good.

Logged

Schoq
Level 10
*****


♡∞


View Profile WWW
« Reply #11 on: April 27, 2017, 08:00:54 AM »

I like the 50% 128 or 192/255 horizontal ones.
It does give the illusion of higher detail  (as I find scanlines generally do)and adds some visual interest in general. The legibility of the text suffers though.
Logged

♡ ♥ make games, not money ♥ ♡
J-Snake
Level 10
*****


A fool with a tool is still a fool.


View Profile WWW
« Reply #12 on: April 27, 2017, 09:53:43 AM »

The font style isn't very readable to begin with. Like some other parts it is a placeholder for now. It also can be bulkier. So there shouldn't be a problem. I think I can safely go for rather subtle (high intensity) 50% scanlines as the default look, as it makes a difference, but doesn't look very intrusive. And then in the options there will be sliders to choose between some line filters and the desired intensity. So no one should be harmed. 

So here is a comparison again between no filter and a bit more subtle filter: 50% scanlines, intensity: 208/255

none:


50% scanlines, intensity: 208/255
Logged

Independent game developer with an elaborate focus on interesting gameplay, rewarding depth of play and technical quality.<br /><br />Trap Them: http://store.steampowered.com/app/375930
JWK5
Moderator
Level 9
******

A fool with a tool is an artist.


View Profile
« Reply #13 on: April 27, 2017, 12:08:36 PM »

The 50% looks good with the art style. I am not generally a fan of intentional scan lines (in fact, other than the rare case here and there I detest them) but it works here.
Logged

My Art Tutorials:
 Here

"Today is victory over yourself of yesterday, tomorrow is victory over lesser men." - Miyamoto Musashi
Fun Infused Games
Level 1
*


Games so good you could hang your hat on them.


View Profile WWW
« Reply #14 on: June 14, 2017, 12:33:20 PM »

I do the scanline effect in my games with a pixel shader and then make an option in game to turn them on or off (defaults to off).

It has a nice effect but I can see not always wanting to play with them on.
Logged

redredred
Level 0
**


Colorful worlds


View Profile
« Reply #15 on: June 17, 2017, 07:09:20 PM »

Scanlines work to get the retro style. I guess so long as it works with the art style.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic