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:

    Code
    <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!

  • 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!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!