pouët.net

tool to capture glsl shaders to video

category: code [glöplog]
 
I made a tool called ShaderCap for recording video's of shaders. It is for Windows, but runs on Linux under Wine.

Here are a few captures I made from ShaderToy shaders (see video descriptions):

Emerging by Kali
Tokyo by reinder
SoftShadowTest by me

They are all 720p@60hz. I hope other people find this useful!

Here is a simple example shader that shows you what shader constants are available:

Code:uniform float iGlobalTime; uniform vec2 iResolution; varying vec2 fragCoord; void main() {  vec2 uv = fragCoord.xy * 0.5 + 0.5;  gl_FragColor = vec4(uv,0.5+0.5*sin(iGlobalTime),1.0); }
added on the 2015-06-01 01:58:16 by dila dila
version 1.1 supports binding textures to samplers you can see a video demonstration here

BB Image

BB Image
added on the 2015-06-06 17:37:06 by dila dila
Nice work! I have such a crappy graphics card on my computer that I can't get Shadertoy effects running efficiently..
added on the 2015-06-07 12:26:02 by rage rage
Thanks. I found that the ShaderToy API FAQ gives you the URL for the textures (tex00.jpg through tex16.png - not all of them are .jpg).
added on the 2015-06-07 19:10:46 by dila dila
Up.

Made something similar with shader-capture: https://github.com/p0nce/shader-capture
You'll have to build it yourself, on the other hand it is portable across OS X/Windows/Linux.

It captures a GLSL fragment shader (made from http://glslsandbox.com/) into a 4:4:4 Y4M file.

Some videos:
https://www.youtube.com/watch?v=SNVEzs1aUFQ
https://www.youtube.com/watch?v=A-J8IL7-Vk4

It supports oversampling which can be helpful.
added on the 2016-05-23 23:55:40 by ponce ponce

login