[mythtv-users] Seasonal theme experiments

Stuart Auchterlonie stuarta at squashedfrog.net
Fri Dec 11 09:59:39 UTC 2020


On 10/12/2020 15:29, Mark Kendall wrote:
> Afternoon all,
> 
> I've been tinkering recently with the MythTV theme code with a view to
> seeing what functionality we could perhaps add for 0.32 - and
> hopefully generate some enthusiasm for new themes...
> 
> Inspired by https://www.shadertoy.com/ I've added some procedural
> texture support (think computer generated art) to the UI code.
> Essentially this allows you to run custom OpenGL shaders embedded in
> the theme.
> 
> The master version is available at:-
> 
> https://github.com/mark-kendall/mythtv
> 
> and I've backported to 0.31 as well:-
> 
> https://github.com/mark-kendall/mythtv/tree/fixes/31
> 
> Those versions have an updated MythCenter-wide theme where the
> background is replaced by a version of:-
> 
> https://www.shadertoy.com/view/wdVBRm
> 
> It's a little overwhelming as a theme background but demonstrates the
> possibilities well enough.
> 
> I've also put together an update for the MythCenterXMAS-wide theme
> that adds a version of:-
> 
> https://www.shadertoy.com/view/MdXcW8
> 
> as an overlay on top of the background. So gently falling snow on top
> of your Christmas postcard:)
> 
> You'll need to replace the base.xml for that theme with the version at:-
> 
> https://gist.github.com/mark-kendall/3b4ebd919fd3f2abcaab65e6ce908d99
> 
> For anyone familiar with GLSL shaders, the code is evaluated at
> runtime so you can freely tinker and play with the shaders to try
> different effects etc. The code has not been widely tested but the
> only potential issue is performance - I'm not really sure how the
> shaders will perform on older hardware (tested locally on AMD
> integrated graphics - vega 11).
> 
> Enjoy!
> 
> regards
> Mark
> 

Is it worth handling a file reference in the theme.xml file, so that
rather than having to embed GSL into the theme.xml, the GSL can be
contained in it's own file (shipped along with the theme) and it's
loaded out of that file instead?

It does seem a cleaner way to do it. (my 2c's)


Regards
Stuart




More information about the mythtv-users mailing list