Image Motion Blur in progress

Hey guys,after many sleepless nights I’ve got actual per-object motion blur running in Unity :slight_smile:
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!

WIN Versionhttp://multivac.webege.com/win.html

MAC Versionhttp://multivac.webege.com/mac.html

370946--12856--$capture_141.jpg

Would it be possible to make a version that blurs an object everytime?

Wich would be usefull for when aiming down the sights of a gun.

The webplayer was really smooth here. And looked awesome.

nvidia 9500GT

coin-god, you’re thinking of depth of field. As far as I know that image effect is already included in Unity 2.6.

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.

But dosn’t seem to work well with 2 cameras.

Looks cool in the screenshot. When I run it the blur seems odd, sort of randomly half the object or not at all.
I’m running an NVidia GTX260

Check this out made for the Ogre engine. Has shader source code, works quite nicely
http://www.ogre3d.org/forums/viewtopic.php?f=11&t=27723

Tested on my Macbook Pro (x1600) and you’re right, it doesn’t work.

looks/runs great on my 8800GT

Runs fantastically on my GT240. Great work!

runs great on my ATI HD 5770 too

Nvidia GX 8600 works perfectly. Very nice indeed!!

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.

Mac plz.

i second that :smile:

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.

http://www.creativecodingstudios.com/Unity/88.196.108.214/4.html

Looks really really good and runs great.

GeForce GTS 250 here.

Three things:
1- Looks great. I’m curious what the effect it gives off would like like as a heat effect (eg- blurs motion in extremely heated area’s)

2- gg on going around the ban :stuck_out_tongue:

3- When did you get unity pro? :slight_smile:

Fantastic effect mate… Great work…
Looking forward to test in my project… :wink:

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.

I think you are confusing me with someone else :?

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.