Sie sind nicht angemeldet.

1

Mittwoch, 5. Dezember 2012, 17:09

plugin.pixelhittest not working?

Hello!

I have the following problem...I created a png image of 500x500 size, and it has a black circle of around 100px radius in the middle, but the rest is completely transparent.

Now I put this in my xml:

Quellcode

1
2
3
4
5
6
<plugin align="lefttop" name="hittest1" 
url="%SWFPATH%/img/bigpng.png" x="600" y="0" onclick="showtext('simple 
hit test');"	/>	
<plugin align="lefttop" 
name="hittest2"	url="%SWFPATH%/img/bigpng.png" x="1200" y="0" 
onclick="showtext('pixel hit test');" pixelhittest="true" />


Both plugins appear correctly, but the pixelhittest doesn't seem to work, because if I click in the proximity of the black circle of the second plugin (but not over it), I still get the showtext.

Am I missing something here? Is this not how this is supposed to work?

Thanks in advance!

2

Donnerstag, 6. Dezember 2012, 04:27

Ok, I'm really sorry, it was a dumb mistake on my side. I was testing this with an older version of krpano, which at the time didn't even contain this feature :P

Admin, you may delete this topic if you wish, sorry for the inconveniance!

Cheers!