Homepage › Forums › RetroPie Project › Video Output on RetroPie › Set shader settings automatically SNES
- This topic has 5 replies, 3 voices, and was last updated 9 years, 5 months ago by matpie.
-
AuthorPosts
-
05/16/2015 at 13:04 #97726matpieParticipant
Hi guys,
I just figured out how to automatically load a shader at snes startup. I use snes9x. My retroarch.cfg for snes looks like this
video_shader = /opt/retropie/emulators/retroarch/shader/sabr/sabr-v3.0.glsl video_shader_enable = true
But how can I set the “shader scale” to “1” and the “shader filter” to “nearest”. When I press F1 in retroarch menu I can set these two values. But I don’t know how to set it in the cfg. Do you know how to configure it?
05/16/2015 at 16:59 #97728patrickmParticipant[quote=97726]Hi guys,
I just figured out how to automatically load a shader at snes startup. I use snes9x. My retroarch.cfg for snes looks like this
video_shader = /opt/retropie/emulators/retroarch/shader/sabr/sabr-v3.0.glsl video_shader_enable = true
But how can I set the “shader scale” to “1” and the “shader filter” to “nearest”. When I press F1 in retroarch menu I can set these two values. But I don’t know how to set it in the cfg. Do you know how to configure it?
[/quote]
I wouldn’t recommend shaders on the pi as they tend to cause performance issues. I would instead opt for overlays – see “how to get scanlines.”
If you insist, though:
Main menu -> options -> video options -> shader
There you will find “shader scale” and “shader filter.”05/16/2015 at 18:12 #97733matpieParticipantThanks for your answer. I know how to set it manually in the options. But I want to set these two values in the retroarch.cfg so there is nothing to do after starting snes9x. I don’t want to set it manually every time.
05/16/2015 at 19:52 #97734FloobMemberThe default SNES emulator in RetroPie 3 beta 2 is lr-snes9x-next.
Here are some examples for the retroarch.cfg that are generated (assuming 1 shader pass)
Filter = Nearest
Scale = Dont Carefilter_linear0 = "false" wrap_mode0 = "clamp_to_border" mipmap_input0 = "false" alias0 = "" float_framebuffer0 = "false" srgb_framebuffer0 = "false"
Filter = Linear
Scale = 2xfilter_linear0 = "true" wrap_mode0 = "clamp_to_border" mipmap_input0 = "false" alias0 = "" float_framebuffer0 = "false" srgb_framebuffer0 = "false" scale_type_x0 = "source" scale_x0 = "2.000000" scale_type_y0 = "source" scale_y0 = "2.000000"
Filter = Dont Care
Scale = 3xwrap_mode0 = "clamp_to_border" mipmap_input0 = "false" alias0 = "" float_framebuffer0 = "false" srgb_framebuffer0 = "false" scale_type_x0 = "source" scale_x0 = "3.000000" scale_type_y0 = "source" scale_y0 = "3.000000"
05/16/2015 at 19:58 #97735FloobMemberAlthough I think these need to be called in, so you call your shader “snescustom.glslp” (put it wherever – probably in shader dir is best) or similar, then its contents would be
shaders = "1" shader0 = "/opt/retropie/emulators/retroarch/shader/scanline.glsl" filter_linear0 = "false" wrap_mode0 = "clamp_to_border" mipmap_input0 = "false" alias0 = "" float_framebuffer0 = "false" srgb_framebuffer0 = "false" scale_type_x0 = "source" scale_x0 = "1.000000" scale_type_y0 = "source" scale_y0 = "1.000000"
Some shader settings info here:
https://github.com/libretro/RetroArch/wiki/RGUI05/16/2015 at 21:13 #97741matpieParticipantHi Floob,
thank you, the second method with the custom shader worked for me :).
BTW: Your videos are great and also helped me to solve other problems. Thanks a lot :) !
Have a nice evening!
-
AuthorPosts
- The forum ‘Video Output on RetroPie’ is closed to new topics and replies.