Simple Motion Blur 1.03a - Faster recovery

Simple Motion Blur 1.03a - Faster recovery

Postby Pixel Eater » Tue Dec 04, 2018 11:13 pm

Motion blur with adjustable quality:


Strength is how far the blur stretches
Recovery is how long it stays on screen
Samples are how smoothly it blurs

For best performance I recommend setting vid_vsync to false.
(I gained nearly 20fps on the VSync diet!)

MBlur1.03a.pk3
(2.3 KiB) Downloaded 23 times

Spoiler: Changes
Spoiler: Break open in case of emergency
Last edited by Pixel Eater on Fri Dec 14, 2018 1:29 am, edited 5 times in total.
User avatar
Pixel Eater
I sense evil I fear it here today, Like a bad dream that never goes away -MBerry
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Simple Motion Blur

Postby Caligari87 » Wed Dec 05, 2018 10:35 am

This looks really cool. Setting samples and recovery to max actually looks pretty good, even masking lower framerates a little.

Couple little niggles: If recovery is set to zero then the blur never goes away. It's a cool trippy effect but might be worth clamping that to some sane minimum. While turning is fine, pitch seems herky-jerky somehow.

I could see variations on this being useful for various status effects like stunning or something. Are you planning on adding movement blur (I imagine this could be done with a zoom blur, with the "center" point adjusted by the player's velocity vector)?

8-)
User avatar
Caligari87
I'm just here for the community
User Accounts Assistant
 
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089

Re: Simple Motion Blur

Postby Nash » Wed Dec 05, 2018 11:52 am

Very cool! At its default settings, it's subtle enough to notice it's "just" there.

Would love to see movement blur too, or even object blur (though I'm not sure how that would be achieved).

Oh and by the way -

Might want to change all INPUT_PITCH/YAW to MODINPUT_PITCH/YAW because the latter takes into account if the player is frozen. I vaguely remember you said this was slightly based off my weapon sway mod (or was it Tilt++?) and all released versions of my mods currently don't have this fix yet (which obviously causes weirdness when the player is frozen).
User avatar
Nash
Nash Muhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Re: Simple Motion Blur 1.01

Postby Pixel Eater » Thu Dec 06, 2018 7:32 am

Thanks for the great suggestions :)
I’ve set the minimum recovery to 10 and hopefully corrected the pitch jankiness. It's also now using MODINPUT_* instead.

And yeah Weapon Sway is where the ideas for how to treat the player input come from. I would have been trying to use the player angle and pitch otherwise :3:

Before I even attempt to introduce player-directional blur though I would like to figure out how to remove that clamp function from the 'for' loop in the shader. If I can predict and limit the repeats to when they encounter the screen boundaries instead, I'd be much happier :?
User avatar
Pixel Eater
I sense evil I fear it here today, Like a bad dream that never goes away -MBerry
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Simple Motion Blur 1.02 - Performance update

Postby Tormentor667 » Tue Dec 11, 2018 4:16 pm

I tried it and it seems pretty good already but not perfect. I think at the end of the recovery, the movement isn't right, it feels if as soon as you stop moving the mouseview, the sight is still moving. It's hard to explain to be honest, but it doesn't feel right yet. Does anyone know what I mean? :-D

If it'd work perfect, I'd consider adding it to Blade of Agony.
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: Simple Motion Blur 1.02 - Performance update

Postby Nash » Wed Dec 12, 2018 4:06 pm

There seems to be some nasty VM abort in multiplayer...
User avatar
Nash
Nash Muhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Re: Simple Motion Blur 1.02 - Performance update

Postby Pixel Eater » Wed Dec 12, 2018 5:02 pm

Oh dip- I was just about to upload 1.03 as well. Will check into that first...

I've been trying to PM you Nash but I'm getting blocked here and on Discord. Basically it was just to say 'affirmative' though :)
User avatar
Pixel Eater
I sense evil I fear it here today, Like a bad dream that never goes away -MBerry
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Simple Motion Blur 1.02 - Performance update

Postby Nash » Wed Dec 12, 2018 7:39 pm

Pixel Eater wrote:Oh dip- I was just about to upload 1.03 as well. Will check into that first...

I've been trying to PM you Nash but I'm getting blocked here and on Discord. Basically it was just to say 'affirmative' though :)


Woops! Looks like I accidentally went overboard with those privacy settings. I'll add you as a friend on Discord. :D
User avatar
Nash
Nash Muhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Re: Simple Motion Blur 1.03 - Faster recovery

Postby Pixel Eater » Wed Dec 12, 2018 8:11 pm

Ha ha, no worries and thanks Nash :thumb:

Tormentor667 wrote:Does anyone know what I mean? :-D

I think I do! Does the Auto stop help it for you?
User avatar
Pixel Eater
I sense evil I fear it here today, Like a bad dream that never goes away -MBerry
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Simple Motion Blur 1.03 - Faster recovery

Postby Nash » Wed Dec 12, 2018 8:37 pm

Sorry I wasn't clear enough with my report on the VM abort in multiplayer -

Specifically, it happens when one of the players exit the game. The remaining player in the game will get the VM abort.
User avatar
Nash
Nash Muhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Re: Simple Motion Blur 1.03 - Faster recovery

Postby Pixel Eater » Wed Dec 12, 2018 9:18 pm

Still in 1.03? Damn, I'll keep brainstorming then :o
User avatar
Pixel Eater
I sense evil I fear it here today, Like a bad dream that never goes away -MBerry
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Simple Motion Blur 1.03 - Faster recovery

Postby Nash » Thu Dec 13, 2018 12:07 am

Oh my bad, 1.03 fixes the VM abort when a player quits in multiplayer. Thanks!
User avatar
Nash
Nash Muhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Re: Simple Motion Blur 1.03 - Faster recovery

Postby Grigori » Thu Dec 13, 2018 12:33 pm

Lighten gives blur directionality, but in the same direction as camera. Is it possible to "invert" that behaviour? Also maybe cap Strength to 8 - 512? :P
User avatar
Grigori
 
Joined: 05 Sep 2011
Discord: Agitatio#4183

Re: Simple Motion Blur 1.03 - Faster recovery

Postby Pixel Eater » Thu Dec 13, 2018 4:46 pm

@Nash: Ah, thank the hells :D

Grigori wrote:Lighten gives blur directionality, but in the same direction as camera. Is it possible to "invert" that behaviour? Also maybe cap Strength to 8 - 512? :P
That should be the correct behaviour- it's brighter near to it's current position and fades to where it once was. I could try a darken mode for trippy effects possibly.

I was going to limit the bottom end of strength too until I realised you can get a "poisoned player" effect with a low strength and recovery and with auto stop turned off :mrgreen:
User avatar
Pixel Eater
I sense evil I fear it here today, Like a bad dream that never goes away -MBerry
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Simple Motion Blur 1.03 - Faster recovery

Postby Nash » Thu Dec 13, 2018 11:45 pm

Is it somehow possible to merge the functionality of both the "lighten" shader and the normal shader into 1 file? Perhaps pass in a uniform to the .fp file?
User avatar
Nash
Nash Muhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Next

Return to Shaders

Who is online

Users browsing this forum: No registered users and 2 guests