SRL Archive - Help

Moving Color


Yago

2011-04-02 15:36:25

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

2011-04-02 15:41:37

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

2011-04-02 15:44:26

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.

NCDS

2011-04-02 15:55:31

From: Smartzkid

TPA's work well, especially if you use a couple different colors, join the arrays, split them, and then remove the outliers.

Never fails :)

Yago

2011-04-02 17:45:28

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

2011-04-02 17:53:50

Definitely using TPA's, very fast too.

Smartzkid

2011-04-02 19:58:54

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.

Yago

2011-04-02 21:01:51

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?

NCDS

2011-04-02 21:22:34

From: Yago
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.

Yago

2011-04-02 21:29:19

Ok thanks… Ill go fishing for it :D

Rich

2011-04-03 08:45:24

Dusk has a goof TPA tut which taught me. Search for it.

Yago

2011-04-03 15:00:33

OK. Thanks guys!