roman_44 Posted January 19, 2016 Share Posted January 19, 2016 Hey Babylon citizens! How it can be possible to implement filters like shown here: http://phoboslab.org/log/2013/11/fast-image-filters-with-webgl Library mentioned in this topic is for changing pictures. What do you think is it possible to create some kind of filters in Babylon? Thank you. Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted January 19, 2016 Share Posted January 19, 2016 you can do it by postprocess and mathematical contrast sample newcolor = pow(color, [contrast level] )/[correction color range] http://www.babylonjs-playground.com/#MIFHB#10 see this too : jerome 1 Quote Link to comment Share on other sites More sharing options...
jahow Posted January 19, 2016 Share Posted January 19, 2016 Hey, The convolution & color correction postprocesses will be perfect for that: http://doc.babylonjs.com/tutorials/How_to_use_PostProcesses#builtin-postprocesses jerome and roman_44 2 Quote Link to comment Share on other sites More sharing options...
kohai Posted January 19, 2016 Share Posted January 19, 2016 Or you can also look this way : https://github.com/evanw/glfx.js A webgl lib for image manipulation Quote Link to comment Share on other sites More sharing options...
roman_44 Posted January 19, 2016 Author Share Posted January 19, 2016 7 hours ago, jahow said: Hey, The convolution & color correction postprocesses will be perfect for that: http://doc.babylonjs.com/tutorials/How_to_use_PostProcesses#builtin-postprocesses Thank you all guys for your help. This answer looks like exactly what I need. I will try to implement this, and will let you see the results. Thanks! Quote Link to comment Share on other sites More sharing options...
roman_44 Posted February 3, 2016 Author Share Posted February 3, 2016 Hey, Babylon citizens. Is it hart to put functionality of this javascript library to Babylon? http://evanw.github.io/glfx.js/demo/ This guys made something like this in Three.js https://github.com/spite/Wagner And that would be super cool to have this functionality in Babylon. I'm using postProcesses for now from Babylon http://doc.babylonjs.com/tutorials/How_to_use_PostProcesses#builtin-postprocesses but I have to create all this effects from http://evanw.github.io/glfx.js/demo/ by myself, and I don't know how to do that :))) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 3, 2016 Share Posted February 3, 2016 Some of them can be done with the convolution shader easily. For instance edgeDetect, sharpen, emboss, gaussian can be done in one line: https://github.com/BabylonJS/Babylon.js/blob/master/src/PostProcess/babylon.convolutionPostProcess.ts#L14 Sepia here: https://github.com/BabylonJS/Samples/blob/97db092191af2bddc2f3c0b98b6dc98c9e6a4456/Demos/Train/demo.js#L29 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.