The surreal cube was created in Magica Voxel 0.99 and exported to Blender, edited there with Cast and Remesh, as well as surface subdivision level 2. Then imported into Terragen 4.2, provided with material and rendered.
I already had the Blender gears stored in the Terragen library.