Skip to content
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

add pixel read feature #18

Closed
rogerallen opened this issue Oct 18, 2013 · 0 comments
Closed

add pixel read feature #18

rogerallen opened this issue Oct 18, 2013 · 0 comments

Comments

@rogerallen
Copy link
Member

From a discussion on the google group:
https://groups.google.com/forum/?fromgroups#!topic/overtone/cVIZKiZRuwk

Circu Virtu asks:

Some new questions pop into my mind:

Is there any way to get pixel data back from the shader into overtone (creating , controlling music from grafic data) ??

That's just a glReadPixels call, so it isn't too difficult to add. The amount of data could be significant, though and I'd like to hear more about how you'd intend to use it.

Good to hear that there is a possible solution. I'm not interested in getting all Pixel data. I'm most interested in just values of single pixels or means of small pixel areas. See them as sensors for brightness and/or color of the image.
The computing power of the shader is amazing. That way one can get data back to overtone to control parameters fro music.
And even better one then can create recursive/iterrative loops like: sound changes images -> images change sound -> sound changes images -> and so on.

Would love to have an easy to use interface to access glPixel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant