Tech/LxEngine/Samples/LxMorrowind/LAND records
From Athile
< Tech | LxEngine | Samples | LxMorrowind
A LAND record starts with:
- INTV
- int gridX
- int gridY
when loading an exterior cell, the cell's grid x/y can be used to load up the surrounding LAND landscape data.
Then follows:
- DATA, 6 bytes
- VNML, 12675 bytes (vertex normals)
- VHGT, 4232 bytes (vertex heights)
- WNAM, 81 bytes (???)
- VCLR, 12675 bytes (vertex colors)
- VTEX, 512 bytes (vertex uv coordinates?)
Landscape cells are supposedly 64x64 quads. 64x64 = 4096.
- VNML is 65x65x3 = 12675 in size. THe normals are likely stored as signed bytes that are then normalized by dividing by 128.
- VHGT is 4323 bytes. This could be 65x65 + 7???
- WNAM...what's WNAM?
- VCLR is presumably the same as vertex normals, each byte is 0-255 unsigned byte color value
- VTEX is 8 x 8 x 4 x 2 = 512 bytes. Possibly 2 floats on an 8x8 grid that is interpolated across the grid? Or is it 16 x 16 with a byte per uv?