Log in

View Full Version : Different uses of DTMs and Bitmaps?



gsquare567
03-18-2007, 04:10 AM
sorry for so many questions, but what can i say, im a curious guy. so, i was wondering what the difference between a dtm and a bitmap is.
1) Is a DTM with 255 tolerance the same as a masked Bitmap?
2) A DTM cannot be used on the minimap or mainscreen, and a bitmap cannot be used on mainscreen but can be used on minimap... about that... what if the compass isnt exactly as what it was when you took the Bitmap?

now to a more specific question for my script:
To find the arrows in the inventory, a. which is better to use, DTM or Bitmap, and b. if I use DTM, then how much tolerance would i need if i'm planning on making a DTM for every arrow type? if i make it 0 tolerance will i get the same results?

thanks a lot, especially if you answer all 3 questions in 1 post :D oh, also a minor question, but when i tried to make a stringtopicture i put in the whole 'blahblah' + 'moreblah' etc. and it just stayed black. what did i do wrong?

Sp0rky
03-18-2007, 05:12 AM
I believe its better to use a dtm.

This is a really good weild arrow function if you're needing one.


Function WeildArrow(Arrow:String):Boolean;
var arrowcolor,xaa,yaa:integer;
var bronze:integer;
begin
Bronze := 1847874;
ArrowColor := 1847874;


if(findcolorspiraltolerance(xaa,yaa,ArrowColor,MIX 1,MIY1,MIX2,MIY2,5))then
begin
mmouse(xaa,yaa,0,0)
mouse(xaa,yaa,0,0,True);
Result := True;
end
else
Result := False;
end;


With the constant ArrowType defined i.e.


const ArrowType = 'Bronze';


and when using the function used like this


WeildArrow(ArrowType)


Hope that helped a lil, unfortunately not involving bitmaps or dtm's :P

gsquare567
03-18-2007, 02:58 PM
uhh thanks for the post at least and the effort. but no, not what i'm looking for. any1 else PLEASE. read my questions and try to answer em ^^

XcanadamanX
03-18-2007, 04:51 PM
1) Is a DTM with 255 tolerance the same as a masked Bitmap?
2) A DTM cannot be used on the minimap or mainscreen, and a bitmap cannot be used on mainscreen but can be used on minimap... about that... what if the compass isnt exactly as what it was when you took the Bitmap?


1) no they arent the same. DTM takes points and compares. Bitmap mask just looks for the same outline as it has. they can be used for the same purpose but they are not the same.
2) DTM can be used anywhere you want. Bitmap can be used anywhere. as for
what if the compass isnt exactly as what it was when you took the Bitmap? i dont know i usually use DTM's
3) i would use a DTM. you would have to make diff DTMs for different arrows(diff parent point color). and use about 5-10 tol i think is good.

gsquare567
03-18-2007, 05:55 PM
alright, so i'll make 5-10 tol and see how that goes, but im pretty sure the dtm tuts say u can't use dtm on a mainscreen cuz there are so many diff angles.

XcanadamanX
03-18-2007, 08:25 PM
what tut says that? i dont use it on mainscreen anyway but if it was in a bank or shop you can use it.

gsquare567
03-19-2007, 02:16 PM
Yahojo's (i think thats how u spell it)
How to make a DTM to locate an item

• In this first have of the tutorial i will show you how to use DTMs to locate items on the runescape bank screen or inventory. DTMs can not be used to find items on the mainscreen because there are many camera angles ect...

XcanadamanX
03-19-2007, 09:00 PM
well what are you trying to look for?

gsquare567
03-21-2007, 12:09 AM
arrows. i already have an arrowfinder with colors but i was just wondering if theres a dtm or bitmap way. no biggie.

Smartzkid
03-21-2007, 01:19 AM
Concerning your last question about the tolerance: if you want to make a dtm that is able to detect all types of arrows, just select points for the dtm that are along the black (65536) outline of the arrow

gsquare567
03-21-2007, 05:08 PM
Concerning your last question about the tolerance: if you want to make a dtm that is able to detect all types of arrows, just select points for the dtm that are along the black (65536) outline of the arrow

yeah, i know. thats exactly what i dont want though. im trying to figure out how to make it identify separate arrows. maybe i need to choose one color of the dtm as the arrowhead. then set the tolerance low like 5 so i can make 1 for every arrow type and equip only 1 type.