Jump to content

Transparent background on videos with chromakey (green background)


Recommended Posts

9 hours ago, Pryme8 said:

Like I said in the other post, it needs a tolerance value in your algo to be effective; but great start!

There's no perfect chroma key colors in videos on the web. Those videos requires to have the exact chroma key background with RGB 0,255,0. This is why I added a conditional algorithm to check the variance of green color. This condition should work with most of light green colors. 

if (r >= 0 && g >= 230 && b <= 100)

Link to comment
Share on other sites

2 hours ago, NasimiAsl said:

very nice idea  i try it in GPU

http://www.babylonjs-playground.com/#P75330#8 alpha

http://www.babylonjs-playground.com/#P75330#9 discard

https://www.babylonjs-playground.com/#P75330#12 shaderBuilder (parametric 249 in 255)


Excellent.. You made it so great. Thanks. I will use your solution too..


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.

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.


  • Recently Browsing   0 members

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