motion blur...

hi everybody

i know that the MotionBlure effect is a camera effect and it must be on the camera object to affect the scene…

my question is :
is there a way to apply the motion blur on a certain objects, or prevent the motion blur from an object and let it affect other? maybe a script or make it affect certain layer??

anyone could help with that?

You could render these objects with a replacement shader to a renderTexture (giving the objects you want to exclude from motionblur a certain color and leave the rest black for instance) and use the result as a mask for your motionblur effect.

But with heavy motionblur, you will get artefacts at the borders of your “non-motionblur-object”.

More interessting would be a “real” motionblur shader, not just blending several frames together. But I guess thats quiet expensive!? Has anybody done this with Unity?

WARNING! OFF TOPICish POST!
F.E.A.R. 2 has the nicest ‘real’ motionblur effect I’ve seen in-game, so far (they also have nice volumetric lights at some places) and it performs pretty well on my iMac (3GHz Dual Core, 512MB NVidia). I guess it’s a question of optimization. It certeinly isn’t a cheap effect… true that.

The funny thing about FEAR’s performance is also that the most expensive FPS draining effect right after the realTime AO is the simple film-grain effect.

motion blur actually is a very cheap effect rendering wise compared to others.

The real hurdle with motion blur comes on Windows with SLI / CrossFire because the common way to achieve motion blur will kill the performance completely in SLI / CF environments

motion blur