Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot enable shaders in lr-mame2003
#1
Question 
Hi all,

my first post here. I've been playing arcade games since late '70s and was using MAME since the first releases with just a few working games until around 2010. and now I rediscovered emulators running on SBCs.

Now to the problem...

I have a fresh install of RetrOrangePi on Orange Pi PC and I am amazed how well it works. However, I have one problem - for some reason I cannot enable .glsl shaders (I would like to enable them for libretro emulators).

I have 0.78 romset for lr-mame2003 and 'MAME 4 Droid 0.375b' romset (whichever it is - it is not 0.37b5 but is 0.375b and it contains 2271 roms, I thing there is a typing mistake in the file name).

I tried to enable the shaders using frontend via Retropie > Configuration Editor > Configure basic libretro emulator options > Configure additional options for mame-libretro. I changed Video Shader Enabled to True and tried to set different .glsl files under Video Shader File but there wasn't any changes.

On the other hand, overlays do work as expected.

I  wonder if there is a conflict with some of the options that could be set via Retropie > Retroarch. I do not exactly understand the following options:

- Load Content-specific core options autamatically
- Load Override Files Automatically
- Load Remap Files Automatically

I do understand there are three levels (global, emulator specific, game specific) of .cfg files but it is not clear to me which level of scope is this Retropie > Retroarch configuration. Although it may sound unbelievable I couldn't find any clear explanations or manuals explaining usage of the mentioned menu :-/

I did't post any configuration files because I am using a fresh install so all of the files are the default ones, the only change is I enabled the shaders.
Chupo_cro
Reply
#2
.glsl shaders depend on OpenGL acceleration, so it's hit and miss. A few will run, most badly, less than a few work as expected.

About retropie mechanism, there is info here: https://github.com/retropie/retropie-set...figuration, here: https://github.com/retropie/retropie-set...runcommand and maybe here too: http://orangepi.club/showthread.php?tid=...240#pid240

Default command is 'retroarch_binary -L retroarch_core --config retroarch_platform_cfg rom_name '.

Retroarch.cfg begins as a dummy file (stored in /opt/retropie/configs/PLATFORM/), inheriting all info from default retroarch.cfg (stored in /opt/retropie/configs/all/) when a game is launched.

Load Content-specific core options autamatically: will read from /opt/retropie/configs/all/retroarch-core-options.cfg
Load Override Files Automatically: will read from /home/pi/.config/retroarch/PLATFORM. Say you've pressed Select + X and changed aspect ratio to 4:3. If you select Save Core Overrides, a core specific .cfg will be generated, also appyling to games.
Load Remap Files Automatically: only seems to work with plain Retroarch (not Retropie, as it has its own logic, reading auto mapping files generated by EmulationStation, saved in /opt/retropie/configs/all/retroarch-joypads)

Anyway, retroarch is not so easy to config, managing that many config files is almost rocket science for me.
Reply
#3
(04-25-2017, 05:30 PM)alexkidd Wrote: .glsl shaders depend on OpenGL acceleration, so it's hit and miss. A few will run, most badly, less than a few work as expected.

The problem is I couldn't find a single one that will work so there must be some other problem. From what I read I believe at least crt-pi.glsl and crt-pi-barrel.glsl should work without problems.

(04-25-2017, 05:30 PM)alexkidd Wrote: About retropie mechanism, there is info here: https://github.com/retropie/retropie-set...figuration, here: https://github.com/retropie/retropie-set...runcommand and maybe here too: http://orangepi.club/showthread.php?tid=...240#pid240

Default command is 'retroarch_binary -L retroarch_core --config retroarch_platform_cfg rom_name '.

Retroarch.cfg begins as a dummy file (stored in /opt/retropie/configs/PLATFORM/), inheriting all info from default retroarch.cfg (stored in /opt/retropie/configs/all/) when a game is launched.

Load Content-specific core options autamatically: will read from /opt/retropie/configs/all/retroarch-core-options.cfg
Load Override Files Automatically: will read from /home/pi/.config/retroarch/PLATFORM. Say you've pressed Select + X and changed aspect ratio to 4:3. If you select Save Core Overrides, a core specific .cfg will be generated, also appyling to games.
Load Remap Files Automatically: only seems to work with plain Retroarch (not Retropie, as it has its own logic, reading auto mapping files generated by EmulationStation, saved in /opt/retropie/configs/all/retroarch-joypads)

Anyway, retroarch is not so easy to config, managing that many config files is almost rocket science for me.

Thank you for the links and for the reply!
Chupo_cro
Reply
#4
crt-pi.glsl wont work, unfortunately
Reply
#5
(04-25-2017, 10:08 PM)alexkidd Wrote: crt-pi.glsl wont work, unfortunately

Pity shaders don't work. Scan lines can be added with overlays but not the barrel effect. I hope there will be some kind of solution for such effects in the near future. Nevertheless, emulators work great :-)
Chupo_cro
Reply
#6
i will try different flags when building from source in the upcoming weeks, fingers crossed
Reply
#7
Thank you, It will be great if that worked!!
Chupo_cro
Reply
#8
up is there way ton install it easily?
Reply
#9
besides our own custom shaders on RetrOrangePi folder, nope.
Shaders were coded for the GPU we have.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  lr-mame2003 - How to not stretch Vertical Games eanschuetz 2 1,771 04-02-2017, 12:14 PM
Last Post: eanschuetz

Forum Jump:


Users browsing this thread: 1 Guest(s)