Results 1 to 6 of 6

Thread: Bitmaps.

  1. #1
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default Bitmaps.

    Ok, my soon to be 1st script. i wanna use bitmaps because i find it more easier then coordinates to me i think. Couple of questions:

    1.eheh what if the bitmap code thingmabob is kind like more then 20 lines? Bad,good?

    2. is bitmaps better then coordinates? less ban or something.

    3. please help i would appreciate it.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    Bitmaps come in three ways:
    1. for static objects, like inventory items you can search using FindBitmapTolerance, which does a color tolerance check. (All items vary a little bit in color, but not in shape) Usually 8*8 bitmaps do the trick
    2. For mainscreen objects. You can search for them using FindDeformedBitmapTolerance, which performs a shape tolerance check. I usually take a large slice (16*1 (hor) or 1*16 (vert) ) of a mainscreen object (like f.i. a fire, see Ratz!), since Deformed Objects lag a lot. I made a function in SRL (Object.scar) FindDeformed that usually finds a deformed.
    3. For objects with the same outline (invent/bank) use BitmapMasks. A Mask is a 1-bit Bitmap (Black-White). Its fast, but only limited to items. A BitmapMask of a log is valid for any kind of log.


    Hope this helps you.

    Fawki!
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  3. #3
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Hey thanks bro. ill get on it now.

    Edit:so w8 i dont need to get bitmaps for all the logs now? so i can just use 1?
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  4. #4
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    If you use a BitmapMask you need 1 bitmap for all different kinds of logs. If you use a Bitmap you need to make one bitmap for each kind of log (willow, oak).
    Hup Holland Hup!

  5. #5
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Yea ive just read a tut from whocares357 about bitmaps and Dtms. Ill do Dtm's for now i find that easier. In the mean while thx to you and wt-fawki.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  6. #6
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hey nielsie95
    didnt saw you for a long time
    i would love to say'welcome back'
    but you never bin away i think

    hermpie
    ~Hermen

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Bitmaps
    By HairyDuncan2 in forum OSR Help
    Replies: 2
    Last Post: 09-03-2007, 12:14 AM
  2. Need help with bitmaps!!!!!!
    By diamondhero5 in forum OSR Help
    Replies: 4
    Last Post: 02-19-2007, 02:49 PM
  3. Help me with bitmaps
    By raimis89 in forum OSR Help
    Replies: 2
    Last Post: 12-11-2006, 04:27 PM
  4. Bitmaps
    By XxKanexX in forum Outdated Tutorials
    Replies: 12
    Last Post: 04-17-2006, 06:13 AM

Posting Permissions

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