• Welcome to World Machine Community. Please login or sign up.
October 13, 2019, 05:43:47 pm


Read the Development Diary for an inside look at World Machine's progress!

Ter and Bmp File Format Issues

Started by DGUnreal, October 19, 2011, 08:36:01 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


There are some issues with the Terragen .ter and Bitmap .bmp file formats exported in World Machine.

According to the Terragen file format spec (http://www.planetside.co.uk/terragen/dev/tgterrain.html) the SIZE chunk value is supposed to be "n-1", where "n" is the number of data points on a side (ie. horz or vert heightmap resolution).
So for a heightmap that is 256x256 (0x100) the SIZE chunk value is 255 (0xFF).  For a heightmap that is 128x128 (0x80) the SIZE chunk value is 127 (0x7F).

World Machine is incorrectly writing the SIZE chunk value as "n" and not as "n-1".
This causes WM .ter files to error on various applications that validate the header values to the total size (W*H) of the ALTW heightmap data chunk.

I still have to look at the .bmp error.  I'll post back with the information soon.
DGUnreal Lead Designer and Engineer
Game Designer/Programmer since 1982

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S save/post or ALT+P preview