SRL Archive - Test corner

Perfect DTM


pwnaz0r

2007-03-01 15:20:51

Ok well while looking at Boreas's tut on Blacklists, I was thinking of some useful things which his functions/procedures could be used with DTMs. Since the involve DTM's and are obviously genius, I thought that this could advance DTM making. Well I got the idea about using his "Create40percentTPA" to make a "Perfect DTM". Basically what it will do is you set parameters, and it will scan the area for and pixels that contain the color 65336 (or watever the color is) and will return it into a TPoinArray. Unfortunatly, When i was discussing this Boreas, we concluded that until Divi, this will not be possible to convert it directly to a DTM String. However until then, if i do release it before Divi, it will just list the point in the debug box. It will be kind of like Yakman's radialwalker helper, but with DTM's. My school work has prohibited me from moving on in this idea but, this weekend, I will work a huge amount on it as well as release the functions I have been working on in my spare time. Until then, cya.

YoHoJo

2007-03-01 16:04:50

Please rephrase, i have no idea what your trying to tell me

Boreas

2007-03-01 18:05:38

function Create100PercentTPA:TPointArray;
var Counter,hx,hy:integer;
var TPointsToCheck:array [0..384] of TPoint;
begin
repeat
hy:=15;
hx:=hx+1;
repeat
hy:=hy+1;
// if (((hx mod 4)=0) or ((hy mod 4)=0)) then
begin
TPointsToCheck[Counter].x:=hx;
TPointsToCheck[Counter].y:=hy;
Counter:=Counter+1;
end;
until hy=31;
until hx=31;
result:=TPointsToCheck;
end;

Comment one line in Create40PercentTPA and you got Create100PercentTPA. Just use that with BlackLists. If you want colors besides 65536, then yea wait for Divi. But for just 65536, you can use my system. I designed for exactly this situation. So that you can make it more accurate and slower, or less accurate and faster, just by changing the TPA.


Edit: also change the array length. Should be ((31-15)*31)-1

pwnaz0r

2007-03-02 11:57:11

I will explain more thouroughly tonight when i get home.