in Terragen you can execute a script that will generate for you all 6 sides of your terrain/sky for a skycube... (left, right, front, back, bottom ,top), 6 pictures.

with theese 6 pictures you create the skymap with a tool like IrfanView