Pryme8 Posted October 7, 2016 Share Posted October 7, 2016 Is ther a way to blur the output of the active camera? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 7, 2016 Share Posted October 7, 2016 Yes:) you can use this: http://doc.babylonjs.com/tutorials/Using_depth-of-field_and_other_lens_effects or directly that: http://doc.babylonjs.com/classes/2.4/BlurPostProcess Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted October 7, 2016 Author Share Posted October 7, 2016 I love you long time. Now what about a color overlay? should I just use a html element or a canvas2d element that covers the camera and fades from 0 alpha to a full opaque color? Also can we do chromakeys? Quote Link to comment Share on other sites More sharing options...
dbawel Posted October 7, 2016 Share Posted October 7, 2016 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 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted October 7, 2016 Author Share Posted October 7, 2016 I guess I meant color correction, I already did a chromakey shader... umm I more ment LUT filters like: https://www.assetstore.unity3d.com/en/#!/content/18433 Sorry I had a lot going on today, so I spoke incorrectly. Quote Link to comment Share on other sites More sharing options...
adam Posted October 7, 2016 Share Posted October 7, 2016 7 hours ago, Pryme8 said: I love you long time. Full Metal Jacket? Pryme8 and NasimiAsl 2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 10, 2016 Share Posted October 10, 2016 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); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.