Using WebGL from Mosh with GLSL shader
-
Hello,
This may be way over my head, but id figured I would ask anyways...
I really enjoy the effects from PhotoMosh - they're all awesome. PhotoMosh uses WebGL effects to alter the video. My question is, how can I copy or find the WebGL code used in PhotoMosh and use them as GLSL actors in Isadora. Where is the code? Is it even accessible? Are WebGL source codes shared? Am I on the right track? I am completely new to this.
I recently just went through this GLSL Shader Actor Tutorial - which is great for anyone new to using the GLSL actor. So I do have some very basic understanding.
Any tips / advice on how this could be done?Thanks!
Jesse
-
Hi @jessemelansonart ,
Photomosh website is using many different effects. Some of these effects are already available in isadora, you can find some others as shaders on shadertoy for example.
I think the good way is to break down the effects you're looking for
-
The code is all there in two javascript resources, which I could find by choosing "Inspect Element" and looking at the resources. They are called lib.min.js and main.min.js... but, after inspecting them, I can say that separating them to give you different effects is a job for someone who knows how to code. If that's not your cup of tea, then you might find it difficult.
Best Wishes,
Mark -
@maxime Thanks for the response. Shadertoy is really cool and I am looking more into it - however I do receive a lot of syntax errors...
In photo mosh I enjoy the different variations you can create when combining the RGB Shift effect. Is there an actor in Isadora that works similarly? -
@mark Thanks Mark, Im going to find those javascript resources and see what I can understand.
-
@jessemelansonart said:
In photo mosh I enjoy the different variations you can create when combining the RGB Shift effect. Is there an actor in Isadora that works similarly?
That effect is particularly simple, so I built the shader for you. See the GLSL Plugin in the attached Isadora file.
Best Wishes,
Markrgb-shift.izz.zip (requires v2.6.1)
-
@mark Wow! Thanks Mark!
-
Perhaps that shader should be added to the TT_ shaders bundle?
-
@dusx Where can I find the TT_shaders bundle?