SRL Archive - General

DTMs and Bitmaps


sm321

2012-03-04 09:04:32

Hello. I've learned about DTMs, but I read the Ultimate Bitmap Tutorial written by cycrosism and they seem similar. I'm only new to scripting so what's the difference?

tehq

2012-03-04 09:14:49

DTMs are points on pictures, using the color of the point and how far away it is from the other points it can be found again, and you can have tolerance on the points.

A Bitmap is a picture. It can also have tolerance, but only if you use a function that uses tolerance. (FindBitmapToleranceIn).

I personally prefer DTMs because they are typically faster.

sm321

2012-03-04 09:24:09

From: tehq
DTMs are points on pictures, using the color of the point and how far away it is from the other points it can be found again, and you can have tolerance on the points.

A Bitmap is a picture. It can also have tolerance, but only if you use a function that uses tolerance. (FindBitmapToleranceIn).

I personally prefer DTMs because they are typically faster.


When would I use either of them? Thanks by the way :)

masterBB

2012-03-04 09:30:13

That depends on the situation. Dtms are faster and take less memory on average. But bitmaps can contain more details, protecting you from false positives. Also dtms are useful on the minimap as they will still be able to find the object when players walks through it. Just try them is my advice.

sm321

2012-03-04 09:46:07

From: masterBB
That depends on the situation. Dtms are faster and take less memory on average. But bitmaps can contain more details, protecting you from false positives. Also dtms are useful on the minimap as they will still be able to find the object when players walks through it. Just try them is my advice.


I've made 2 DTMs as practice, one clicked a chocolate bar, and the other clikced some fancy boots. It seemed to work smoothly. I haven't tried bitmaps yet.

eska

2012-03-19 06:16:43

Yea I haven't learned bitmap yet and its like, basic stuff.

I just feel like they're useless now that I know DTMs and other more advanced stuff, but I guess I'll have to try them eventualy.. For some reasons I dont know yet.

J J

2012-03-21 15:49:14

I start with bitmaps and learned DTM's later. Bitmaps can be used in some specific situations in the Mainscreen while DTM's are mainly useful for the Inventory and walking. Atleast, that's from my experience. I like DTM's a lot for finding stuff in the inventory, etc.

Abu

2012-03-22 17:51:11

For walking, use ObjectDTM's as oppose to just DTM's