I’m not sure if this shader already exists or how hard it’d be to do in jME3… thought I’d get some suggestions before spending lots of time trying to implement it. I’d like a form of blur that overlays the previous few frames (in increasing transparency) on top of the current one, kinda like 6:40-6:50 in this video:
That’s motion blur yes.
I still have 2 implementations that have been posted here, one by kwando and the other by phate666 who left the community.
Both are nice but basic. They just account for the camera movements, so basically if the camera stays still, nothing happens.
You can try them as a basis
here is phate’s implementation that I modified so that it performs faster http://hub.jmonkeyengine.org/forum/topic/22968/#post-157830
Getting a “proper” motion blur involves rendering a velocity texture of the scene (of course this fits better in a deferred rendering process, but can be done in a forward one). This texture is the representation of the movement of objects on screen since last frame.
You’ll find more information on the technique if you search for “glsl motion blur based on velocity” or things like that.
EDIT : maybe this one can help, not sure it’s complete though Mostly Programming
it uses a different approach, by only storing the previous frame’s model view projection matrix ( our WorldViewProjectionMatrix)