

<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The Displacement Map Filter Demystified</title>
	<atom:link href="http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified/feed" rel="self" type="application/rss+xml" />
	<link>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified</link>
	<description>Luck is the residue of good design.</description>
	<lastBuildDate>Tue, 20 Mar 2012 15:33:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jay</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-68372</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Tue, 31 Jul 2007 12:13:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-68372</guid>
		<description>Dear Dave,

I&#039;m also stuck with a simple animation i&#039;m trying to create with an array, I guess I might have overlooked a simple detail somewhere:

I have arranged some movieclip instances on the stage (_root) at author-time and would like to hold them in an array. I can&#039;t seem to get the loop at the end of this script to work: Any help would be hugely appreciated.

Basically what want to end up with is a load in animation, by setting the array&#039;s visibilty to false initially, then looping through a function to set each indexes visibilty to true, with a setInterval variable so that it dosen&#039;t happen too quickly. From there I could add a tween to the loop and fade the array instances in one by one.



shapes = _root[&quot;eye1&quot;,&quot;eye2&quot;,&quot;nose1&quot;,&quot;dots1&quot;,&quot;lips1&quot;];
trace(shapes);

//apply some properties to the array
shapes[_root]._xscale = 50;
shapes[_root]._visible = true;

_root.onEnterFrame = function() {
for (var i:Number =0; i </description>
		<content:encoded><![CDATA[<p>Dear Dave,</p>
<p>I&#8217;m also stuck with a simple animation i&#8217;m trying to create with an array, I guess I might have overlooked a simple detail somewhere:</p>
<p>I have arranged some movieclip instances on the stage (_root) at author-time and would like to hold them in an array. I can&#8217;t seem to get the loop at the end of this script to work: Any help would be hugely appreciated.</p>
<p>Basically what want to end up with is a load in animation, by setting the array&#8217;s visibilty to false initially, then looping through a function to set each indexes visibilty to true, with a setInterval variable so that it dosen&#8217;t happen too quickly. From there I could add a tween to the loop and fade the array instances in one by one.</p>
<p>shapes = _root["eye1","eye2","nose1","dots1","lips1"];<br />
trace(shapes);</p>
<p>//apply some properties to the array<br />
shapes[_root]._xscale = 50;<br />
shapes[_root]._visible = true;</p>
<p>_root.onEnterFrame = function() {<br />
for (var i:Number =0; i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-68341</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Tue, 31 Jul 2007 09:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-68341</guid>
		<description>Hi again,

I found a make-do solution or probably the limitation of the BD obj. If the movie clip that is being drawn into the BD obj has a solid background colour then it will leave no traces of the previous drawing. So I just set up the BD obj to cover the whole stage, and then size the solid colour the same size as the stage. I suppose this would then limit me to only drawing into one level of the BD obj as the next layer up would obscure it (if it had a solid background). + I would need to load any further graphics into the next level up in the movie.

I&#039;m trying to push this effect as far as it can go, Iand trying to see if I can use it to create Z_O_O_M distortion and perspective by applying a few maps to one image. Do you think this will effect playback performance?</description>
		<content:encoded><![CDATA[<p>Hi again,</p>
<p>I found a make-do solution or probably the limitation of the BD obj. If the movie clip that is being drawn into the BD obj has a solid background colour then it will leave no traces of the previous drawing. So I just set up the BD obj to cover the whole stage, and then size the solid colour the same size as the stage. I suppose this would then limit me to only drawing into one level of the BD obj as the next layer up would obscure it (if it had a solid background). + I would need to load any further graphics into the next level up in the movie.</p>
<p>I&#8217;m trying to push this effect as far as it can go, Iand trying to see if I can use it to create Z_O_O_M distortion and perspective by applying a few maps to one image. Do you think this will effect playback performance?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-67065</link>
		<dc:creator>David Stiller</dc:creator>
		<pubDate>Wed, 25 Jul 2007 16:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-67065</guid>
		<description>Jay,

Aha, I see what you&#039;re after (I think) ... different sort of animation than I visualized at first.  Have you experimented with the optional transparency parameter of the &lt;code&gt;BitmapData&lt;/code&gt; constructor?  By default, it&#039;s set to &lt;code&gt;true&lt;/code&gt;, which may be causing what you&#039;re seeing.</description>
		<content:encoded><![CDATA[<p>Jay,</p>
<p>Aha, I see what you&#8217;re after (I think) &#8230; different sort of animation than I visualized at first.  Have you experimented with the optional transparency parameter of the <code>BitmapData</code> constructor?  By default, it&#8217;s set to <code>true</code>, which may be causing what you&#8217;re seeing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-66844</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Tue, 24 Jul 2007 16:20:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-66844</guid>
		<description>I&#039;ve realised from other examples of working with the BD obj, that you can fade out previous draws by applying a blur to the BDO. This isn;t quite giving the desired effect though as I don&#039;t require any traces of the prevous draw.

:-S</description>
		<content:encoded><![CDATA[<p>I&#8217;ve realised from other examples of working with the BD obj, that you can fade out previous draws by applying a blur to the BDO. This isn;t quite giving the desired effect though as I don&#8217;t require any traces of the prevous draw.</p>
<p>:-S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-65680</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Thu, 19 Jul 2007 09:10:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-65680</guid>
		<description>Hi Dave,

I&#039;ve continued to play around with your displacement tutorial but i&#039;m a bit stuck on something.

I have applied a (static) displacement map to the bitmapData object, and then set up a function on enterframe that draws an (animated) movieclip into the BDO. So the result being as if the movie clip were moving behind a lense/warp effect. The problem I now have is that the continously invoked draw function leaves a trace of all previous draws.

Is there a way of using the clear() method?</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>I&#8217;ve continued to play around with your displacement tutorial but i&#8217;m a bit stuck on something.</p>
<p>I have applied a (static) displacement map to the bitmapData object, and then set up a function on enterframe that draws an (animated) movieclip into the BDO. So the result being as if the movie clip were moving behind a lense/warp effect. The problem I now have is that the continously invoked draw function leaves a trace of all previous draws.</p>
<p>Is there a way of using the clear() method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-31147</link>
		<dc:creator>David Stiller</dc:creator>
		<pubDate>Sun, 01 Apr 2007 17:07:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-31147</guid>
		<description>Jay,

You betcha, animated displacement maps are possible.  :)  There&#039;s a part 4 on the way for that series, and I&#039;ll go into ripples in that one ( &#8212; not sure when I&#039;ll get to that article, but it&#039;s definitely coming).  No matter what, some level of ActionScript is required, because you do need that &lt;code&gt;BitmapData&lt;/code&gt; object to display the distortion.  I hadn&#039;t thought of tweening the displacement map itself, but that should certainly work, in theory.</description>
		<content:encoded><![CDATA[<p>Jay,</p>
<p>You betcha, animated displacement maps are possible.  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   There&#8217;s a part 4 on the way for that series, and I&#8217;ll go into ripples in that one ( &mdash; not sure when I&#8217;ll get to that article, but it&#8217;s definitely coming).  No matter what, some level of ActionScript is required, because you do need that <code>BitmapData</code> object to display the distortion.  I hadn&#8217;t thought of tweening the displacement map itself, but that should certainly work, in theory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-30146</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Fri, 30 Mar 2007 11:37:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-30146</guid>
		<description>Hi, I read all your tutorial on the displacement map filter (parts 1-3), This has been a great help. What I&#039;m dying to find out though is whether an animated displacement map can be created. i.e. Lets say the that the map_mc in which the gradients are kept is tweened along the timeline. So that the gradient values appear to be shifting. I really want the disp. map to create a animated ripple effect. 

I&#039;m guessing this may have something to do with actionscript API, but If I could create it with tweened movie clip this would be a fantastic breakthrough.


Thanks</description>
		<content:encoded><![CDATA[<p>Hi, I read all your tutorial on the displacement map filter (parts 1-3), This has been a great help. What I&#8217;m dying to find out though is whether an animated displacement map can be created. i.e. Lets say the that the map_mc in which the gradients are kept is tweened along the timeline. So that the gradient values appear to be shifting. I really want the disp. map to create a animated ripple effect. </p>
<p>I&#8217;m guessing this may have something to do with actionscript API, but If I could create it with tweened movie clip this would be a fantastic breakthrough.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Stiller</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-28927</link>
		<dc:creator>David Stiller</dc:creator>
		<pubDate>Tue, 27 Mar 2007 14:27:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-28927</guid>
		<description>var,

Wow, sorry for this late response!  I missed your post, somehow.  To answer your questions, a) yes and no:  the concept of Flash&#039;s displacement map is similar to the one in Photoshop, but accessed differently; in addition, ActionScript gives you more control over its implementation than Photoshop does; b) yes, you can use displacement maps on video, whether color or black-and-white.</description>
		<content:encoded><![CDATA[<p>var,</p>
<p>Wow, sorry for this late response!  I missed your post, somehow.  To answer your questions, a) yes and no:  the concept of Flash&#8217;s displacement map is similar to the one in Photoshop, but accessed differently; in addition, ActionScript gives you more control over its implementation than Photoshop does; b) yes, you can use displacement maps on video, whether color or black-and-white.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: var</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-16474</link>
		<dc:creator>var</dc:creator>
		<pubDate>Mon, 05 Feb 2007 17:29:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-16474</guid>
		<description>Does it work pretty much the same way as the photoshop displacement filter?

Also, can you use a B&amp;W flv?</description>
		<content:encoded><![CDATA[<p>Does it work pretty much the same way as the photoshop displacement filter?</p>
<p>Also, can you use a B&amp;W flv?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

