SRL Archive - General

DTM or Bitmap?


CorbLimey

2009-09-03 19:09:46

Can someone please enlighten me as to which is the best method? Or is it that each has its own advantages and disadvantages?

I've just started scripting - I have read about both but wonder if one is more efficeient with memory perhaps.

Thanks in advance.

caused

2009-09-03 19:21:49

Dtm's need less memory. In general. And Dtms are faster to generate then bitmaps (with the integrated tool).

Anyways. whatever you use, free the memory, after you dont require the bitmap/dtm anymore with "FreeDTM()" or "FreeBItmap()".

~caused

YoHoJo

2009-09-03 20:34:10

Well depends on what your trying to do. DTMs are normally best for finding items in inventory/bank and bitmps are good for other stuff :D. What exactly are you trying to find?

pl0xmypl0x

2009-09-03 20:59:22

I found DTM's a great pain when finding items such as logs in the bank =/ i think because the outline shifts about alot. But i think they are great for inventory :)

YoHoJo

2009-09-03 21:01:22

From what i know item outlines never shift hmm =/.

YoHoJo

2009-09-03 21:02:41

http://www.villavu.com/forum/showthread.php?t=564&highlight=yohojo
My DTM tutorial

marpis

2009-09-03 21:42:52

From: YoHoJo
http://www.villavu.com/forum/showthread.php?t=564&highlight=yohojo
My DTM tutorial


ho! double post!

~~

DTMs are not always faster than bitmaps.
If you're trying to find some item thats outline is not unique - runes for example - i suggest using a small bitmap that does not cover the whole item, just some part from the center of it.

YoHoJo

2009-09-03 23:11:42

How dare you di-re-spec me! Ill freakin ban you!

YoHoJo

2009-09-03 23:11:54

Double post in your face marpis!

CorbLimey

2009-09-04 11:38:55

From: YoHoJo
Well depends on what your trying to do. DTMs are normally best for finding items in inventory/bank and bitmps are good for other stuff :D. What exactly are you trying to find?


Thanks for the reply - I was actually trying to determine if there was a constant way of scripting for consistency i.e. using just one method.

Thanks to all who have replied as this has given me a much wider view of the topic. I shall experiment with the use of both methods as per suggestions.

cycrosism

2009-09-05 02:43:38

Bitmaps are way better then DTM's, they are faster. Look at my sig, I have a big tutorial on bitmaps.

maxcreigs

2010-02-24 06:47:45

Nice work.

My only complaint from briefly skimming the tutorial is that your Lobster bitmap is far to large. You should never have more then a 12 x12 (and thats pushing it) bitmap when searching for items. I know it is only an example, but it is good to instill good scripting practices in young learners now.