Hey guys,after many sleepless nights I’ve got actual per-object motion blur running in Unity
It takes the transforms of previous frames and computes a velocity buffer based on that,which is used to blur the scene.
The scene also has camera-based motion blur,so you get blur from moving objects and also from moving your camera fast.
I’d like to see if this test even runs on any computers besides mine,so please test this scene out and report back!
I can see the use of this when aiming down the sites of a gun. Not so much for the actual aiming, but slightly blurring the animation of the gun being raised. If used subtly enough, it might make for a good effect.
The above could be a bit wasteful on resources, but then again it’s only for a second or two at most.
runs very smooth in a Radeon HD 4850. The effect is almos unnoticeable in the gun when you get “far” from it. The effect when the camera moves is fantastic.
Update : The blur strength is now controlled by distance to the camera and clamped.Also,every enabled object has a tweakable blurriness multiplier.
I am horribly inadept at debugging platform differences between OpenGL and Dx3d9,but Mac version is definitely planned.
The uneven blurring on the propeller is an odd bug with motion texture thats unexpectedly tricky to solve,if done,it will form a smooth disc as it should.
Looks great - any chance you’ll release this effect later on? Would love to test it, though I’m pretty sure this is gonna trash the framerate on 1080p.
thomas,its a post-processing effect,so the framerate takes a fixed hit.On 1366*768 it adds about one ms to rendering time,so its not that bad.
I’m now working on supporting skinned meshes,Mac bugfixing comes after that.