Anyone implement a motion blur shader?


#1

I am recreating a game from the original xbox and I believe one of the post processing effects used motion blur. I could be wrong though. Here is a screenshot.


#2

Is that Soul Reaver? :slight_smile:

About the blur: did you try a search?


#3

Yes it’s Soul Reaver.

I did find some results but some of the links were broken.


#4

Is this not the motion blur you’re looking for?



#5

They did a good job on the motion blur. After running the demo that effect does not seem like the one in the picture above. The picture above looks like it uses a overblown blur shader, but it is hard to tell.


#6

Okay so after lowering the samples in the shader I got something closer to my screenshot above. However I wonder what would be the best way to make it constant. The effect in the demo is applied to movement and not constant. Which is what motion blur is really for.


#7

I believe this type of yearly 2000s motion blur is done by adding new frame on top of previos one. What renderpath are you using?


#8

I am using direct3d9.


#9

Oh ok, nevermind. I just made it but for openGL. Sorry, I don’t have dx version ready at hand.

You have to convert copyblur.glsl to hlsl. Should be easy. I just took CopyFramebuffer and added a few lines.
Here how it looks like, I hope that’s what you are looking for. You can also try different blending methods.


#11

@Bananaft What he said.
And if you intend to enslave all of humanity, be sure to add a stereoscopic option. People would donate blood just to walk around in that. :pill:
If you plan on making it open source, btw, I’d love to contribute. :slight_smile:


#12

Thank you. You already contributed by contributing Urho.


#13

Looks great. How much would I have to change for it to work on direct3d9. The shader will not be hard for me to adapt. I have a lot of experience with hlsl.


#14

just convert the shader and it should work.