How about this: Divide the surface of each ball into octants. Use four colors, e.g. red, green, blue, no color (white). Four octants will always be visible. Use scanning to decode color combinations = 3^4 = 243 possible combinations. It would be possible to print the number on the ball in addition so it would be human-readable. Reg Neale