Kodi Community Forum
How to use Shadertoy visualizations from shadertoy.com? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: How to use Shadertoy visualizations from shadertoy.com? (/showthread.php?tid=377812)



How to use Shadertoy visualizations from shadertoy.com? - halfproxy - 2024-06-04

Specifically, the ones that seem to have multiple source files, like this: https://www.shadertoy.com/view/4tGfDW

I tried putting all of the code into a single .glsl file and pointing the music visualization addon to the file, but it doesn't work at all.

If I use this same method with other shaders from that same site (especially when they only seem to have one source file), they sometimes work but are kind of buggy.

The ones that come with the visualization addon work correctly.

Thanks


RE: How to use Shadertoy visualizations from shadertoy.com? - sarbes - 2024-06-04

The add-on has some shortcomings.

I'm pretty sure that it has no support for buffers, so you can't use the toy you've linked. Last time I've dabbled with it, the FFT implementation was different. And also, Angle might introduce issues if your are on Windows. The performance detection is also very flawed, leading to a pause on init, as well as sporadic low resolution output.


RE: How to use Shadertoy visualizations from shadertoy.com? - halfproxy - 2024-06-07

(2024-06-04, 11:16)sarbes Wrote: The add-on has some shortcomings.

I'm pretty sure that it has no support for buffers, so you can't use the toy you've linked. Last time I've dabbled with it, the FFT implementation was different. And also, Angle might introduce issues if your are on Windows. The performance detection is also very flawed, leading to a pause on init, as well as sporadic low resolution output.

Thank you for the insight. It's a shame that these features are not likely to get implemented (based on the activity in the Github repo, anyway). Many of those shaders are very nice to look at and blow anything else that is available for Kodi out of the water in my opinion.


RE: How to use Shadertoy visualizations from shadertoy.com? - sarbes - 2024-06-07

Many of those shaders won't run well on the average Kodi device. Especially those with multiple buffers are bad for performance.

For me, there is no incentive to get such shaders running, as I have no player hardware capable of displaying them. My matrix visualization is based on the Shadertoy add-on, but I took extra care in having a good frame rate, even on very low end platforms (like a Raspberry Pi 1).