Night Vision Filter Available in ShaderBlow Plugin

A night vision filter is now available in the ShaderBlow Plugin, it was adapted from here:

Usage:

[java]
NightVisionFilter nightVisFilter = new NightVisionFilter();

// Create a green filter
nightVisFilter.setColor(new ColorRGBA(0.0f, 1.0f, 0.0f, 1.0f));

// Create Noise and mask textures
nightVisFilter.setNoiseTexture(assetManager.loadTexture(“TestTextures/NightVision/Noise.png”));
nightVisFilter.setMaskTexture(assetManager.loadTexture(“TestTextures/NightVision/BinocularsMask.png”));

fpp.addFilter(nightVisFilter);
viewPort.addProcessor(fpp);[/java]

As this was the first filter I have wrote, I used the structure of the ColorScaleFilter as the basis for it

8 Likes

kewl!

1 Like

OMG!!! It’s super cool!!!
You rock!

1 Like

Also, did you check this effect like in Predator movie?
http://www.geeks3d.com/20101123/shader-library-predators-thermal-vision-post-processing-filter-glsl/

1 Like

and done:
http://hub.jmonkeyengine.org/forum/topic/predator-thermal-vision-filter-available-in-the-shaderblow-plugin/