View Full Version : Moving Color
What is the best way of finding an object that is constantly moving using color?
This object never stops...
I dont know if DTM's or bitmaps would be good for this because it is always moving.
Smartzkid
04-02-2011, 07:41 PM
Frame differencing would work well, but it's not plausible without a plugin.
TPA's work well, especially if you use a couple different colors, join the arrays, split them, and then remove the outliers.
Coh3n
04-02-2011, 07:44 PM
Check for the color every couple hundred milliseconds. You can use paintsmart.scar to show you how it's working. That's the simplest solution in my opinion.
TPA's work well, especially if you use a couple different colors, join the arrays, split them, and then remove the outliers.
Never fails :)
What is the quickest color detection system and how fast is it. I might have to be checking every 200-300 ms. I'm planning on autoing another game.
grats
04-02-2011, 09:53 PM
Definitely using TPA's, very fast too.
Smartzkid
04-02-2011, 11:58 PM
Any reasonable object detection will run in under 300ms. And if you need it to run faster, you can always drop it into a plugin.
I don't have much programming/scripting experience, but Ill see if its fast enough. If not then is there a tutorial on plugins and stuff?
I don't have much programming/scripting experience, but Ill see if its fast enough. If not then is there a tutorial on plugins and stuff?
I want to say Shuttleu wrote one a while back, but I'm not positive. I know there is one here though, because I know how to do it. ;)
Quite similar to writing a function in Simba actually.
Ok thanks... Ill go fishing for it :D
Dusk has a goof TPA tut which taught me. Search for it.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.