🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Motion Blur Video

Published August 27, 2006
Advertisement
Hey guys...I've uploaded a small 6MB video of the motion blur effect I'm working on. The video compression pretty much ruins the effect though :-/ short of uploading a 100MB uncompressed frame dump...I'll keep looking for a better video compression algorithm (this one uses MPEG4-V2). It's funny, that encoding the motion blur video using MPEG4-V1 seemed to play all kinds of tricks with the compression...its like the codec is detecting the similarities created by the motion blur, and canceling out that whole area to save data.

Anyways here's the download link to the aptly named video file:

[EDIT: Framerate is kinda fast in this video...[/EDIT]
Download Gang_War_Motion_Blur_Work_In_Progress.avi

I realize it's probably futile to post screenshots of this effect, but here's one anyways ;-) Also notice the window reflections which can be adjusted per-texel with reflection maps. These screenshots are grabbed from the video above.

Camera is moving backwards in this one, try to imagine it lol


Rest assured it looks very cool in the game, I'm still working on removing a few artifacts though...as well as add support for motion blur on moving skinned meshes (should be done tonight, just gotta write a couple of new shaders)...but overall I'm happy with it.

Back to work. I'll try to get some better screenshots of the effect.

- Dan

Edit - OK last edit for the night lol

I thought this screenshot was cool and should show you guys all the samples this blur shader is taking, it has a lot of potential...I'm already loving it in-game, I need to clamp it, and get it to work on moving models and it'll be great...doing this at 1280x1024 does kinda slaughter the framerate though lol. It's still playable [grin].

Obviously the blur isn't this intense at all times, it works on a per-pixel basis, using velocity buffers, which track the movement of each pixel between frames.
0 likes 14 comments

Comments

ildave1
Whoah... That screen is screwing with my eyes, hardcore... Nice... I think...
August 27, 2006 10:54 PM
dgreen02
Lol...Imagine how mine feel after messing with this stuff for a day or two.

But like I said this effect probably isn't going to be screenshot material...though it looks fantastic in-game. Screenshots tend to look...errrr...blurry [grin].

- Dan
August 27, 2006 10:58 PM
Trapper Zoid
That screenshot makes me want to see an optometrist.

I can't see the video, but judging from the screenshots I can image how well that effect works in motion. It should be pretty sweet! Although I too am doubting that it would work well on my mediocre hardware [sad]
August 27, 2006 11:09 PM
dgreen02
Sorry to hear the video didn't work...I've edited the entry and posted a link to the codec you should need, also I've uploaded a new video with the proper frame rate so it doesn't run so fast, and you can see the effect a little better.

[edit] Took the links down because the 2nd video doesn't seem to work on my other machines. This is lame, I can create a game by myself...but I can't upload a fucking video that works on everyones computer lol. I'll try again later, I'm tired of working right now.

Let me know if the video works for those who tried it.

- Dan
August 27, 2006 11:29 PM
frecco2k
works perfectly for me.
it looks damn good in motion, and i realy like the reflections

//fredrik
August 28, 2006 02:14 AM
Trapper Zoid
Oops, I should have been given more explanation. I'm sure your AVI codecs are fine, but I can't see the video because I generally don't download movie files over the web, especially at the moment when I'm in my research department right now. They're generally pretty cool about using the Internet for non-research related tasks, but to me downloading large movie files is pushing their generosity a little too far [smile].
August 28, 2006 03:12 AM
dgreen02
It's cool, just scope out the top/header of my journal...it's there in .gif format now. How's that for a solution?

Avi->Gif programs are the devils work. I think it came out alright for a ~1MB file, about the same as a large high-res screenshot. Luckily I've got unlimited bandwidth on my web server :-)

- Dan
August 28, 2006 03:19 AM
sirob
I must say, the reflections are even more impressive than the motion blur [smile]. Looks amazing - great job.
August 28, 2006 03:27 AM
ApochPiQ
You.


Me.


Manbabies.



NOW.
August 28, 2006 03:39 AM
Will F
Quote: Original post by ApochPiQ
You.


Me.


Manbabies.



NOW.


August 28, 2006 03:46 AM
dgreen02
Lol ApochPiQ.

Glad you like it sirob :-)

I added another image to the post, higher resolution, showing how the blur is working. I should just create another entry with all these edits ;-).

I'm still tweaking the reflections, but I'm liking them already. I've found just using a static cubemap with interesting lighting provides pretty decent results, though I was shooting for true real time reflections. It'll be nearly impossible with this # of buildings. I was going to try some things like spacing cubemap samples over the entire city, and doing a lookup...I don't know, it'd be tough.

Alright....I must force myself to stop working on all this, and sleep.

- Dan
August 28, 2006 03:48 AM
caffeineaddict
It looks great! I have to admit though, I was watching the reflections and other bits in the video (like the smoke from the factory) more than the motion blur [smile].
August 28, 2006 01:48 PM
Programmer16
I think it adds a really nice effect. Good work!
August 29, 2006 12:32 AM
roel
Impressive, as always :) And with all new effects (like the lensflare in the past, bloom effect, etc.): you really need to balance it carefully, but you know that ofcourse ;)
Can't wait for the beta-test :)
August 29, 2006 04:58 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement