A method, apparatuses and a system for manufacturing an insole, a shoe or a sole for a shoe. Foot information is determined on the shape and dimensions of a foot, and a pin matrix is formed at least partially based on the foot information. An insole or sole preform is placed on the pin matrix for shaping the insole preform, and an insole or sole is formed from the preform based on the foot information using the pin matrix. A positive and a negative pin matrix at least partially based on the foot information can be formed wherein the negative pin matrix essentially corresponds to the positive pin matrix.