Making a Fast Object Look Fast...Problem
3 posts • Page 1 of 1
Making a Fast Object Look Fast...Problem
Well, I started making a train today (June 27, 2013) and I wanted it to be one of those really fast ones, like the Bullet Train in Japan. I got the neat idea of making the train blur as it got REALLY fast. So I came up with and used this code:
Well, then I got a test car, code injected in all parts, and drove around, but in the first few instances of this testing, before the code was actually tested, I realized that this thing could go backwards...negative edge blur, which would look kind of...I don't know. Anyone know how to fix this to make it so that this code always gives a positive output? And any other ideas on how to make it look fast?
- Code: Select all
(e)=>{
e.this.edgeBlur = e.this.vel(0) / 500
}
Well, then I got a test car, code injected in all parts, and drove around, but in the first few instances of this testing, before the code was actually tested, I realized that this thing could go backwards...negative edge blur, which would look kind of...I don't know. Anyone know how to fix this to make it so that this code always gives a positive output? And any other ideas on how to make it look fast?
- stuff and stuff
- Posts: 4
- Joined: Tue May 03, 2011 4:44 am
Re: Making a Fast Object Look Fast...Problem
You should apply this:
This is an if statement that says:
To make it simpler, put this for the edgeBlur property of the train
- Code: Select all
(vel(0) < 0) ? {edgeBlur = -vel(0) / 500} : {edgeBlur = vel(0) / 500}
This is an if statement that says:
- Code: Select all
If vel(0) is less than 0, edgeBlur = -vel(0) / 500 (to make it positive), else, edgeBlur = vel(0) / 500 without changing the sign.
To make it simpler, put this for the edgeBlur property of the train
- Code: Select all
edgeBlur = { vel(0) < 0 ? -vel(0) / 500 : vel(0) / 500 }
-

Ivan - Posts: 203
- Joined: Tue Oct 06, 2009 2:01 pm
- Location: Croatia
Re: Making a Fast Object Look Fast...Problem
doesn't edge blur blur the vertical as well as the horizontal edges? so what you'll end up with is an out of focus train?
- jon_joy_1999
- Posts: 233
- Joined: Fri Dec 09, 2011 12:51 am
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests




