<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: The Displacement Map Filter Demystified</title>
	<link>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified</link>
	<description>Luck is the residue of good design.</description>
	<pubDate>Tue, 06 Jan 2009 18:27:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Jay</title>
		<link>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-68372</link>
		<pubDate>Tue, 31 Jul 2007 12:13:12 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-68372</guid>
					<description>Dear Dave,

I'm also stuck with a simple animation i'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'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'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'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[&#8221;eye1&#8243;,&#8221;eye2&#8243;,&#8221;nose1&#8243;,&#8221;dots1&#8243;,&#8221;lips1&#8243;];<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>
		<pubDate>Tue, 31 Jul 2007 09:29:00 +0000</pubDate>
		<guid>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'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>
		<pubDate>Wed, 25 Jul 2007 16:26:38 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-67065</guid>
					<description>Jay,

Aha, I see what you'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's set to &lt;code&gt;true&lt;/code&gt;, which may be causing what you'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>
		<pubDate>Tue, 24 Jul 2007 16:20:18 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-66844</guid>
					<description>I'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'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>
		<pubDate>Thu, 19 Jul 2007 09:10:49 +0000</pubDate>
		<guid>http://www.quip.net/blog/2007/flash/actionscript-20/displacement-map-filter-demystified#comment-65680</guid>
					<description>Hi Dave,

I've continued to play around with your displacement tutorial but i'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>
		<pubDate>Sun, 01 Apr 2007 17:07:04 +0000</pubDate>
		<guid>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's a part 4 on the way for that series, and I'll go into ripples in that one ( &amp;#8212; not sure when I'll get to that article, but it'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'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>
		<pubDate>Fri, 30 Mar 2007 11:37:47 +0000</pubDate>
		<guid>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'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'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>
		<pubDate>Tue, 27 Mar 2007 14:27:55 +0000</pubDate>
		<guid>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'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>
		<pubDate>Mon, 05 Feb 2007 17:29:35 +0000</pubDate>
		<guid>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;#38;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>
