Main > Linux

GLSL help

(1/2) > >>

Hunk_4TH:
Hey guys! I'm pretty new to GLSL. I had it working one time then going to try it again I get the following error in the terminal


--- Code: ---WARNING: font /fonts/Ubuntu-B.ttf, is not TrueType or BDF, using MAME default
cannot open shader_file: ./src/osd/sdl/shader/glsl_plain.vsh
OpenGL: GLSL loading mame bitmap shader 0 failed (./src/osd/sdl/shader/glsl_plain)
cannot open shader_file: CRT/CRT.vsh
OpenGL: GLSL loading mame bitmap shader 1 failed (CRT/CRT)
Segmentation fault (core dumped)

--- End code ---
I tried Googling it with no luck. Seems more people use Mame in Windows which it's HLSL effect which is understandable as I use it as well but would like to have this working in Linux as well. I'm running Lubuntu 12.0.4 x64.

Hunk_4TH:
Anyone have any ideas? I've tried uninstalling MAME,re-installing it, and even deleted all the MAME.ini files I could find with no luck :(

eldiau:
Hey Hunk_4TH,
I use GLSL with cgwg CRT shader on my Ubutntu 12.04, it works quite well and I like it very much!

First get the latest version by cgwg called CRT-geom-20120130.zip here http://www.sendspace.com/file/gctlod unzip it in ~/.mame/CRT
Second get mame 0.145 sources from http://mamedev.org/, unzip and copy the mame/src/osd/sdl/shader folder in ~/.mame/CRT
you'll end up with something like this:

--- Code: ---[1006] diego@mother ~> ls -l ~/.mame/CRT
total 36
-rw-r--r-- 1 diego diego 6866 Jan 31 02:21 CRT-geom_idx16_lut.fsh
-rw-r--r-- 1 diego diego 6866 Jan 31 02:21 CRT-geom_rgb32_dir.fsh
-rw-r--r-- 1 diego diego 6866 Jan 31 02:21 CRT-geom_rgb32_lut.fsh
-rw-r--r-- 1 diego diego 3096 Apr  2 17:15 CRT-geom.vsh
drwx------ 2 diego diego 4096 Apr 24 14:11 shader
--- End code ---

now edit these lines in your mame.ini:

--- Code: ---gl_glsl                   1
gl_glsl_filter            1
glsl_shader_mame0         /home/username/.mame/CRT/shader/glsl_plain
glsl_shader_mame1         /home/username/.mame/CRT/CRT-geom
--- End code ---

change username to whatever your username is, take special care in not using ~ or $HOME, for some reason mame dosen't like that in those lines!

Hunk_4TH:
Thanks for the detailed reply! I tried all that and get the following error while running mame via the terminal


--- Code: ---WARNING: font /fonts/Ubuntu-B.ttf, is not TrueType or BDF, using MAME default
Unable to load effect PNG file 'scanlines_ag.png'
cannot open shader_file: ./src/osd/sdl/shader/glsl_plain.vsh
OpenGL: GLSL loading mame bitmap shader 0 failed (./src/osd/sdl/shader/glsl_plain)
cannot open shader_file: ./CRT/CRT.vsh
OpenGL: GLSL loading mame bitmap shader 1 failed (./CRT/CRT)
Segmentation fault (core dumped)

--- End code ---

Hunk_4TH:
I tried again and it seems to be working now. Thanks so much for your help!!

Navigation

[0] Message Index

[#] Next page

Go to full version