tean Posted October 31, 2009 Share Posted October 31, 2009 what would be the difference? i mean if i want to fake it, and (for example) want to send one movieclip out of stage, one movieclip into stage, i could get away with somehting like this: var blur:BlurFilter = new BlurFilter(); blur.blurX = 50; blur.blurY = 0; blur.quality = BitmapFilterQuality.MEDIUM; mc2.filters = [blur]; TweenLite.to( mc1, 1, { x: -100, onUpdate:Blur });//send out of stage and blur TweenLite.to( mc2, 1, { x: 300, blurFilter:{ blurX:0 } });//send into stage and unblur function Blur():void { mc.filters = [blur]; } Link to comment Share on other sites More sharing options...
GreenSock Posted October 31, 2009 Share Posted October 31, 2009 Key differences: 1) motionBlur automatically adjusts its angle dynamically. Normal BlurFilters can only blurX and blurY (horizontal or vertical). So if your object is moving at a 45-degree angle, motionBlur will look natural whereas a plain BlurFilter won't. 2) The amount of blur is completely dynamic in a motionBlur - it watches the velocity of your tweening object and figures out how much it should be blurred. But in your scenario, you very well may not notice any difference. If you're going in a straight horizontal or vertical line, feel free to do a standard blurFilter tween. Link to comment Share on other sites More sharing options...
tean Posted November 1, 2009 Author Share Posted November 1, 2009 i did a little searching and found a code which compares object last position on the x and y axis in enter frame and then makes a blur according to that, but it still uses mc.filters = [ new BlurFilter( _blurX * _factor, _blurY * _factor, _quality ) ]; can i ask how are you blurring the object (in motion blur) if you are not using blur filter? Link to comment Share on other sites More sharing options...
GreenSock Posted November 1, 2009 Share Posted November 1, 2009 You want me to divulge my secret recipe? Just kidding. Sure, I use BitmapData manipulations to do it. Link to comment Share on other sites More sharing options...
tean Posted November 2, 2009 Author Share Posted November 2, 2009 like this: http://npacemo.com/wordpress/2008/11/23 ... ur-to-ape/ Link to comment Share on other sites More sharing options...
GreenSock Posted November 2, 2009 Share Posted November 2, 2009 Yep, the concept is similar although the execution is a bit different. That's the idea, though. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now