Page 1 of 2

Convert GSLS for FFGL for Resolume?

Posted: Sat Feb 24, 2018 08:06
by rdpozo
Hi,

I have been using Max/MSP Jitter for a lot of years, before I discovered Resolume. Life was just made simple.
But in my artistic expression I have grown very dependant on some effects, which I tried to port to FFGL my self without luck. I simply do not understand this language. It is a bit over my head.

I was wondering if there would be anyone on this forum that would help me port 3 effekts. Attached are the GSLS code.

I do not know how much work this would entail, but I would greatly appreciate the effort.

A slide effect: https://www.dropbox.com/s/v1eq2lrc8ktqo ... e.txt?dl=0
A Brightness, contrast and alpha effect: https://www.dropbox.com/s/pk571xty1yavb ... a.txt?dl=0
An ergebend and gamma effect: https://www.dropbox.com/s/v87dddmncdz3g ... B.txt?dl=0

Thanks for reading :)

Re: Convert GSLS for FFGL for Resolume?

Posted: Fri Mar 02, 2018 13:47
by francoe
rdpozo, first link is wrong, check it out.
Do you undestand these shaders? Can you port it to shadertoy?

Re: Convert GSLS for FFGL for Resolume?

Posted: Sat Mar 03, 2018 16:05
by Sadler
I've tried my best with the CBS plugin though it interprets black as alpha. See if it is the same effect as you were expecting. 0.5 is the baseline for each parameter. 64 bit.
Contrast_Brightness_Saturation.rar
(79.38 KiB) Downloaded 1264 times

Re: Convert GSLS for FFGL for Resolume?

Posted: Mon Mar 05, 2018 03:52
by francoe
Sadler, can you share the code?
rdpozo, can you point out what's the interest in this process compared to the brightness/contrast filter bundled on resolume?
Here is running on shadertoy, play with it.
https://www.shadertoy.com/view/XdtcWj
I can compile an ffgl with that for osx if you need.

Re: Convert GSLS for FFGL for Resolume?

Posted: Mon Mar 05, 2018 18:23
by rdpozo
WOW!
@Sadler! Thanks for taking the time. I really appreciate it. I'll test it today.
@Francoe, I dont understand the shaders, if you mean the coding. I'm not sure what shader toy is.
I'll check out your link. Thank you for getting involved.

Re: Convert GSLS for FFGL for Resolume?

Posted: Mon Mar 05, 2018 18:25
by rdpozo
eh, how do I install it? I'm on Mac. I'm pretty new to Resolume.

Re: Convert GSLS for FFGL for Resolume?

Posted: Mon Mar 05, 2018 20:17
by francoe
rdpozo wrote:eh, how do I install it? I'm on Mac. I'm pretty new to Resolume.
Sadler's file is for windows.
Again - 1. I don't know what's the difference of using this code instead of brightness/contrast and saturation filters of resolume. Can you explain it? (I will try to post a mac ffgl later to see if that's you want).

Again - 2. The slider fx link is wrong, check it out.

In third place, I was dealing with the alpha gradient without success. Can you show me a simple screenshot of an image with that filter applied? I wanna figure out what we are trying to achieve.

Re: Convert GSLS for FFGL for Resolume?

Posted: Mon Mar 05, 2018 22:19
by francoe
Try this.
https://drive.google.com/open?id=1Qofls ... wzrfZOK3AW
I still canĀ“t undestand what is the pretended process with the alpha channel (green values multiplied by 1).

Re: Convert GSLS for FFGL for Resolume?

Posted: Tue Mar 06, 2018 19:09
by rdpozo
francoe wrote:
rdpozo wrote:eh, how do I install it? I'm on Mac. I'm pretty new to Resolume.
Sadler's file is for windows.
Again - 1. I don't know what's the difference of using this code instead of brightness/contrast and saturation filters of resolume. Can you explain it? (I will try to post a mac ffgl later to see if that's you want).

Again - 2. The slider fx link is wrong, check it out.

In third place, I was dealing with the alpha gradient without success. Can you show me a simple screenshot of an image with that filter applied? I wanna figure out what we are trying to achieve.
Hi there Francoe. Thanks for letting me know. I fixed the link.

What I have used brightness/contrast for is that it treats black as alpha, so if you have two video layers everything black would be transparent.


Here is an example image of 2 layers of video. One static with only background colours and the other of some flowers/trees.

Thanks for trying to help me out. I really appreciate it.

Re: Convert GSLS for FFGL for Resolume?

Posted: Wed Mar 07, 2018 19:59
by francoe
Ok. In fact, your code is taking values from green channel and assign it to alpha. I will check how to improve it (you can see right now is just making the whole thing semitransparent, needs to ramp the values).
Are you aware that you can have that using the blend modes, right?
Lighten, Luma is Alpha and Lumakey can be your new friends. :D