Scientists have found a way to turn ordinary biopolymer into a high-tech, 3D-printable building material.