Order & Chaos 2: Redemption terrains
Posted: Fri Nov 17, 2017 11:54 pm
Recently I've been trying to RE a terrain format from O&C2 game. While there are other file types associated with a single world chunk, the terrain file itself seem to contain such info as:
- heightmap;
- textures list;
- texture mapping;
- water level;
- water type (normal, lava, tar, etc).
For now I've only been able to determine heightmaps.
Format template as what I do know by now can be found here.
So far, terrain is a 64x64 chunk. The format consists of 6 sections:
- header;
- section one (starts at 0x10, consists of 8b marker + 64 structures of 12 values (2 byte each);
- section two - heightmap (starts at 0x618, consists of 65x65 2 byte values);
- section three - possibly water level (starts at 0x271A, consists of 65x65 2 byte values);
- section four (starts at 0x481C, consists of 65x65x3 bytes);
- strings - textures used by chunk.
My main question is: can someone help me determine at least how do textrues are used in this format? I lack general understanding of concept of how do textures applied to terrain.
In the attached archive you can find .obj and .h2o files to view terrain model in hex2obj, original .trn file which to be used by 010 Editor template and screenshot from hex2obj showing terrain.
- heightmap;
- textures list;
- texture mapping;
- water level;
- water type (normal, lava, tar, etc).
For now I've only been able to determine heightmaps.
Format template as what I do know by now can be found here.
So far, terrain is a 64x64 chunk. The format consists of 6 sections:
- header;
- section one (starts at 0x10, consists of 8b marker + 64 structures of 12 values (2 byte each);
- section two - heightmap (starts at 0x618, consists of 65x65 2 byte values);
- section three - possibly water level (starts at 0x271A, consists of 65x65 2 byte values);
- section four (starts at 0x481C, consists of 65x65x3 bytes);
- strings - textures used by chunk.
My main question is: can someone help me determine at least how do textrues are used in this format? I lack general understanding of concept of how do textures applied to terrain.
In the attached archive you can find .obj and .h2o files to view terrain model in hex2obj, original .trn file which to be used by 010 Editor template and screenshot from hex2obj showing terrain.