Vandepad / sdl-mame-wii

Automatically exported from code.google.com/p/sdl-mame-wii
0 stars 0 forks source link

Option to display UNFILTERED image (no blur/bilinear filter) #31

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Just load any game on SD TV 480i component
2. Pay attention on the blurry image

What is the expected output? What do you see instead?

We just need a option to turn filtered image ON and OFF, just like other 
emulators have. When I say filtered image I mean the blurry bilinear filter. 
Also, it could be awesome to have some way of running the emulator under 240p 
(when 480i component), just like SNES9X-GX, FCEU-GX, GEN-GX and HuGo GX.

What version of the product are you using? On what operating system?

sdlmame-wii-v0.6

Please provide any additional information below.

Here is the most solid example possible to a my desired suggestion - just run 
SHINOBI (Arcade Virtual Console) on a 480i connection on a CRT TV. It runs 
simply exactly perfectly as the real 80's arcade.

Original issue reported on code.google.com by pixeltem...@gmail.com on 17 Jun 2011 at 11:45

GoogleCodeExporter commented 8 years ago
I don't know if this helps, but inspecting:
http://sdl-mame-wii.googlecode.com/svn/trunk/src/emu/video.c

I found:
/***************************************************************************
    SOFTWARE RENDERING
***************************************************************************/

#define FUNC_PREFIX(x)      rgb888_##x
#define PIXEL_TYPE          UINT32
#define SRCSHIFT_R          0
#define SRCSHIFT_G          0
#define SRCSHIFT_B          0
#define DSTSHIFT_R          16
#define DSTSHIFT_G          8
#define DSTSHIFT_B          0
#define BILINEAR_FILTER     1

#include "rendersw.c"

Here! This is it!
#define BILINEAR_FILTER 1
Is there a way to add a option to turn it off?

Regards!

Original comment by pixeltem...@gmail.com on 17 Jun 2011 at 11:53

GoogleCodeExporter commented 8 years ago
Me again... Inspecting the MAME.INI I find:

#
# VIDEO OPTIONS
#
video                     soft
safearea                  1.0
numscreens                1
window                    0
maximize                  1
keepaspect                1
unevenstretch             1
effect                    none
centerh                   1
centerv                   1
waitvsync                 0
scalemode                 none

#
# CORE SCREEN OPTIONS
#
brightness                1.0
contrast                  1.0
gamma                     1.0
pause_brightness          0.65

Maybe is there a way to remove the
bilinear/blurry filtering just by
adding a new config line to the INI file?

Anyone?

Original comment by pixeltem...@gmail.com on 17 Jun 2011 at 12:05

GoogleCodeExporter commented 8 years ago
One more find...
http://code.google.com/p/sdl-mame-wii/source/browse/trunk/src/osd/sdl/sdlmain.c?
r=7

#if USE_OPENGL
        // OpenGL specific options
        { NULL,                                   NULL,   OPTION_HEADER,  "OpenGL-SPECIFIC OPTIONS" },
        { SDLOPTION_FILTER ";glfilter;flt",       "1",    OPTION_BOOLEAN, "enable bilinear filtering on screen output" },
        { SDLOPTION_PRESCALE,                     "1",        0,                 "scale screen rendering by this amount in software" },
        { SDLOPTION_GL_FORCEPOW2TEXTURE,          "0",    OPTION_BOOLEAN, "force power of two textures  (default no)" },
        { SDLOPTION_GL_NOTEXTURERECT,             "0",    OPTION_BOOLEAN, "don't use OpenGL GL_ARB_texture_rectangle (default on)" },
        { SDLOPTION_GL_VBO,                       "1",    OPTION_BOOLEAN, "enable OpenGL VBO,  if available (default on)" },
        { SDLOPTION_GL_PBO,                       "1",    OPTION_BOOLEAN, "enable OpenGL PBO,  if available (default on)" },
        { SDLOPTION_GL_GLSL,                      "0",    OPTION_BOOLEAN, "enable OpenGL GLSL, if available (default off)" },
        { SDLOPTION_GLSL_FILTER,                                  "1",    0,              "enable OpenGL GLSL filtering instead of FF filtering 0-plain, 1-bilinear 

Original comment by pixeltem...@gmail.com on 17 Jun 2011 at 12:17

GoogleCodeExporter commented 8 years ago
Most of those options don't work with the new renderer made for the Wii 
version. I've been looking at a way to do unfiltered textures, but I haven't 
gotten around to testing it lately. This is being looked at though.

Original comment by baby.lueshi@gmail.com on 17 Jun 2011 at 6:19

GoogleCodeExporter commented 8 years ago
Oh! Thanks Baby.Lueshi! Thanks so much for your feedback. If you need help on 
testing, just call me. I will be around... As soon as you get some progress, I 
will be able to RETIRE my XBOX1 from the duty for once!

Regards,
Cospefogo.

Original comment by pixeltem...@gmail.com on 17 Jun 2011 at 6:28

GoogleCodeExporter commented 8 years ago
any updates on getting 240p output from sdlmamewii?

Original comment by glen.c.f...@gmail.com on 7 May 2012 at 3:59