So I've managed to make some headway with these heightmap files so that I am now able to convert most of the .ghf files exported from levels.bnk into usable greyscale images*.
Brightwood (Spring):
This was achieved by renaming the uncompressed .ghf file to a .raw and opening in Photoshop with the previously mentioned settings.
Selecting the Channels tab revealed 3 channels for RGB, in this case the greyscale channel was G, and there followed several other layers which seem to contain texture information and paths, which will probably be useful when creating world and local maps.
I then deleted every channel but the greyscale. However, this still needed some work.
It seemed that at the midpoint (128) maybe due to the way the file is structured/endianness(?)/decompression, with high and low points rendered as 0-255 separately:
So all I did here was select the darker portions first, paste to a new layer and lighten them, then darken the lighter portions. Then I flipped vertically to get the first image in this post.
As you can see, there is still a little glitching at the bottom right but as this is not a traversable part of the Brightwood region, I can fix this either by smoothing in Photoshop before exporting the final .bmp or .raw file, or by smoothing the terrain in the Construction Set/Creation Kit.
Right, on to Fable 3 and the rest of the Fable 2 .mdls I need!
Brightwood (Spring):
This was achieved by renaming the uncompressed .ghf file to a .raw and opening in Photoshop with the previously mentioned settings.
Selecting the Channels tab revealed 3 channels for RGB, in this case the greyscale channel was G, and there followed several other layers which seem to contain texture information and paths, which will probably be useful when creating world and local maps.
I then deleted every channel but the greyscale. However, this still needed some work.
It seemed that at the midpoint (128) maybe due to the way the file is structured/endianness(?)/decompression, with high and low points rendered as 0-255 separately:
So all I did here was select the darker portions first, paste to a new layer and lighten them, then darken the lighter portions. Then I flipped vertically to get the first image in this post.
As you can see, there is still a little glitching at the bottom right but as this is not a traversable part of the Brightwood region, I can fix this either by smoothing in Photoshop before exporting the final .bmp or .raw file, or by smoothing the terrain in the Construction Set/Creation Kit.
Right, on to Fable 3 and the rest of the Fable 2 .mdls I need!
- - Not all of the .ghf files exported from levels.bnk were usable so I went into Hex Workshop and just exported them manually, which has so far worked fine with Westcliff and Wraithmarsh.