VizionEck

Viewing single post

Started by Legend, May 31, 2015, 07:32 AM

previous topic - next topic

Legend



How is this so complicated!?!?!?!?!?

I can't figure out a way to get the colors from the screen in an efficient manner. The trivial way would be to have a script go from pixel to pixel and check if that color has been recorded or not. If it has been recorded, add one to the number of occurrences. Otherwise add it to the array. The obvious problem with this is that it'd take a long time covering every pixel.

The fast way is to use the GPU and crunch all the pixels simultaneously, but I seemingly can't read from the array, only write to it. This shouldn't be this hard! I guess I'll be trying my hand at a compute shader with multiple passes.