Previous Thread
Next Thread
Print Thread
#102706 11/21/15 09:48 PM
Joined: Mar 2001
Posts: 17,217
Likes: 234
R
Very Senior Member
OP Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,217
Likes: 234
Thanks to Dullaron for putting these together!

https://sites.google.com/site/o0kinghanco0o/crt-geom-alternative-downloads

ETA: there's a possibly easier-to-follow setup here:
http://www.mameau.com/mame-glsl-shaders-setup/

Last edited by R. Belmont; 02/03/16 04:41 PM.
R. Belmont #102714 11/22/15 10:50 PM
Joined: Apr 2006
Posts: 812
Likes: 3
D
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 812
Likes: 3
Here is Space Invaders fix. The problem is the colors doesn't line up. I got it straighten out. Copy and then paste it. Rename or save the files from CRT-geom-halation_Vertical to CRT-geom-halation_Vertical_Invaders_Fix for this fix. Find any other games that have this kind of overlay color tapes out of place then this should fix those too.

You will lose the curves. The curves will not curves the overlay color tapes. I warn you. smile

Code
  // START of parameters

  // gamma of simulated CRT
  CRTgamma = 2.4;
  // gamma of display monitor (typically 2.2 is correct)
  monitorgamma = 2.2;
  // overscan (e.g. 1.02 for 2% overscan)
  overscan = vec2(1.0025,1.0025); //overscan = vec2(0.99,0.99);
  // aspect ratio
  aspect = vec2(1.0, 0.75);
  // lengths are measured in units of (approximately) the width of the monitor
  // simulated distance from viewer to monitor
  d = 2.0;
  // radius of curvature
  R = 10.5; //R = 3.5
  // tilt angle in radians
  // (behavior might be a bit wrong if both components are nonzero)
  const vec2 angle = vec2(0.0,0.01);
  // size of curved corners
  cornersize = 0.03;
  // border smoothness parameter
  // decrease if borders are too aliased
  cornersmooth = 100.0;
  // strength of halation or "bloom" effect - e.g. 0.1 for 10%
  halation = 0.1;

  // END of parameters


W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB
R. Belmont #102717 11/23/15 06:13 AM
Joined: Apr 2006
Posts: 812
Likes: 3
D
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 812
Likes: 3
One more. This is for the 280-ZZZAP. Maybe some others as well.

Rename or save the files from CRT-geom-halation to CRT-geom-halation_280zzzap_Fix for this fix.

Remember the whole point is to keep the overlay color tape line up to the game screen. smile

Code
  // START of parameters

  // gamma of simulated CRT
  CRTgamma = 2.4;
  // gamma of display monitor (typically 2.2 is correct)
  monitorgamma = 2.2;
  // overscan (e.g. 1.02 for 2% overscan)
  overscan = vec2(1.0025,1.0025); //overscan = vec2(0.99,0.99);
  // aspect ratio
  aspect = vec2(1.0, 0.75);
  // lengths are measured in units of (approximately) the width of the monitor
  // simulated distance from viewer to monitor
  d = 2.0;
  // radius of curvature
  R = 10.5; //R = 1.8;
  // tilt angle in radians
  // (behavior might be a bit wrong if both components are nonzero)
  const vec2 angle = vec2(0.0,0.01);
  // size of curved corners
  cornersize = 0.03;
  // border smoothness parameter
  // decrease if borders are too aliased
  cornersmooth = 80.0;
  // strength of halation or "bloom" effect - e.g. 0.1 for 10%
  halation = 0.1;

  // END of parameters


W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB
R. Belmont #102722 11/23/15 01:33 PM
Joined: Jul 2015
Posts: 115
Senior Member
Offline
Senior Member
Joined: Jul 2015
Posts: 115
Dude, what are you doing?
Will you post now another 20 fixes for the remaining games (clones and vector games excluded) with overlay-files or what?

If you want to fix overlay cases, then you need only this:

Code
// Enable screen curvature.
// #define CURVATURE // comment out this line, if you dont want curvature and if you want a FLAT CRT.

job done. congrats for you, to get all the credits frown ... applaud here frown .

Last edited by u-man; 11/23/15 01:35 PM.

I live... I die... I live again.
R. Belmont #102723 11/23/15 02:08 PM
Joined: Mar 2001
Posts: 17,217
Likes: 234
R
Very Senior Member
OP Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,217
Likes: 234
Yeah, Dullaron, this thread is not for infinite single-game fixes, it is simply to point to your mirror and instructions for GLSL. If the thread becomes otherwise, I will simply delete it.

R. Belmont #102730 11/23/15 07:43 PM
Joined: Apr 2006
Posts: 812
Likes: 3
D
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 812
Likes: 3
u-man I sworn it marked out. Sorry about that. I must've been looking at wrong files. frown

Yes please delete those posts above that I made R. Belmont.

///////////////////////////////////////////////////////

Uploaded the update on the CRT-geom-halation_Vertical.

Change const vec2 angle = vec2(0.0,0.01); to const vec2 angle = vec2(0.01,0.0);

///////////////////////////////////////////////////////

Added the CRT-geom-halation_overlay_fix and CRT-geom-halation_Vertical_overlay_fix files for the overlay fix.

#define CURVATURE to // #define CURVATURE

Done now.


W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB
R. Belmont #121348 09/17/22 12:01 PM
Joined: Apr 2006
Posts: 812
Likes: 3
D
Senior Member
Offline
Senior Member
D
Joined: Apr 2006
Posts: 812
Likes: 3
https://drive.google.com/drive/folders/1VCu4_HQLU7ciw3U-bzNjkAIQNJRZds1e?usp=sharing

Sorry about the website got deleted. I still have the files.

What happen that I deleted the files that made the website. lol


W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
1 members (robcfg), 250 guests, and 5 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,320
Posts121,944
Members5,074
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com