problem with visualization.shadertoy addon in Kodi 17

Post Reply
circulosmeos
Posts: 18
Joined: Tue Jul 25, 2017 2:34 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

problem with visualization.shadertoy addon in Kodi 17

Unread post by circulosmeos » Thu Mar 14, 2019 7:30 am

I'm using ODROID-C2 with
  • Kodi 17.6 (apt package 17.6+hk2-odroidc2ubuntu7)
  • hardkernel's Ubuntu 16.04.2 LTS
  • kernel Linux odroid64 3.14.79-114
I've been testing different versions of visualization.shadertoy addon (v1.0.6 extracted from LibreELEC, or compiled by myself based on v 1.1.5)
as the ones shipped with this Kodi didn't show anything (the source code compiled in ODROID does not correctly link to GLESv2 (I've patched this)).

The problem is that all shaders (visualizations) are reinitiated every 8 seconds:
this is more obvious in the ones that cycle or evolve because the process is stopped and started again from the beginning, which destroys the evolution of the visualization:
it's quite annoying :evil: and has obliged me to stop adding more interesting shaders.
I haven't found the cause (Kodi options, C++ code, or Mali graphic processor problem specific to ODROID-C2?):
if somebody can give me some hint about this it'd be great !

PS: Also, if you have an ODROID-C2 and your visualization.shadertoy addon runs smoothly, please, post your distro and versions: thanks ! ;)

circulosmeos
Posts: 18
Joined: Tue Jul 25, 2017 2:34 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: problem with visualization.shadertoy addon in Kodi 17

Unread post by circulosmeos » Tue Mar 19, 2019 9:37 am

I have discovered the issue that make the shaders animation reinitiate every 8 seconds:
It seems that the GPU Mali450 has a limit of 13 bit time resolution (=8192 ms).
Fortunately this limit can be overcome at the expense of loss of precision in some shaders, but most like SHAPE or Alhambra do run smoothly this way!

If any one is interested, I've released version 3.14 of the addon visualization.shadertoy for ODROID-C2 patching this issue.
With this version, a time multiplier is available per shader modifying a json file (or globally via addon settings).
Also any user can add new shaders modifying the json file.

Greetings!

Wild Penguin
Posts: 31
Joined: Thu Mar 09, 2017 11:01 pm
languages_spoken: english, finnish
ODROIDs: Odroid C1
Has thanked: 0
Been thanked: 0
Contact:

Re: problem with visualization.shadertoy addon in Kodi 17

Unread post by Wild Penguin » Tue Apr 02, 2019 1:35 am

Does this work on the C1 LIbreElec made by wrxtasy?

I've noticed the same issue there with the visualizations!

circulosmeos
Posts: 18
Joined: Tue Jul 25, 2017 2:34 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: problem with visualization.shadertoy addon in Kodi 17

Unread post by circulosmeos » Wed Apr 03, 2019 3:31 am

I see here that C1 is a 32 bits system - but C2 is 64 bits, and so is the library compiled in the addon: so, unfortunately, it doesn't seem C1 compatible.

Good news is that following the instructions at github, anyone can compile the addon in an ODROID-C1!
Also if someone know how to instruct cmake files of shadertoy to compile for 32 bits I'd do the job.
In any case I'd be very happy to add it to my current release of shadertoy!

PS: I've just added a page with the list of shaders included!

circulosmeos
Posts: 18
Joined: Tue Jul 25, 2017 2:34 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: problem with visualization.shadertoy addon in Kodi 17

Unread post by circulosmeos » Wed Apr 24, 2019 8:20 am

I've just added the addon version for Raspberry Pi 2 (32-bits): https://github.com/circulosmeos/visuali ... /tag/v3.14

I'll try to figure out if I can compile for ODROID-C1 in an ODROID-C2... :ugeek:

circulosmeos
Posts: 18
Joined: Tue Jul 25, 2017 2:34 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: problem with visualization.shadertoy addon in Kodi 17

Unread post by circulosmeos » Sat May 04, 2019 9:39 pm

Hi Wild Penguin,
I've tried to compile visualization.shadertoy for ODROID-C1 (for C2 and RPi see here), but I cannot test this myself as I do not have one:
You can try it: download to your ODROID-C1, and install:
* Addons > box icon on top left corner > Install from zip file

Please, bear in mind that this is a test: it may not install, or may show nothing... be prepared to unistall it :? but it should not produce any more problems 8-)

Post Reply

Return to “CoreELEC/LibreELEC - Kodi Project for C1/C2”

Who is online

Users browsing this forum: No registered users and 4 guests