-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
continous action (eg. for visualisation, screensaver) of boblight would be nice.... #2
Comments
Yeah that would be nice :) |
I'd love this too. Shouldn't this xbmc/xbmc#448 have made it possible? |
No 448 only gives us boblight information during video rendering (thats what this addon uses). This request is not possible atm nor did we find a suitable idea on how to realise it yet. (and we talked alot about it already - so its unlikly that anything you could propose will help us - if you are not really into the XBMC code ...) |
Ok. I'd be interested in a technical explanation. A link to the discussion / user group would suffice. |
We render a videoframe to a 64x64 pixels image and read that back from opengl, this works quite well because rendering a single videoframe is very fast, however if we want the entire gui we either have to render the entire gui to 64x64 pixels, or copy the backbuffer to a texture, both operations take a lot of resources. |
Thanks for the explanation! Obviously re-rendering the GUI would be too slow. I can't imagine copying 4kB from the backbuffer/PBO/FBO? is that slow. I shouldn't take more than a couple of milliseconds max. Is it bacause of the buffer/state changes? If bandwidth is the limiting factor the shader approach might help... |
...well. 16k, but anyway ;) |
Don't want to be nagging, but I've whipped up some example code and ran some test, which I've summed up here: http://lektiondestages.blogspot.de/2013/01/reading-opengl-backbuffer-to-system.html I'd love to hear what you think about this. |
Oh and regarding extra memory usage: You actually only need the downsampled framebuffer resp. the texture for that, which is not much (I've updated the blog + code to reflect that). Space in system memory for the downsampled data should already have been reserved anyway... |
The examples now builds and runs in Windows (WGL), Ubuntu (GLX) and Raspian (EGL). Impact is minimal on most systems as you can see from the benchmark results... |
@HorstBaerbel was there any more progress on this? I am guessing you don't know how to integrate your idea into XBMC core? |
Correct. There's a discussion about it here too. |
Thanks for info! |
especially for ProjecM-fans on listening music and watching boblight ;) it would be nice to implement this function.
The text was updated successfully, but these errors were encountered: