Jump to content

WebGL color filters


roman_44
 Share

Recommended Posts

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!

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
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

 

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...