Jump to content

Radial or Gaussian Blur filter?


Pryme8
 Share

Recommended Posts

There is currently no simple method to pull a key from a video even using a container such as webm which supports an alpha channel. However, I was given this task briefly for a project which disappeared in a single day - however, I discovered that it shouldn't be that difficult (especially considering my familiarity with your skills) to pull a key by defining a color range. This was done using three.js some time ago, but the artcle written as well as the online demo provides a whole lot of insight into building such as shader and/or function.

http://makc.github.io/three.js/chromakey/

Another viable solution I also found valuable for review and info:

http://examples.hmp.is.it/chromakeycanvas.php

Cheers,

DB

Link to comment
Share on other sites

We directly support LUT in shader (Works with standard and PBR):

http://doc.babylonjs.com/overviews/Physically_Based_Rendering_Master#color-curves

But we also have convolution shaders:

var sepiaKernelMatrix = BABYLON.Matrix.FromValues(
                    0.393, 0.349, 0.272, 0,
                    0.769, 0.686, 0.534, 0,
                    0.189, 0.168, 0.131, 0,
                    0, 0, 0, 0
                );
var postProcess = new BABYLON.ConvolutionPostProcess("Sepia", sepiaKernelMatrix, 1.0, null, null, engine, true);

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...