|
|
Search
|
|||||||
| Home | Register | Downloads | FAQ | Members List | Calendar | Arcade | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Registered User
![]() ![]() ![]() ![]() Join Date: Mar 2006
Location: Argentina
Posts: 930
|
16-235 to 0-255
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;
}
Code:
varying vec2 TCoord;
void main()
{
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
TCoord = gl_MultiTexCoord0.xy;
}
__________________
Last edited by KrossX; 1 Week Ago at 06:29.. Reason: Updated. Added 16-255 option. |
|
|
|
| Advertisement | [Remove Advertisement] | ||
|
|
|
|
#2 (permalink) |
|
Registered User
![]() ![]() Join Date: Feb 2009
Location: N/A
Posts: 152
|
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
|
|
|
|
|
|
#3 (permalink) |
|
Registered User
![]() ![]() ![]() ![]() Join Date: Mar 2006
Location: Argentina
Posts: 930
|
Yay for trying it out! 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. ![]() 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;
}
__________________
Last edited by KrossX; 1 Week Ago at 17:16.. |
|
|
|
|
|
#4 (permalink) |
|
Registered User
![]() ![]() Join Date: Feb 2009
Location: N/A
Posts: 152
|
I forgot that BSnes has that NTSC filter. Gotta play with that too. Had the idea to check out a Gamespot image from 2000. Figure that they should have a reasonably good adjusted TV back then. Maybe I can pump the overall gamma using BSnes code and see if it washes out. Side-note: I want my RGB - Screenshots |
|
|
|
|
|
#5 (permalink) |
|
Registered User
![]() ![]() ![]() ![]() Join Date: Mar 2006
Location: Argentina
Posts: 930
|
Woah, nice site. Each one looks quite different, and seem oversaturated.... ![]() 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.
__________________
|
|
|
|
|
|
#6 (permalink) |
|
Registered User
![]() ![]() Join Date: Feb 2009
Location: N/A
Posts: 152
|
New build of PEOpS BSnes. Place all files in the plugins. Edit the peops_bsnes.txt to try different combos and see what works best. That's what I can do for now. EDIT: Added 32-bit support for all non-hq2x filters Last edited by shalma; 1 Week Ago at 17:10.. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|