English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 19 November 2012, 13:34   #1
dekarAF
Retired Scener
 
dekarAF's Avatar
 
Join Date: Oct 2009
Location: Oslo / Norway
Posts: 86
Any chance we'll see HLSL or similar CRT emulation in a future release?

Each time I've been away from the Amiga scene for a while and come back, there's a new WinUAE out with even more features and higher compatibility. Hats off to Toni for that! I really love the new auto scaling feature!

Anyways, I'm quite an arcade/MAME freak and after recently replacing my Makvision CRT with an LCD in my cabinet I have started experimenting with HLSL.

Now, is there a chance that HLSL (or similar CRT emulation) can be implemented in WinUAE? I just don't think that the current PAL filter cuts it for me, especially not after seeing what HLSL can do for MAME.

What I really need is slight blurring and good looking 1:1 pixel scanlines. The curving of the screen etc. isn't that important, although phosphor bleed emulation would be very cool.

I also noticed in some other threads that people were using external filters for scanline emulation in WinUAE. Does anyone want to elaborate on that?

Last edited by dekarAF; 19 November 2012 at 15:54. Reason: Typo Tony/Toni :O
dekarAF is offline  
Old 19 November 2012, 15:35   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
HLSL (D3D) shaders should be already supported (at least some). Scanline filters won't work correctly (at least not yet).
Toni Wilen is offline  
Old 19 November 2012, 15:38   #3
dekarAF
Retired Scener
 
dekarAF's Avatar
 
Join Date: Oct 2009
Location: Oslo / Norway
Posts: 86
Quote:
Originally Posted by Toni Wilen View Post
HLSL (D3D) shaders should be already supported (at least some). Scanline filters won't work correctly (at least not yet).
Thanks for the quick reply as always. Supported, but not implemented in WinUAE (I mean, I can't choose it from the filters/display UI)?
dekarAF is offline  
Old 19 November 2012, 15:49   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
won't work correctly = loads and works but looks usually quite horrible. (incorrect scaling)
Toni Wilen is offline  
Old 19 November 2012, 15:53   #5
dekarAF
Retired Scener
 
dekarAF's Avatar
 
Join Date: Oct 2009
Location: Oslo / Norway
Posts: 86
Quote:
Originally Posted by Toni Wilen View Post
won't work correctly = loads and works but looks usually quite horrible. (incorrect scaling)
I understand. I guess I'll do with the PAL-filter for now then.
dekarAF is offline  
Old 19 November 2012, 16:00   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Do you have any example HLSL files that you'd like to use? (which don't work at the moment)
Toni Wilen is offline  
Old 19 November 2012, 16:06   #7
dekarAF
Retired Scener
 
dekarAF's Avatar
 
Join Date: Oct 2009
Location: Oslo / Norway
Posts: 86
Quote:
Originally Posted by Toni Wilen View Post
Do you have any example HLSL files that you'd like to use? (which don't work at the moment)
Honestly I have only used the HLSL feature that is included in MAME so I have no idea where to get the files. I don't even know how it works in other emulators.
dekarAF is offline  
Old 21 November 2012, 20:33   #8
dekarAF
Retired Scener
 
dekarAF's Avatar
 
Join Date: Oct 2009
Location: Oslo / Norway
Posts: 86
Tested now and using D3D: 2xSaI+Scanlines along with aperture1x2rb mask actually looks pretty authentic CRT-wise. The only problem is that the scanlines has some heavy banding, but I assume this is because they're not scaling correctly?
dekarAF is offline  
Old 01 July 2013, 17:46   #9
Retro-Nerd
Missile Command Champion
 
Retro-Nerd's Avatar
 
Join Date: Aug 2005
Location: Germany
Age: 52
Posts: 12,435
HLSL support in MAME is more than single shader. You can combine these with slider controls/ini settings to mimic different old Arcade monitors.

Quote:
bloom.fx
color.fx
deconverge.fx
downsample.fx
focus.fx
phosphor.fx
pincushion.fx
post.fx
prescale.fx
primary.fx
vector.fx
yiq_decode.fx
yiq_encode.fx

http://mamedev.org/source/docs/hlsl.txt.html

Looks really nice on a LED/LCD monitor. Would love to see this in WinUAE too.



Last edited by Retro-Nerd; 01 July 2013 at 19:07.
Retro-Nerd is offline  
Old 01 July 2013, 17:53   #10
dlfrsilver
CaptainM68K-SPS France
 
dlfrsilver's Avatar
 
Join Date: Dec 2004
Location: Melun nearby Paris/France
Age: 46
Posts: 10,412
Send a message via MSN to dlfrsilver
indeed, the graphic quality is really excellent ! Colors are just awesome (aside the CPS1 incredible palettes !)
dlfrsilver is offline  
Old 01 July 2013, 18:11   #11
dekarAF
Retired Scener
 
dekarAF's Avatar
 
Join Date: Oct 2009
Location: Oslo / Norway
Posts: 86
Quote:
Originally Posted by Retro-Nerd View Post
HLSL support in MAME is more like single shader. You can combine these with slider controls/ini settings to mimic different old Arcade monitors.



Looks really nice on a LED/LCD monitor. Would love to see this in WinUAE too.


