J J
2012-08-03 05:26:12
EDIT: Thanks to masterBB I've managed to create a flood fill and it works amazingly well.
Will post code soon.
Rough code: http://paste.villavu.com/show/3157/
Result (in red): http://img404.imageshack.us/img404/2009/floodfillwork.png
Hello,
I'm looking to split a Point[] or delete other Points. I have a Point[] with all points that aren't black in there. I've colored them Cyan to show it.

I'm looking to split this array, or better said, delete some points in there. I only want the current room to be drawn (which is the most northern room in this situation.
I've tried some stuff but so far nothing has worked to remove the other points correctly.
Must do something with the x-distance between the pixels but I haven't figured out what the best way is so far. Or a way, actually.
Basicly the same as SplitTPAEx but I'm not sure how that works. I know how to use it, but I have no idea how it gets calculated.
Greetz.
Will post code soon.
Rough code: http://paste.villavu.com/show/3157/
Result (in red): http://img404.imageshack.us/img404/2009/floodfillwork.png
Hello,
I'm looking to split a Point[] or delete other Points. I have a Point[] with all points that aren't black in there. I've colored them Cyan to show it.

I'm looking to split this array, or better said, delete some points in there. I only want the current room to be drawn (which is the most northern room in this situation.
I've tried some stuff but so far nothing has worked to remove the other points correctly.
Must do something with the x-distance between the pixels but I haven't figured out what the best way is so far. Or a way, actually.
Basicly the same as SplitTPAEx but I'm not sure how that works. I know how to use it, but I have no idea how it gets calculated.
Greetz.
