cyberboy666 / r_e_c_u_r

an open diy py/pi based video sampler
GNU General Public License v3.0
279 stars 19 forks source link

template and guide to writing first shaders #77

Open cyberboy666 opened 6 years ago

cyberboy666 commented 6 years ago

this is partially already documented in conjur repo , but might be a bit highlevel for someone interested in writing their first shader, it should include:

sebiik commented 5 years ago

I'm curious where you'd want to set up the shader deving environment. Add an option in recur to start glslviewer mode on the pi so you could connect a USB keyboard and develop from there?

cyberboy666 commented 5 years ago

@sebiik , yeah - i was thinking basically some instructions on how to edit a shader on the pi, (probably dont need a option to start glslviewer from within recur at first although that would be cool!), something like:

do you have any ideas on how to ease the entry for people customising there own video-effects etc ?

averagehat commented 4 years ago

If using ssh #110 works well;

One thing about just using glslViewer is that you have to supply something for the (midi) param values or else a lot of the shaders won't really work.

By being connected to the pi, I can use my own editing environment on a different machine (and even use glslViewer there as a single-shader preview, though there is still the param values problem) and get good live feedback for learning, especially helpful with the 2-input shaders which I don't even know how to create with glslViewer or anything else.

I will make a special effort to document my learning and if it works out I can put together some documentation about editing environment, ssh setup, glsl, whatever.

There is already a bit of documentation and templating here: https://github.com/langolierz/r_e_c_u_r/blob/9935f1a98bf308b1563e54ca8551ac16854bda9e/Shaders/2-input/mix_lumaKey.frag

konsumer commented 1 month ago

On this angle, I added these (discussed in #152 )

While working on these I also:

Feel free to use these here (let me know, and I will make a PR for shaders.)