Next Generation Emulation banner
1 - 9 of 9 Posts

·
クロスエクス
Joined
·
4,662 Posts
Discussion Starter · #1 · (Edited)
I was testing BSNES and really liked the "Simulate NTSC gamma..." option, since it makes black be black. Which is one of the reasons I prefer to use OGL2 + shaders on PSX rather than PEOpS Soft. But, some of the shaders get overbright for some reason.

So I tried to modify the Brightness sample shader on Pete's site for something alike.

gpuPeteOGL2.slf
Code:
uniform sampler2D OGL2Texture;
varying vec2 TCoord;

void main()
{
	 vec4 col;

	 col = texture2D(OGL2Texture, TCoord);
	 
	 // 16-255
	 // col = col * 1.06694561 - 0.06694561;
	 
	 // 16-235	 
	 col = col * 1.16438356 - 0.07305936;

	 gl_FragColor = col;
}
gpuPeteOGL2.slv
Code:
varying vec2 TCoord;

void main()
{
 gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;

 TCoord = gl_MultiTexCoord0.xy;
}
I think this just changes the levels rather than simulate the NTSC gamma (I don't know how such gamma is to begin with). But anyhow, would it be too difficult to add some kind of option to PEOpS Soft for this kind of thing?
 

·
Discontinued
Joined
·
1,191 Posts
Modified draw.c - BlitScreen32 only (16-bit PSX mode). No filters.
Only works in 32-bit resolution

Thinking I did this wrong but fun to try out.


File list:
gpuPeopsSoft_BSnes_NTSC: plugin with BSnes NTSC gamma ramp
src: source files

snes-no: Mario World without adjustment
snes-yes: Mario World with adjustment
- Note: Look at the black colors + Mario's red hat

test1-no: Eve2 without
test1-yes: Eve2 with
- Note: I think I blew the gamma somewhere.

test2-no: Eve2 haunted house
test2-yes: Eve2 haunted house
- Note: Don't know how.

test3-no: Syphon2 without
test3-yes: Syphon2 with
- Note: No updates until someone finds why :p
 

·
クロスエクス
Joined
·
4,662 Posts
Discussion Starter · #3 · (Edited)
Yay for trying it out! :thumb:

I wouldn't know where to even start looking at that source. And even now that you've pointed out the file, and I've found the change... I still cannot understand it. :dead:

Anyway, I've tried to match the Mario pics using level correction in Photoshop. Which is what I used as base to think how to make that 16-235 shader. The images with "16-235" use the filter on the first post, and the "NTSC" use a filter as how it ended up after trying to match the Mario pic. This latter filter, gives almost same results on the other images.

16-235 filter is just a levels adjustment filter with 16, 1.0, 235 values.
NTSC filter ended up with the following values: 40, 1.50, 255.

I guess this NTSC filter only works nicely on the SNES with games like Mario and Zelda... and the 16-235 tends to make some things too brighter... maybe a new kind of color/levels correction filter is in order? Imma do some tests...

#EDIT: It seems just darkening with 16-255 may be enough.

gpuPeteOGL2.slf
Code:
uniform sampler2D OGL2Texture;
varying vec2 TCoord;

void main()
{
	vec4 col;

	col = texture2D(OGL2Texture, TCoord);		

	// That is, - 16/255) * 255/239 
	col = (col - 0.0627451) * 1.0669456;

	gl_FragColor = col;
}
 

·
クロスエクス
Joined
·
4,662 Posts
Discussion Starter · #5 ·
Woah, nice site. Each one looks quite different, and seem oversaturated.... :dead:

Anyhow, I've tired to make your normal image look like Gamespot's. Using level correction filter (4, 1.0, 120) and Hue/Saturation filter (+20 Hue, +20 Sat). I'm really wondering if that's how's supposed to look... =_=". So far I'm just happy with the slight darkening to make almost black be black.
 
1 - 9 of 9 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top