since the array size in my code is static (16³) I think I'll go with the first method.

Thank you all a lot, I'll let you know if it works.

edit: forgot to mention: you have to use the right order of the dimensions, so it would be:
var output_var = input_array[index_x * 8 + index_y];

Last edited by Kartoffel; 09/12/13 13:17.

POTATO-MAN saves the day! - Random