Game Development Community

Motion blur for T3D

by Michael Roberts 13 · in Torque 3D Beginner · 01/30/2015 (12:11 pm) · 5 replies

Hey everyone its me again and i've got a question about t3d.I need help to apply motion blur(i think that's what its called) like in cryengine for t3d.Its like moving the camera you see a blur.
Thanks in advance Michael.

About the author

13 year old teen,n00b scriptor but skillful in 3d artists.Gamer 4 life


#1
01/30/2015 (3:32 pm)
Basic Camera based motion blur is already in Game/Core/Scripts/Client/PostFx folder. Just open the MotionBlurFx.cs file and enable it in the script.

Ron
#2
01/30/2015 (5:45 pm)
Yes, it is there, but it does not work so good that you can use it like that. For example blur is only on, on player movement, not on mouse movement, so you can swing your view around as fast as you want and get no blur, while getting blur while just walking normal.
#3
01/30/2015 (7:12 pm)
It's based on camera movement. Go into game/core/scripts/client/postFX and open the MotionBlurFX.cs and lower $velocityMultiplier to get a more pronounced blur.

%this.setShaderConst( "$velocityMultiplier", 1000 );

I just lowered it to see what was going on and it appears to try to create a sort of Far Cry-like blur. I think you would need a whole new shader for that.

#4
01/31/2015 (3:15 am)
No, it is not, you can even set it to 1 and will not notice any distortion while moving the mouse as fast as you like, but once you press the walk key for a moment everything becomes heavily distorted.
I just noticed backwards movement is also broken with this effect.
#5
01/31/2015 (7:44 am)
That's strange, I get distortion on camera movement. Going to 3rd person it even distorts my character. I admit it doesn't look very good, more like tracers then blur.

About the backwards movement, try getting in the Cheetah and drive backwards. I can see why it is disabled on default.

The code seems to be based on this.

http.developer.nvidia.com/GPUGems3/gpugems3_ch27.html

So it's too bad the blur in that screen shot can't be produced in T3D. It's almost like it's skipping.