roman_44

WebGL color filters

Recommended Posts

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 :)))

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.