•   
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 13
  •   
Release 2D Spectrum, visualization
#46
So I realized there are some nice shaders over at shader toy, and they need quite little from us to do what they do. So I did a small trial on hooking in their shaders in a visualizer.

This is the result:
Image

The shader is available (and can be seen running without compilation) at https://www.shadertoy.com/view/XsX3zS

The code is available here https://github.com/topfs2/xbmc/tree/spectrum_shadertoy
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#47
looks really nice.
is this a spectrum analyser, or a wave though? I couldn't get it to work on the link in your post; says "no audio". Do the waves reach full screen height?
Reply
#48
(2014-12-12, 02:18)realKHz Wrote: looks really nice.
is this a spectrum analyser, or a wave though? I couldn't get it to work on the link in your post; says "no audio". Do the waves reach full screen height?

Well the one I linked to (and the shader) is a waveform, behaving much like the one zag linked (or the waveform in kodi already).
However the visualizer uses shader toys uniform bindings, i.e. many different visualizers work (when I fix the bugs).

For example
https://www.shadertoy.com/view/Msl3Rr#
https://www.shadertoy.com/view/XdlGzr
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#49
this looks very promising topfs2!
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#50
Agreeing with @pike here doesnt seem enough so + topfs2 also.
Reply
#51
see https://github.com/notspiff/visualization.spectrum2d for a out-of-tree buildable cmake based build system with some small fixes.

fixes are:

- use kodiplatform for timing, not SDL
- fix hardcoded paths by using libXBMC_addon
- fix some temporary struct usage in RenderProgram. clang does not like the temporary structs (the {v0, v1, v2} stuff).

note that you need a commit from my fork to be able to use it (the __addonpath__ special setting is something i added). this also sit in wsnipex' work.
Reply
#52
(2014-12-19, 13:19)ironic_monkey Wrote: see https://github.com/notspiff/visualization.spectrum2d for a out-of-tree buildable cmake based build system with some small fixes.

fixes are:

- use kodiplatform for timing, not SDL
- fix hardcoded paths by using libXBMC_addon
- fix some temporary struct usage in RenderProgram. clang does not like the temporary structs (the {v0, v1, v2} stuff).

note that you need a commit from my fork to be able to use it (the __addonpath__ special setting is something i added). this also sit in wsnipex' work.

Oh nice! Need to test it out!

Need to backport the fixes I think Smile

Not sure how to handle the different shaders honestly. Could do one visualizer for each or presets. They are very different though but I think the preset way is the best.

One strange thing I noticed was that the fps of the visualizer seems to run lower than the rest of the UI, not sure if its capped to something video related (29.97 or something?) but it feels lots slower than 30ish fps.
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#53
yeah, definitely presets. i'd rename it shadertoy...

i get 60fps on this box on most of the shaders, 0 fps on the volumetricline ones (probably running in software..) these are workstation grade nvidias (NVS-310 based).

you won't be fed data that often though obviously so maybe the problem is some update thing and not a render thing?
Reply
#54
Picked this up a little bit again. I looked at your patches and since its for your build system I had to redo it so I hope merging isn't terrible for you now Smile
I rebased it ontop of master but just put a single patch so hopefully its not nightmarish Smile

Anyways, I've moved to latest shadertoy api and put in a few more I found and moved to presets. Starting to shape up.


Image
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#55
Nice topfs2! That looks amazing!

Is there any way of testing this on Windows machine with Helix?

Thanks in advance,
Rick
Reply
#56
Can I install it on the Raspberry Pi? (openelec)
Reply
#57
(2014-12-11, 23:08)topfs2 Wrote: So I realized there are some nice shaders over at shader toy, and they need quite little from us to do what they do. So I did a small trial on hooking in their shaders in a visualizer.

This is the result:
Image

The shader is available (and can be seen running without compilation) at https://www.shadertoy.com/view/XsX3zS

The code is available here https://github.com/topfs2/xbmc/tree/spectrum_shadertoy

cant get the link test to work, but this reminds me of the 70's and one groovy night of myself + very interesting German female and some lsd.
Reply
#58
(2015-05-03, 13:14)rwilleme Wrote: Is there any way of testing this on Windows machine with Helix?

This will most likely be OpenGL only, so Windows will miss out. The core visualizer should be simple to port to DirectX however all the shaders (which I take from ShaderToy) are glsl, and they are _not_ easy to port Smile

(2015-05-03, 15:35)OurJermain Wrote: Can I install it on the Raspberry Pi? (openelec)

Currently its using some OpenGL specifics but the shaders should be ready for RaspberryPI, so its mostly the core visualizer which needs porting. Any help on it would be appreciated, otherwise I hope to find time for doing it after I get all basics in.

However I wouldn't be surprised if many of the shaders are to heavy for the Raspberry PI. But it would be interesting to see results for sure.
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#59
So going back to the original question, is there anything to test? Smile

Running Linux here
Reply
#60
(2015-05-05, 11:28)zag Wrote: So going back to the original question, is there anything to test? Smile

Running Linux here

Its on my github https://github.com/topfs2/xbmc/tree/spectrum_shadertoy please try it out, its in a shape I can take bugreports Smile
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
  •   
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 13
  •   



Logout Mark Read Team Forum Stats Members Help
2D Spectrum, visualization0
This forum uses Lukasz Tkacz MyBB addons.