<?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: EaselJS Pixel Perfect Collision Detection for Bitmaps with Alpha Threshold</title>
	<atom:link href="http://indiegamr.com/easeljs-pixel-perfect-collision-detection-for-bitmaps-with-alpha-threshold/feed/" rel="self" type="application/rss+xml" />
	<link>http://indiegamr.com/easeljs-pixel-perfect-collision-detection-for-bitmaps-with-alpha-threshold/</link>
	<description>apps, indie &#38; beyond</description>
	<lastBuildDate>Sun, 20 Oct 2019 13:54:00 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>By: Ehka</title>
		<link>http://indiegamr.com/easeljs-pixel-perfect-collision-detection-for-bitmaps-with-alpha-threshold/#comment-52543</link>
		<dc:creator><![CDATA[Ehka]]></dc:creator>
		<pubDate>Sun, 20 Oct 2019 13:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=558#comment-52543</guid>
		<description><![CDATA[hi！ olsn




when i use this JS 




it&#039;s tell me wrong:




ndgmr.Collision.js:173 Uncaught TypeError: Cannot read property &#039;max&#039; of undefined
    at _intersectingImagePart (ndgmr.Collision.js:173)
    at Object.checkPixelCollision (ndgmr.Collision.js:89)
    at Function.tick (game.js:265)
    at createjs.min.js:12
    at Function.b._dispatchEvent (createjs.min.js:12)
    at Function.b._dispatchEvent (createjs.min.js:12)
    at Function.b.dispatchEvent (createjs.min.js:12)
    at Function.a._tick (createjs.min.js:12)
    at a._handleTimeout (createjs.min.js:12)]]></description>
		<content:encoded><![CDATA[<p>hi！ olsn</p>
<p>when i use this JS </p>
<p>it&#8217;s tell me wrong:</p>
<p>ndgmr.Collision.js:173 Uncaught TypeError: Cannot read property &#8216;max&#8217; of undefined<br />
    at _intersectingImagePart (ndgmr.Collision.js:173)<br />
    at Object.checkPixelCollision (ndgmr.Collision.js:89)<br />
    at Function.tick (game.js:265)<br />
    at createjs.min.js:12<br />
    at Function.b._dispatchEvent (createjs.min.js:12)<br />
    at Function.b._dispatchEvent (createjs.min.js:12)<br />
    at Function.b.dispatchEvent (createjs.min.js:12)<br />
    at Function.a._tick (createjs.min.js:12)<br />
    at a._handleTimeout (createjs.min.js:12)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olivier C</title>
		<link>http://indiegamr.com/easeljs-pixel-perfect-collision-detection-for-bitmaps-with-alpha-threshold/#comment-52529</link>
		<dc:creator><![CDATA[Olivier C]]></dc:creator>
		<pubDate>Tue, 14 May 2019 20:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=558#comment-52529</guid>
		<description><![CDATA[Hey, I&#039;ve encountered the same issue using Chrome.
I&#039;ve edited the line 173 with  &lt;code&gt;return ctx.getImageData(0, 0, Math.max(1, intersetion. Math.max(1, intersetion.height)).data;&lt;/code&gt;
now it works...]]></description>
		<content:encoded><![CDATA[<p>Hey, I&#8217;ve encountered the same issue using Chrome.<br />
I&#8217;ve edited the line 173 with  <code>return ctx.getImageData(0, 0, Math.max(1, intersetion. Math.max(1, intersetion.height)).data;</code><br />
now it works&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rarema</title>
		<link>http://indiegamr.com/easeljs-pixel-perfect-collision-detection-for-bitmaps-with-alpha-threshold/#comment-52498</link>
		<dc:creator><![CDATA[rarema]]></dc:creator>
		<pubDate>Tue, 01 May 2018 09:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=558#comment-52498</guid>
		<description><![CDATA[hi！ olsn
when i use this JS 
it&#039;s tell me wrong:
DOMException: Failed to execute &#039;getImageData&#039; on &#039;CanvasRenderingContext2D&#039;: The source height is 0.
    at _intersectingImagePart (http://localhost:63342/planeGame/flyGo/js/ndgmr.Collision.js:173:16)
    at Object.checkPixelCollision (http://localhost:63342/planeGame/flyGo/js/ndgmr.Collision.js:89:18)
    at updateEnemy (http://localhost:63342/planeGame/flyGo/js/game.js:816:31)
    at updateGame (http://localhost:63342/planeGame/flyGo/js/game.js:754:5)
    at http://localhost:63342/planeGame/flyGo/js/game.js:741:9
    at Function.b._dispatchEvent (http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:4090)
    at Function.b._dispatchEvent (http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:4158)
    at Function.b.dispatchEvent (http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:3479)
    at Function.a._tick (http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:7459)
    at a._handleTimeout (http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:6772)]]></description>
		<content:encoded><![CDATA[<p>hi！ olsn<br />
when i use this JS<br />
it&#8217;s tell me wrong:<br />
DOMException: Failed to execute &#8216;getImageData&#8217; on &#8216;CanvasRenderingContext2D': The source height is 0.<br />
    at _intersectingImagePart (<a href="http://localhost:63342/planeGame/flyGo/js/ndgmr.Collision.js:173:16" rel="nofollow">http://localhost:63342/planeGame/flyGo/js/ndgmr.Collision.js:173:16</a>)<br />
    at Object.checkPixelCollision (<a href="http://localhost:63342/planeGame/flyGo/js/ndgmr.Collision.js:89:18" rel="nofollow">http://localhost:63342/planeGame/flyGo/js/ndgmr.Collision.js:89:18</a>)<br />
    at updateEnemy (<a href="http://localhost:63342/planeGame/flyGo/js/game.js:816:31" rel="nofollow">http://localhost:63342/planeGame/flyGo/js/game.js:816:31</a>)<br />
    at updateGame (<a href="http://localhost:63342/planeGame/flyGo/js/game.js:754:5" rel="nofollow">http://localhost:63342/planeGame/flyGo/js/game.js:754:5</a>)<br />
    at <a href="http://localhost:63342/planeGame/flyGo/js/game.js:741:9" rel="nofollow">http://localhost:63342/planeGame/flyGo/js/game.js:741:9</a><br />
    at Function.b._dispatchEvent (<a href="http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:4090" rel="nofollow">http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:4090</a>)<br />
    at Function.b._dispatchEvent (<a href="http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:4158" rel="nofollow">http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:4158</a>)<br />
    at Function.b.dispatchEvent (<a href="http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:3479" rel="nofollow">http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:3479</a>)<br />
    at Function.a._tick (<a href="http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:7459" rel="nofollow">http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:7459</a>)<br />
    at a._handleTimeout (<a href="http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:6772" rel="nofollow">http://localhost:63342/planeGame/flyGo/js/createjs.min.js:12:6772</a>)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashok Shah</title>
		<link>http://indiegamr.com/easeljs-pixel-perfect-collision-detection-for-bitmaps-with-alpha-threshold/#comment-52436</link>
		<dc:creator><![CDATA[Ashok Shah]]></dc:creator>
		<pubDate>Sat, 28 Mar 2015 20:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=558#comment-52436</guid>
		<description><![CDATA[Thanks for the post. It really worked perfectly.
But it wasted a lot of my time to test two circle graphics.
Lastly I know it only works it bitmap]]></description>
		<content:encoded><![CDATA[<p>Thanks for the post. It really worked perfectly.<br />
But it wasted a lot of my time to test two circle graphics.<br />
Lastly I know it only works it bitmap</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig Bartlett</title>
		<link>http://indiegamr.com/easeljs-pixel-perfect-collision-detection-for-bitmaps-with-alpha-threshold/#comment-52434</link>
		<dc:creator><![CDATA[Craig Bartlett]]></dc:creator>
		<pubDate>Tue, 10 Mar 2015 10:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=558#comment-52434</guid>
		<description><![CDATA[Solved, I just created a get function in MyObject class that returns my Sprite.

var collision = ndgmr.checkPixelCollision(obj01.getImage(),obj02.getImage(), 1);


Works perfectly!]]></description>
		<content:encoded><![CDATA[<p>Solved, I just created a get function in MyObject class that returns my Sprite.</p>
<p>var collision = ndgmr.checkPixelCollision(obj01.getImage(),obj02.getImage(), 1);</p>
<p>Works perfectly!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig Bartlett</title>
		<link>http://indiegamr.com/easeljs-pixel-perfect-collision-detection-for-bitmaps-with-alpha-threshold/#comment-52433</link>
		<dc:creator><![CDATA[Craig Bartlett]]></dc:creator>
		<pubDate>Tue, 10 Mar 2015 09:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=558#comment-52433</guid>
		<description><![CDATA[I get the expected result when using ndgmr.checkRectCollision but I am getting the following error in my console when trying to use ndgmr.checkPixelCollision. I would like the transparent areas not be detected in the collision.

TypeError: image is undefined
ctx.drawImage(image,0,0,image.width,image.height);]]></description>
		<content:encoded><![CDATA[<p>I get the expected result when using ndgmr.checkRectCollision but I am getting the following error in my console when trying to use ndgmr.checkPixelCollision. I would like the transparent areas not be detected in the collision.</p>
<p>TypeError: image is undefined<br />
ctx.drawImage(image,0,0,image.width,image.height);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seb am</title>
		<link>http://indiegamr.com/easeljs-pixel-perfect-collision-detection-for-bitmaps-with-alpha-threshold/#comment-52427</link>
		<dc:creator><![CDATA[seb am]]></dc:creator>
		<pubDate>Mon, 19 Jan 2015 18:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=558#comment-52427</guid>
		<description><![CDATA[Tks Olaf for your work and the solution :
fix the bug(at least temporarily) by commenting out the
lines 68-71 in the ndgmr.Collision.js

     //areObjectsCloseEnough = _collisionDistancePrecheck(bitmap1,bitmap2);
     //if ( !areObjectsCloseEnough ) {
         //return false;
     //}]]></description>
		<content:encoded><![CDATA[<p>Tks Olaf for your work and the solution :<br />
fix the bug(at least temporarily) by commenting out the<br />
lines 68-71 in the ndgmr.Collision.js</p>
<p>     //areObjectsCloseEnough = _collisionDistancePrecheck(bitmap1,bitmap2);<br />
     //if ( !areObjectsCloseEnough ) {<br />
         //return false;<br />
     //}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seb am</title>
		<link>http://indiegamr.com/easeljs-pixel-perfect-collision-detection-for-bitmaps-with-alpha-threshold/#comment-52425</link>
		<dc:creator><![CDATA[seb am]]></dc:creator>
		<pubDate>Tue, 13 Jan 2015 09:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=558#comment-52425</guid>
		<description><![CDATA[Hi, I try to detect collision between 2 bitmaps. Each bitmap have a specific rotation 45° or 90°. The collsion isn&#039;t well done. Any help or example ? Tks]]></description>
		<content:encoded><![CDATA[<p>Hi, I try to detect collision between 2 bitmaps. Each bitmap have a specific rotation 45° or 90°. The collsion isn&#8217;t well done. Any help or example ? Tks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandeep Devadas</title>
		<link>http://indiegamr.com/easeljs-pixel-perfect-collision-detection-for-bitmaps-with-alpha-threshold/#comment-52417</link>
		<dc:creator><![CDATA[Sandeep Devadas]]></dc:creator>
		<pubDate>Sat, 30 Aug 2014 11:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=558#comment-52417</guid>
		<description><![CDATA[Here is the image of my output .]]></description>
		<content:encoded><![CDATA[<p>Here is the image of my output .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandeep Devadas</title>
		<link>http://indiegamr.com/easeljs-pixel-perfect-collision-detection-for-bitmaps-with-alpha-threshold/#comment-52416</link>
		<dc:creator><![CDATA[Sandeep Devadas]]></dc:creator>
		<pubDate>Sat, 30 Aug 2014 10:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=558#comment-52416</guid>
		<description><![CDATA[Hi olsn, Im new to this and easeljs and createjs and couldnt get your collision detector to work on my PC. I have copied all the .js files to a js folder,moved the png&#039;s to an assets folder,copied the ngmr to the source and run the index.html file. But all it does is it shows the button and the text field. I have attached the index file which i use]]></description>
		<content:encoded><![CDATA[<p>Hi olsn, Im new to this and easeljs and createjs and couldnt get your collision detector to work on my PC. I have copied all the .js files to a js folder,moved the png&#8217;s to an assets folder,copied the ngmr to the source and run the index.html file. But all it does is it shows the button and the text field. I have attached the index file which i use</p>
]]></content:encoded>
	</item>
</channel>
</rss>
