Logo by haltenny - Contribute your own Logo!


it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Follow us on Twitter
Welcome, Guest. Please login or register. September 20, 2020, 04:17:25 AM

Login with username, password and session length

The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!

Pages: [1]   Go Down
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: shadercap 1.0 release for windows  (Read 2143 times)
Description: tool to capture glsl shaders to video
0 Members and 2 Guests are viewing this topic.
« on: May 31, 2015, 05:26:00 PM »

As described here, this tool can capture GLSL shaders to .webm video.

It is available from the website. As mentioned, there is no support for textures yet.

The shader constants/parameters are:

  • fragCoord is the pixel position in normalized (-1 to 1) coordinates
  • iResolution stores the size (pixels) of the output image
  • iGlobalTime stores the elapsed time (seconds) of the animation

Here is an example of a shader program that can be rendered using ShaderCap:

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);

Please leave feedback or suggestions in this thread smiley

**** EDIT ****

The parameters are no longer hardcoded. Use gl_FragCoord instead of varying vec2 fragCoord.
« Last Edit: April 15, 2017, 02:27:38 AM by TruthSerum » Logged
« Reply #1 on: June 06, 2015, 05:50:46 PM »

I have added support for textures in version 1.1. You can download it here.

<a href="https://www.youtube.com/v/qooJLRNQE7I&rel=1&fs=1&hd=1" target="_blank">https://www.youtube.com/v/qooJLRNQE7I&rel=1&fs=1&hd=1</a>

Forums Newbie
Posts: 2

« Reply #2 on: June 07, 2015, 11:21:44 AM »

TruthSerum, very interesting proposal! That converter looks very handy. Is there any chance to take a look to the source code?

Thank you!  cheesy
« Reply #3 on: June 07, 2015, 07:13:57 PM »

Thanks for the feedback. The code is currently a bit messy and I've not written any build instructions yet. After that I plan to post it on GitHub so you could build a Linux version too.
Forums Newbie
Posts: 2

« Reply #4 on: June 12, 2015, 12:47:14 PM »

TruthSerum, that'd be great, can't wait, any progress so far?  cheesy

In any case, one little question if it's still far away to be open sourced, what's the QT functionality which allows you to write to video directly? IMHO, it's great which you don't need to dump single frames and then using some external software to composite the video, that's quite time consuming whether you end up creating multiple videos from some particular shader experiment.

Regards  afro
« Reply #5 on: June 12, 2015, 02:33:17 PM »

I've pushed it to GitHub and you can find it here.
Global Moderator
Fractal Senior
Posts: 1558

« Reply #6 on: June 12, 2015, 03:44:12 PM »

nice work! I hope I can learn something from this, maybe it can help me get fragmentarium off of QGLWidget and onto QOpenGLSurface to complete the move to Qt5
 A Beer Cup A Beer Cup A Beer Cup

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
« Reply #7 on: April 15, 2017, 02:27:13 AM »

Released version 1.2 to fix minor issue and upgrade to Qt 5.7

Pages: [1]   Go Down
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Strange behaviour found in Developer's release of FractInt for Windows v20.99.8 FractInt simon.snake 0 1489 Last post May 16, 2012, 12:41:01 AM
by simon.snake
Windows to Other Windows Images Showcase (Rate My Fractal) reactorman 0 464 Last post November 09, 2013, 12:20:58 AM
by reactorman
Windows Images Showcase (Rate My Fractal) alexl 2 743 Last post January 12, 2014, 03:07:07 AM
by Dinkydau
Windows is dead and windows 10 unsuitable for fravtal art what is next best OS? Help & Support « 1 2 » Karmic Beats 18 1214 Last post November 11, 2015, 08:50:14 PM
by 3dickulus
V1.8.9 and Windows 10 Help & Support Tjeb 0 206 Last post November 23, 2015, 08:35:33 AM
by Tjeb

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.12 seconds with 27 queries. (Pretty URLs adds 0.006s, 2q)