Results 1 to 4 of 4

Thread: Bitmaps, DTM's, and FindColor

  1. #1
    Join Date
    Jan 2019
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Bitmaps, DTM's, and FindColor

    What are the pro's and con's of each?

    After reading many tutorials here, it seems that the consensus is:

    Bitmaps: locating NPC's

    DTM:s Items

    and Color for objects on the mainscreen.

    Can anyone provide a better answer?

    thank you

  2. #2
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    957
    Mentioned
    47 Post(s)
    Quoted
    481 Post(s)

    Default

    Bitmaps and DTMs are good for 'flat' things, and are usually very specific: inventory items, interface icons, etc. They won't work so well with 3D objects in the mainscreen.
    Color (TPAs, ATPAs, clustering, filtering, etc.) can be used for anything, including mainscreen objects. They're usually more general, e.g. finding all the chickens on the screen.

  3. #3
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    819
    Mentioned
    12 Post(s)
    Quoted
    337 Post(s)

    Default

    I can honestly say I have never used a bitmap before; not even sure how to lol.

    Like Citrus said, DTM is great for finding 2D items on screen such as inventory items, tab icons, menu interfaces etc.

    ATPA/TPA's are great for finding 3D objects and 2D items. For example, picking a nice color for the bank teller that is unique, finding all of those colors on the screen, then filtering them out based on count, distance apart etc.
    I also use it to find 2D interfaces such as bank and pin screen on resizable to get the bounds for my tbox, as the co-ordinates of said interface change depending on screen size.

  4. #4
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,177
    Mentioned
    112 Post(s)
    Quoted
    1849 Post(s)

    Default

    Quote Originally Posted by Dan the man View Post
    I can honestly say I have never used a bitmap before; not even sure how to lol.

    Like Citrus said, DTM is great for finding 2D items on screen such as inventory items, tab icons, menu interfaces etc.

    ATPA/TPA's are great for finding 3D objects and 2D items. For example, picking a nice color for the bank teller that is unique, finding all of those colors on the screen, then filtering them out based on count, distance apart etc.
    I also use it to find 2D interfaces such as bank and pin screen on resizable to get the bounds for my tbox, as the co-ordinates of said interface change depending on screen size.
    Bitmaps in Simba work almost exactly like DTMs do, as far as creating, freeing, and finding them is concerned. For example BitmapFromString, FreeBitmap and FindBitmap

    The main difference is a DTM consists of a set of points while a bitmap can only be a static image. Typically bitmaps must remain identical to what you are finding (moreso than a DTM at least) however you can apply a tolerance.

    Also plug here for a great portion of SRL called slacktree which provides implementations of routines similar to those found in the old (closed-source) AND_TPA plugin. This helps a lot with object finding using colors and TPAs/ATPAs because it allows you to make several broad searches, then narrow down effectively.
    Last edited by KeepBotting; 01-15-2019 at 02:06 AM.
    GitLab projects | Simba for Linux | Find me on IRC or Discord | OSRS scripts | Come play ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

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
  •