Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] 2d motion blur

Author
Message
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 4th Nov 2007 19:12 Edited at: 6th Nov 2007 19:31
i posted this in the 2d board, but figured id post it here too.




"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroupproductions.com/
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 5th Nov 2007 09:39
Hmm...it is OK but not great. The motion blur trail never disappears; it always leaves a slightly grey mark because you aren't clearing the background. Also, please use the code snippet tags and preferably format your code.


flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 5th Nov 2007 22:09
windows killer :it is a side effect, what is real motion blur, im interested.

TEH_CODER: oops, i had thought i did put it in code brackets, and sorry for not typeing it right.
The forever grey trail is annoying, and im trying to fix it, but i figured it was a good start.


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroupproductions.com/
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 6th Nov 2007 19:33
Quote: "TEH_CODER: oops, i had thought i did put it in code brackets, and sorry for not typeing it right."


Eh?

All you do is highlight the code in your post and click on the Code button!

You've also got the Edit Own button, so correcting it afterwards is only a couple of mouse clicks...

How long have you been using these forums?

TDK_Man

flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 6th Nov 2007 21:04
TDK: couple years. I see your point, and i feel stupid. I know how to use the code thing, i just forgot... im sorry.


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroupproductions.com/
aluseus GOD
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 7th Nov 2007 02:01
real motion blur would be more of a draw sprites nth last position with barely any opacity, drawing the next position with more opacity, etc until you reach current position.

alus.portbb.com go there.
[quote]A book. I hate books. book is stupid. I know that I need codes but I dont know the codes.[/quote} -zenicanin14 the stupidest user in the world.
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 7th Nov 2007 23:36
hmm. that sort of what this is, but just not as clean.


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroupproductions.com/
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 26th Dec 2007 06:27
Alright, i had dropped this, but in the middle of working on some 2d particles, i discovered a temporary soloution...


All the sprites you want to see have a priority of 1
there is a back sprite with a priority of 0. this sprite is constantly redrawn with a high alpha value, so its a little bit see through, but not much.
Since it has a high alpha value, it covers up the trails the other sprites leave behind.
Im sure that there are still trails left, but i cant see them.

The code above is a 2d particles test, but focus in on the motion blur, pay no attention to the suckyness of the particles...


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroupproductions.com/

Login to post a reply

Server time is: 2024-11-22 13:16:02
Your offset time is: 2024-11-22 13:16:02