• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Game Modifications › Cheats, Hacks, & Game Patches v
« Previous 1 ... 11 12 13 14 15

[Shader] FullScreen Smoothing + Scanlines
View New Posts | View Today's Posts

Pages (4): 1 2 3 4 Next »
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[Shader] FullScreen Smoothing + Scanlines
04-14-2013, 03:54 AM (This post was last modified: 07-05-2014, 01:26 AM by shinra358.)
#1
shinra358 Offline
Banned
Posts: 56
Threads: 7
Joined: Jan 2013
I don't know if something like this has already been made or not but this is a fullscreen smoothing filter with scanlines shader (similar to that of which is on EPSXE with Pete's Opengl 2.9 plugin) that I made. The fullscreen smoothing, scanline thickness, and scanline opacity can all be edited individually to suit each person's resolution/taste. Edited meaning the ability to turn one or the other off/on and the smoothing intensity level, scanline thickness level, and scanline opacity levels.

[color=#ff0000]*****Best if used with a 1920x1080 fullscreen resolution under the 'Graphics' > 'General' tab.*****[/color]

[color=#009900]Optimal settings for the 1920x1080 fullscreen resolution include:

*[/color]
[color=#009999]float smoothing_size = [color=#990099]1.0[/color]
float vPos = uv0.y*resolution.y / [color=#990099]2[/color]
float line_intensity = (((vPos - floor(vPos)) * 9) - 4) / [color=#990099]50[/color]

[color=#009900](light smoothing and light scanlines)[/color][/color]



[color=#009900]-or-



*[/color]
[color=#009999]float smoothing_size = [color=#990099]1.0[/color]
float vPos = uv0.y*resolution.y / [color=#990099]3[/color]
float line_intensity = (((vPos - floor(vPos)) * 9) - 4) / [color=#990099]50[/color]

[color=#009900](light smoothing and med/light scanlines)[/color][/color]



Here are some screenshots with a few combinations in 1920x1080 internal dolphin resolution:


PN03


*No Smoothing + No Scanlines: http://imageshack.us/a/img824/555/pn3noblurnoscan.png

*Default Smoothing + Default Scanlines: http://imageshack.us/a/img708/4295/pn3defaultblurdefaultsc.png

*No Smoothing + Medium Scanlines: http://imageshack.us/a/img706/1391/pn3noblurmedscan.png

*3% Smoothing + Light Scanlines: http://imageshack.us/a/img43/5869/pn33blurlightscan.png

*50% Smoothing + Light Scanlines: http://imageshack.us/a/img198/8581/pn350blurlightscan.png



Resident Evil 3


*No Smoothing + No Scanlines: http://imageshack.us/a/img22/937/re3noblurnoscanlines.png

*25% Smoothing + Darker Scanlines: http://imageshack.us/a/img405/3897/re325blurdarkerscan.png

*25% Smoothing + Light 75% Opacity Scanlines: http://imageshack.us/a/img15/4365/re325blurlight75opacsca.png

*50% Smoothing + Light 75% Opacity Scanlines: http://imageshack.us/a/img42/3928/re350blurlight75opacsca.png



Mortal Kombat Deception


*No Smoothing + No Scanlines: http://imageshack.us/a/img842/516/mknoblurnoscanlines.png

*5% Smoothing + Light Scanlines: http://imageshack.us/a/img849/3288/mk5blur.png

*25% Smoothing + Light Scanlines: http://imageshack.us/a/img854/3440/mk25blur.png

*50% Smoothing + Light Scanlines: http://imageshack.us/a/img822/6622/mk50blur.png









DOWNLOAD:
http://www.mediafire.com/download/spr1vk1qpcp2j0w/FullScreen_Smoothing_Scanlines_ShinRa358.zip
Find
Reply
04-14-2013, 07:47 AM
#2
dEnigma Offline
Member
***
Posts: 138
Threads: 1
Joined: Sep 2011
Nice effect, I will try these shaders sometime tomorrow.
[Image: postcountwe8.jpg]
---------------------------------------------------------------------------------------
[Image: 2350461.png]
Find
Reply
04-14-2013, 08:10 AM (This post was last modified: 04-14-2013, 08:42 AM by Starscream.)
#3
Starscream Away
Above and Beyond
*******
Posts: 4,052
Threads: 213
Joined: Jun 2009
Personally I wouldn't use this. I like how clear of an image Dolphin can provide at high internal resolutions, I wouldn't want to blur that look or have scanlines on the screen.
Asus Laptop: K53TA
OS: Windows 7 Home Premium, 64-Bit - SP1
CPU: AMD Llano A6-3400M, Quad-Core, 1.4GHz-2.6GHz (Overclocked)
GPU: AMD Radeon HD6650M, 1GB GDDR3 (Catalyst 13.1)
RAM: Samsung 4GB DDR3-1333










Find
Reply
04-14-2013, 10:17 PM
#4
delroth Offline
Making the world a better place through reverse engineered DSP firmwares
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,356
Threads: 63
Joined: Aug 2011
Then you're not the target and I don't even know why you're commenting.
Pierre "delroth" Bourdon - @delroth_ - Blog

<@neobrain> that looks sophisticated enough to not be a totally dumb thing to do
Website Find
Reply
04-15-2013, 12:35 AM (This post was last modified: 04-15-2013, 12:39 AM by Starscream.)
#5
Starscream Away
Above and Beyond
*******
Posts: 4,052
Threads: 213
Joined: Jun 2009
(04-14-2013, 10:17 PM)delroth Wrote: Then you're not the target and I don't even know why you're commenting.

delroth: I hope that your goal isn't to eradicate all thoughts and opinions that don't agree with yours. You don't have to agree with everything people say, you don't even have to like what they say, but that doesn't mean they're not allowed to say it. Of course, comments do have to be reasonable, which mine definitely was.
Asus Laptop: K53TA
OS: Windows 7 Home Premium, 64-Bit - SP1
CPU: AMD Llano A6-3400M, Quad-Core, 1.4GHz-2.6GHz (Overclocked)
GPU: AMD Radeon HD6650M, 1GB GDDR3 (Catalyst 13.1)
RAM: Samsung 4GB DDR3-1333










Find
Reply
04-15-2013, 01:38 AM
#6
shinra358 Offline
Banned
Posts: 56
Threads: 7
Joined: Jan 2013
@Starscream:

1. Your comment torward Delroth would mean you would be censoring him like you say you don't want to be 'censored'.
2. If you don't like it, then that means you didn't download it. Which also means what was the purpose of you commenting at all about it? Obviously to try to convince others as if they don't know what they like or not themselves.
3. If you don't like your pic smoothed, then you wouldn't have bought the wii console in the first place. When you play a game on a real wii, the picture is smoothed because it is not high res. It doesn't have pixelation at all or either tolerable pixelation due to smoothing. I'm assuming that since you are a part of this community, that you have or had a wii at one point or still.
4. There are a lack of shaders as it is. Why are you trying to 'censor' me considering you don't like it being done to you?
5. Thread is about a shader. Not about questioning others about an unrelated issue.
6. RE3 pic 1 is better than the others? Srsly? @.*
7. Let's just move along. We don't need to focus on what you are focusing on because that is not the thread's purpose. I know that there's not really that much to talk about but still. Jus' sayin'.



@dEnigma:

I hope that you enjoy them.


Peace. Keep up the good work on the emulator Wink
Find
Reply
04-15-2013, 02:03 AM (This post was last modified: 04-15-2013, 03:13 AM by Starscream.)
#7
Starscream Away
Above and Beyond
*******
Posts: 4,052
Threads: 213
Joined: Jun 2009
(04-15-2013, 01:38 AM)shinra358 Wrote: 1. Your comment torward Delroth would mean you would be censoring him like you say you don't want to be 'censored'.

How in the world did you come to that conclusion? I told delroth that people have the right to give their opinion.

(04-15-2013, 01:38 AM)shinra358 Wrote: 2. If you don't like it, then that means you didn't download it. Which also means what was the purpose of you commenting at all about it?

Did you not post pictures for people to look at and comment on? My opinion was that they were blurry and that I wouldn't want my game to look that way. There's nothing wrong with that comment unless the original poster is overly sensitive.

(04-15-2013, 01:38 AM)shinra358 Wrote: Obviously to try to convince others as if they don't know what they like or not themselves.

Alright, now you're being ridiculous. My comment was about my opinion and my opinion alone.

(04-15-2013, 01:38 AM)shinra358 Wrote: 3. If you don't like your pic smoothed, then you wouldn't have bought the wii console in the first place.

You're right, that's why I didn't buy one.

(04-15-2013, 01:38 AM)shinra358 Wrote: 4. There are a lack of shaders as it is. Why are you trying to 'censor' me considering you don't like it being done to you?

Wow, what has the world come to. I gave my opinion and said that I personally wouldn't use this. I didn't tell you or anyone else that they don't have the right to give their opinion or like this. If I was working on something and someone didn't particularly like whatever it was that I was doing, I'd be fine as long as they gave their opinion in a respectful way. You're just plain unable to accept any comment that wasn't someone absolutely loving it.

(04-15-2013, 01:38 AM)shinra358 Wrote: 5. Thread is about a shader. Not about questioning others about an unrelated issue.

I am commenting about your shader, what are you talking about?

(04-15-2013, 01:38 AM)shinra358 Wrote: 7. Let's just move along. We don't need to focus on what you are focusing on because that is not the thread's purpose. I know that there's not really that much to talk about but still. Jus' sayin'.

I'm sorry that you're offended and were unable to accept my comment. I don't feel that I was out of line by simply stating that I wouldn't use this after looking at your screenshots. You posted screenshots for that exact purpose, so that people can see what you've done and then comment on it.

Other than that, continue to work on Dolphin, but you can't get all bent out of shape if someone happens to say that they wouldn't use your work. I've had that exact thing happen to me a number of times with Half-Life 2 projects I've done, it's just something that comes with the territory when you work on something and then make it public. It's nothing personal unless the person goes out of their way to insult you. That didn't happen in this case.
Asus Laptop: K53TA
OS: Windows 7 Home Premium, 64-Bit - SP1
CPU: AMD Llano A6-3400M, Quad-Core, 1.4GHz-2.6GHz (Overclocked)
GPU: AMD Radeon HD6650M, 1GB GDDR3 (Catalyst 13.1)
RAM: Samsung 4GB DDR3-1333










Find
Reply
04-15-2013, 02:21 AM
#8
NaturalViolence Offline
It's not that I hate people, I just hate stupid people
*******
Posts: 9,009
Threads: 24
Joined: Oct 2009
I.....I actually find myself agreeing with SS on this one. What has the world come to?
"Normally if given a choice between doing something and nothing, I’d choose to do nothing. But I would do something if it helps someone else do nothing. I’d work all night if it meant nothing got done."  
-Ron Swanson

"I shall be a good politician, even if it kills me. Or if it kills anyone else for that matter. "
-Mark Antony
Website Find
Reply
04-16-2013, 01:35 AM (This post was last modified: 04-16-2013, 01:38 AM by dEnigma.)
#9
dEnigma Offline
Member
***
Posts: 138
Threads: 1
Joined: Sep 2011
Wow, that escalated quickly^^

I agree with SS, he has every right to state his opinion as long as he isn't insulting anyone, which he clearly didn't.

b2t: I would love a shader similar to this: http://filthypants.blogspot.co.at/2013/02/designing-large-scale-phosphor.html

Would be like playing on an old CRT (well, almost). Not that I ever played Wii on an old CRT, but I played my SNES and N64 on one and sometimes I get these nostalgic feelings Wink

edit: Or something like that would be fun too: http://filthypants.blogspot.co.at/2012/09/background-shader-for-retroarch.html Wink
[Image: postcountwe8.jpg]
---------------------------------------------------------------------------------------
[Image: 2350461.png]
Find
Reply
04-18-2013, 06:26 AM (This post was last modified: 04-18-2013, 06:27 AM by degasus.)
#10
degasus Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,828
Threads: 10
Joined: May 2012
shinra358: Don't care about Starscream's and Delroth's conflict, it isn't because of you.

To the shader itself:
I don't like the way you've implement the smooth as you're using this window filter:
1 1 1
1 0 1
1 1 1

This one passes low and high frequencys, but the middle ones are blocked.

First, smooth usually is a lowpass, so a easy one would be:
1 2 1
2 4 2
1 2 1

Here you need a lowpass filter not to loose the information darked out on the scanline, so only in the y-achse direction:
0 1 0
0 2 0
0 1 0

Even better would be to use different one where in the scanline you are (written in lines):
on black line: 0 0 0 (just dark)
after black line: 1 2 0 (read third from the black line)
before black line: 0 2 1


Please don't feel rejected, I like your shader, but I think it still can be improved. If you want a better explanation, join us on #dolphin-emu on FreeNode.

dEnigma:
Just implement this shaders. It shouldn't be as hard as discribed there. And I don't think two passes would speed up (much), so this can be implemented easyly in dolphin.

btw: If anyone needs some additional inputs in postprocessing like frame counter or access to last framebuffers (eg for motion blur), just ping me
Find
Reply
« Next Oldest | Next Newest »
Pages (4): 1 2 3 4 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode