Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need input on a possible bug in v3.5.0
#16
(01-21-2023, 03:53 PM)TerryRitchie Wrote:
(01-21-2023, 11:17 AM)TempodiBasic Wrote: @TerryRitchie

Hi
I'm very glad to say you... I have found the bug!

Yes, IMHO if you change one line of your MakeMask routine, your tool works perfectly!
Code: (Select All)
cc~& = Point(10, 10) '_RGB32(255, 0, 255) '                       set the color to be used as transparent
the issue comes out from the setting of the background color in MakeMask routine!
We must take background/ transparent color from the image passed to the routine!
Please take a try and you enjoy to see working your tool for detection!
Thanks to Bplus for rising out this bug! We get another step toward a good tool!

Oh for goodness sake. I hard coded the transparent color for the example images instead having the routine detect the transparent color. Thanks for finding this. The code works for this example but will fail when images with differing transparent colors are used. Your catch will make this a true general use routine.

I'll work on changing the code and upload the result here.

Even with that fix there is still a false positive collision detected when the image edge contacts the other image, modified code in zip for testing above.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
RE: I need input on a possible bug in v3.5.0 - by bplus - 01-21-2023, 04:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is this a bug with Round or is it just me BarrySWTP 10 1,243 07-07-2025, 08:40 PM
Last Post: BarrySWTP
  Exiting FOR NEXT, maybe a bug? Version 4.1.0 on Linux Circlotron 4 836 05-09-2025, 02:22 AM
Last Post: Circlotron
  Mix mode input of a binary open file Question! doppler 5 1,468 11-28-2024, 03:06 PM
Last Post: Petr
  I have fallen in a bug or weird behaviour TempodiBasic 2 665 10-08-2024, 06:09 PM
Last Post: TempodiBasic
  3.13.1 bug report - keyboard characters swapped Circlotron 3 989 06-03-2024, 05:16 AM
Last Post: Circlotron

Forum Jump:


Users browsing this thread: