Results 1 to 6 of 6

Thread: Is there a way...

  1. #1
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default Is there a way...

    ...to make a script look for a square with tolerance of a certain color ?

    If yes, can you explain to me how to use it ?

  2. #2
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    couldnt u just use a ddtm

  3. #3
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    You can make a bitmap of it then use FindBitmapToleranceIn or similar FindBitmap function that has tolerance in the name.
    Alternatively, you can look into using FindColorsTolerance and then breaking up the TPA into an ATPA based on the size of the square, but this would require further reading if you're unsure of the method.
    A DTM would work as well by setting up the points to the corners and a couple random ones inside (doesn't have to be a DDTM as suggested above though - as long as it's not varied tolerance or original colour, a static DTM should work). The only problem being that you can't ensure it's perfectly square unless you then double check with another method or you spend a lot of time making subpoints for each pixel.
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  4. #4
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Yeh DDTMs
    Also DDD how much of the GFX have you done?

    T~M

  5. #5
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by mixster View Post
    You can make a bitmap of it then use FindBitmapToleranceIn or similar FindBitmap function that has tolerance in the name.
    Alternatively, you can look into using FindColorsTolerance and then breaking up the TPA into an ATPA based on the size of the square, but this would require further reading if you're unsure of the method.
    A DTM would work as well by setting up the points to the corners and a couple random ones inside (doesn't have to be a DDTM as suggested above though - as long as it's not varied tolerance or original colour, a static DTM should work). The only problem being that you can't ensure it's perfectly square unless you then double check with another method or you spend a lot of time making subpoints for each pixel.
    Bitmaps would be very large and hard for the script...

    DTM would not work as the square changes and there are no fixed points for the corners...

    I'm not sure about the TPA thing you described and how to use it.
    _______________________

    The Man : I wonder, your friend told me to create some grundge style stuff for the outline, the very top white thing on the site, can you describe plz ?
    _______________________

    Best way I've been told about atm is bitmap...
    _______________________

    If there a way to make a TPA find the searched object if it has a certain size which varies a little (like tolerance range) or by a certain form of it (with tolerance too) ?
    _______________________

    I also wonder, can I store the colors found in an array so I know if they're wrong or right ?
    _______________________

    Thanks so far.

    Waiting for more .

  6. #6
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Come on msn.

    T~M

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •