PDA

View Full Version : Can someone help me understand what pixel shift is doing?



thickfreakness
08-22-2014, 05:19 PM
I'm curious on how pixel shift works. I don't really know what its for either. If someone could shed some light on this, I'd be very grateful. :D

Turpinator
08-22-2014, 05:27 PM
pixelshift is determining how many or what pixels have shifted (changed) between time A and time B.

it can use it for anything that you want to compare. maybe one screen vs another. maybe to check if your inventory is changing. maybe to check if something is happening on screen.

Sin
08-22-2014, 05:27 PM
It basically checks the shift in pixels. If the player standing idle has a pixel rate of 55, and the player cutting a tree has a pixel rate of 130, then the pixelShift is calculated by px2-px1. This basically ``checks'' if the player has done anything, other than be idle.

Of course, this isn't limited to the player, it could be for anything (monsters, objects, inventory, etc!).

thickfreakness
08-22-2014, 05:52 PM
So it isn't a process that "catches" gradual pixel color variations to help color driven bots?
It is, however, only interpreting if a character is performing a different action other than it's idle?

Sin
08-22-2014, 06:11 PM
So it isn't a process that "catches" gradual pixel color variations to help color driven bots?
It is, however, only interpreting if a character is performing a different action other than it's idle?

No, individual colors at a time aren't recorded. It's more the entirety of the colors in the given TBox. And yes, that's the most common use for it.