Hell, I'll donate at least $50 the day WinUAE gets the same HLSL options as MAME. I'm pretty sure there's many more like me. Hear that Toni?
dekarAF is offline  
Old 01 July 2013, 20:24   #12
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Put the .fx files somewhere in one package and I'll take a look.
Toni Wilen is offline  
Old 01 July 2013, 20:31   #13
Retro-Nerd
Missile Command Champion
 
Retro-Nerd's Avatar
 
Join Date: Aug 2005
Location: Germany
Age: 52
Posts: 12,435
Attached, default files from the mame 0149 package. But it would only make sense if we could combine them, with the above linked mame devs configurable settings for each shader.
Attached Files
File Type: rar hlsl.rar (13.0 KB, 261 views)
Retro-Nerd is offline  
Old 01 July 2013, 20:39   #14
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Then there is no chance because of license incompatibility. Those shaders require lots of external data, extra textures etc from C-code side.
Toni Wilen is offline  
Old 01 July 2013, 20:44   #15
Retro-Nerd
Missile Command Champion
 
Retro-Nerd's Avatar
 
Join Date: Aug 2005
Location: Germany
Age: 52
Posts: 12,435
Damn. I 've expected you would say that. A shame, it would end all further requests for a decent "CRT look" shader system.
Retro-Nerd is offline  
Old 01 July 2013, 21:16   #16
dekarAF
Retired Scener
 
dekarAF's Avatar
 
Join Date: Oct 2009
Location: Oslo / Norway
Posts: 86
I don't really need the entire HLSL package that MAME has. Correctly scaled scanlines and a little blur would do the trick.
dekarAF is offline  
Old 04 July 2013, 02:16   #17
Leandro Jardim
Registered User
 
Leandro Jardim's Avatar
 
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
Quote:
Originally Posted by Toni Wilen View Post
Then there is no chance because of license incompatibility. Those shaders require lots of external data, extra textures etc from C-code side.
This is very unfortunate.

But, then I dont understand how the MESS team have implemented parts of UAE on it. For what I know MESS have some kind of Amiga emulation, or am I wrong? How they did it too? For what I understand MESS is something of a "fork", a sister project of MAME.

Anyway, since there are people interested to pay for it, may be a very good idea to pay for Toni and for example, to Blargg, that did very good filters for NTSC and I am pretty sure him could do something for PAL, too. Toni may work with him to "mix" NTSC and PAL filters to WinUAE.

http://slack.net/~ant/libs/ntsc.html

Last edited by Leandro Jardim; 04 July 2013 at 02:42.
Leandro Jardim is offline  
Old 16 July 2013, 03:58   #18
TysonJacobs
Registered User
 
Join Date: Jul 2013
Location: Nashville/USA
Posts: 10
Try my shader!

I think it is at least almost as good, and it is just 1 file!

I recomemnd you use the crt.png mask, it makes it look better, and is needed to compensate for the brightnesss introduced by the shader.
Attached Thumbnails
Click image for larger version

Name:	leander.jpg
Views:	1504
Size:	117.3 KB
ID:	36073  
Attached Files
File Type: rar crt.rar (1.2 KB, 396 views)
TysonJacobs is offline  
Old 16 July 2013, 05:42   #19
Leandro Jardim
Registered User
 
Leandro Jardim's Avatar
 
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
Quote:
Originally Posted by TysonJacobs View Post
Try my shader!

I think it is at least almost as good, and it is just 1 file!

I recomemnd you use the crt.png mask, it makes it look better, and is needed to compensate for the brightnesss introduced by the shader.
Hmmm... I am trying it on a 640x512 window on my desktop, it helps to generate wonderful CRT-like saturated copper bars and smooth icon text, things that I simply love and was missing in any kind on WinUAE.

Many thanks.
Leandro Jardim is offline  
Old 16 July 2013, 06:05   #20
TysonJacobs
Registered User
 
Join Date: Jul 2013
Location: Nashville/USA
Posts: 10
Quote:
Originally Posted by Leandro Jardim View Post
Hmmm... I am trying it on a 640x512 window on my desktop, it helps to generate wonderful CRT-like saturated copper bars and smooth icon text, things that I simply love and was missing in any kind on WinUAE.

Many thanks.
Glad you like it!

My personal sweet-spot is 800x600 fullscreen with the png mask, I love the watercolor-on-canvas look this gives.

With this, along with using Sandra to force 50hz on my LCD, I feel I have finally arrived at that ever elusive nirvana, *perfect amiga emulation*
TysonJacobs is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Future of Emulation xArtx Nostalgia & memories 15 11 August 2013 03:15
HLSL/CG Shaders and xBR Enverex support.FS-UAE 11 19 July 2013 16:44
MAME: How to use HLSL? Leandro Jardim Retrogaming General Discussion 3 28 December 2012 02:55
I want to give Amiga Emulation one last chance, please help (WoT) GurrenLagann New to Emulation or Amiga scene 15 27 April 2008 12:14
WinUAE: PPC Amiga Classic future emulation? DaNi support.WinUAE 24 12 January 2008 22:24

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 15:31.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10857 seconds with 16 queries