Logo by slon_ru - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

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: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. September 20, 2019, 09:25:30 PM


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
  Print  
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 1842 times)
Description: tool to capture glsl shaders to video
0 Members and 1 Guest are viewing this topic.
TruthSerum
Guest
« 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:

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

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
TruthSerum
Guest
« 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>

Logged
Spscener84
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
Logged
TruthSerum
Guest
« 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.
Logged
Spscener84
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
Logged
TruthSerum
Guest
« Reply #5 on: June 12, 2015, 02:33:17 PM »

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



WWW
« 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
Logged

Resistance is fertile...
You will be illuminated!

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

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

http://sigint9.github.io/shadercap/
Logged
Pages: [1]   Go Down
  Print  
 
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 1370 Last post May 16, 2012, 12:41:01 AM
by simon.snake
Windows to Other Windows Images Showcase (Rate My Fractal) reactorman 0 415 Last post November 09, 2013, 12:20:58 AM
by reactorman
Windows Images Showcase (Rate My Fractal) alexl 2 650 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 1141 Last post November 11, 2015, 08:50:14 PM
by 3dickulus
V1.8.9 and Windows 10 Help & Support Tjeb 0 174 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.139 seconds with 27 queries. (Pretty URLs adds 0.01s, 2q)